Remote Operation
Example Programs
| Example 5. Maximum and minimum values over time | |
Description | This program locates the largest signal using automeasure, and adjusts the | |
| center wavelength, span, and sensitivity settings. Trace B is then viewed and | |
| updated and set to maximum hold. Trace C is then viewed, updated, and set to | |
| minimum hold. Signal variations with time can now be monitored. | |
Program | PRINT “OSA Min/Max Hold Example” |
|
| OUTPUT 723;”disp:wind:text:data ‘OSA Min/Max Hold Example’” | |
| ! |
|
|
| |
| OUTPUT 723;”*rst” | ! Preset the instrument |
| PRINT “Presetting the instrument” |
|
| ! |
|
|
| |
| OUTPUT 723;”disp:wind:trac:all:scal:auto” | ! Automeasure |
| PRINT “Performing Automeasure” |
|
| ! |
|
|
| |
| OUTPUT 723;”cal:alig:mark1” | ! Perform an autoalignment |
| PRINT “Performing Autoalign” |
|
| ! |
|
|
| |
| ! Next line is the operation complete query used so that the text is not printed | |
| ! until after the Autoalign is complete |
|
| OUTPUT 723;”*opc?” |
|
| ENTER 723;Dum |
|
| PRINT “... measurement begins” |
|
| ! |
|
| ! Set up and display the signal |
|
| ! |
|
| OUTPUT 723;”sens:wav:cent 1315nm” | ! Set the center wavelength |
| OUTPUT 723;”sens:wav:span 20nm” | ! Set the wavelength span |
| OUTPUT 723;”sens:pow:dc:rang:low | ! Set the sensitivity |
| ! |
|
| ! Update and view trace B and set it to max hold |
|
| ! |
|
| OUTPUT 723;”disp:wind:trac:stat trB, on” | ! View trace B |
| OUTPUT 723;”trac:feed:cont trB, Alw” | ! Update trace B |
| OUTPUT 723;”calc2:max:stat on” | ! Set trace B to max hold |
| ! |
|
| ! Update and view trace C and set it to min hold |
|
| ! |
|
| OUTPUT 723;”disp:wind:trac:stat trC, on” | ! View trace C |
| OUTPUT 723;”trac:feed:cont trC, Alw” | ! Update trace C |
| OUTPUT 723;”calc3:min:stat on” | ! Set trace C to min hold |
| ! |
|
| OUTPUT 723;”init:cont on” | ! Turn continuous sweep on |
| ! |
|
| LOCAL 723 | ! Return control to local |
| END |
|