![JDS Uniphase RM3 Series User Manual Download Page 43](http://html1.mh-extra.com/html/jds-uniphase/rm3-series/rm3-series_user-manual_3637153043.webp)
30
Programming Examples
RS232 Interface Program Example
The following program can be used to connect the Backreflection Meter with an external device
through the RS232 serial interface.
100 CLOSE #1
' Initialize the RS232C port
110 OPEN "COM1:2400,N,8,2" AS #1
200 PRINT #1,"B";
' Go to Backreflection mode
210 INPUT #1,IN$
220 IF IN$ = "Y" THEN GOTO 250 ' Check if the command was accepted
230 PRINT "WILL NOT DISPLAY BR"
240 STOP
250 FOR I=1 TO 5
' Read and display five BR measurements
260 PRINT #1,"G";
270 INPUT #1,IN$
280 PRINT IN$
290 NEXT I
300 PRINT #1,"A";
' Go to Power mode
310 INPUT #1,IN$
320 IF IN$ = "Y" THEN GOTO 350 ' Check if the command was accepted
330 PRINT "WILL NOT DISPLAY POWER"
340 STOP
350 FOR I=1 TO 5
' Read, display five power measurements
360 PRINT #1,"G";
370 INPUT #1,IN$
380 PRINT IN$
390 NEXT I
400 CLOSE #1
410 END
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Summary of Contents for RM3 Series
Page 5: ...iv Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Page 12: ...xi Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Page 23: ...10 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Page 39: ...26 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Page 45: ...32 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...