114
Programming
Example Programs
Example 3. Measure WDM channel drift
This program measures the drift of channels in a WDM system. It measures drift in
both power and wavelength of each line. First, the program sets the
Keysight 86120B in the continuous-acquisition measurement mode. Then, it mea-
sures drift using commands from the CALCulate3 subsystem.
Notice the use of the Tempo subroutine to pause the program for 10 seconds while
the Keysight 86120B measures the drift on the laser.
The use of the Err_mngmt subroutine is optional. Refer to the introduction to this
section for a description of each subroutine that is contained in this program.
COM /Instrument/ @Mwm
ASSIGN @Mwm TO 720
DIM Key$[1]
ON ERROR GOTO Error_msg
Set_ese
PRINT USING "37A,33A";"Multi-Wavelength Meter Identity is: " ;FNIdentity$
ON TIMEOUT 7,5 CALL Err_mngmt
Cmd_opc("*RST")
Cmd_opc(":INIT:IMM")
Cmd_opc("*OPC")
Cmd_opc(":CONF:ARR:POW:WAV")
! Turn on the drift calculation
Cmd_opc(":CALC3:DRIF:STAT ON")
Err_mngmt(":CALC3:DRIF:STAT ON")
! Turn off all drift states
Cmd_opc(":CALC3:DRIF:PRES")
Err_mngmt(":CALC3:DRIF:PRES")
! Turn on drift reference state
Cmd_opc(":CALC3:DRIF:REF:STAT ON")
Err_mngmt(":CALC3:DRIF:REF:STAT ON")
! Query the number of data points
OUTPUT @Mwm;":CALC3:POIN?"
ENTER @Mwm USING "#,K";Nb_pt
ALLOCATE Current_ref_wl(1:Nb_pt)
ALLOCATE Current_ref_pwr(1:Nb_pt)
Содержание 86120B
Страница 1: ...Keysight 86120B Multi Wavelength Meter User s Guide...
Страница 2: ......
Страница 3: ...1...
Страница 12: ...10 General Safety Considerations...
Страница 68: ...You can use the ABORT and CONT softkey to stop and restart a print job that is in progress...
Страница 100: ...98 Programming Monitoring the Instrument...
Страница 163: ...161 Programming Commands CALCulate1 Subsystem Query Response For normal update 34123 For fast update 4268...
Страница 231: ...229 Performance Tests Test 5 Amplitude Accuracy and Linearity...
Страница 232: ......
Страница 233: ...7 Definition of Terms 233 Specifications 235 General Safety Information 239 Specifications and Regulatory Information...
Страница 244: ...242 Specifications and Regulatory Information Product Overview...
Страница 250: ...248 Reference Menu Maps Display List by Power Menu Display List by WL Menu...
Страница 251: ...249 Reference Menu Maps Delta On Menu Delta Off Menu...
Страница 253: ...251 Reference Menu Maps System Print Menu...
Страница 254: ...252 Reference Menu Maps System Setup Menu...
Страница 272: ......