Program Examples
Publication 21555, Rev. E, September 2002 A-15
A.4.4 Reading Power Measurements Example 4
The following program configures the power meter for single channel operation and uses the READ#?
command to return power measurement data in NORMal Mode. Using the READ#? command will not
change power meter configuration items under any circumstances. Note that INIT:CONT ON is illegal
when using READ#?. When continuous trigger arming is desired, use INIT:CONT ON with the
FETCh#? command if desired. Also, use TRIG:SOUR IMM when using the READ#? command.
280 ASSIGN @Pwr_mtr to 70101
290 CLEAR @Pwr_mtr
300 WAIT 1
310 OUTPUT @Pwr_mtr;CALC1:MODE NORM! Can ONLY send Configuration Commands in Normal Mode!!
320 OUTPUT @Pwr_mtr;TRIG:SOUR IMM ! TRIG:SOUR must be IMM when using READ#?
330 OUTPUT @Pwr_mtr;INIT:CONT OFF ! INIT:CONT arming must be OFF when using READ#?
340 !
350 OUTPUT @Pwr_mtr;SENS2:AVER:COUN 1! Sets averaging to manual and one sample per reading.
360 OUTPUT @Pwr_mtr;CALC1:POW 2 ! Channel 1 configured to measure sensor 2 power
370 !
380 OUTPUT @Pwr_mtr;SENS2:CORR:FREQ 17.4E9
! Applies Cal Factor for 17.4 GHz to measurement data.
390 !
400 FOR I=1 TO 10
410 OUTPUT @Pwr_mtr;READ2? ! Measures Power at sensor.
420 ENTER @Pwr_mtr;Rdg
430 PRINT Rdg
440 NEXT I
450 !
650 END