58542 VXIbus Universal Power Meter
A-22
Publication 21555, Rev. E, September 2002
A.5
Instrument Triggering Examples
A.5.1
TRIGgering Example 1
The following two programs illustrate the operation of TRIG:SOUR HOLD with the MEAS#? and
FETCh#? measurement data queries. This first program shows TRIG:SOUR HOLD used with MEAS#?.
Since MEAS#? is a high level command containing it’s own trigger sequence arming, triggering, and
measurement data acquisition functions, the program returns valid measurement data. The output from
the SYST:ERR query is -0, No error.
260
ASSIGN @Pwr_mtr to 70101
270
CLEAR @Pwr_mtr
275
WAIT 1
280
OUTPUT @Pwr_mtr;*CLS
! Clears old messages from SYST:ERR buffer
290
WAIT 0.3
300
OUTPUT @Pwr_mtr;CALC1:MODE NORM! NORMal Mode.
310
OUTPUT @Pwr_mtr;CALC1:POW 1
! Channel 1 configured to measure sensor 1 power
320
OUTPUT @Pwr_mtr;SENS1:CORR:FREQ 1.44E9
! Applies Cal Factor for 1.44 GHz to data.
330
!
340
OUTPUT @Pwr_mtr;TRIG:SOUR HOLD ! Halts triggering when used with FETCh#?
350
!
360
FOR I=1 TO 10
370
OUTPUT @Pwr_mtr;MEAS1?
! MEAS#? returns valid data with TRIG:SOUR set to HOLD.
380
ENTER @Pwr_mtr;Rdg
390
PRINT Rdg
400
NEXT I
410
!
420
OUTPUT @Pwr_mtr;SYST:ERR?
! Query error buffer
430
ENTER @Pwr_mtr;A$
440
PRINT A$
530
END
A.5.2
TRIGgering Example 2
When FETCh#? is used while TRIG:SOUR is HOLD, invalid data, 9.e+40, is returned and the
SYST:ERR? query returns -230, Data corrupt or stale.
260
ASSIGN @Pwr_mtr to 70101
270
CLEAR @Pwr_mtr
275
WAIT 1
280
OUTPUT @Pwr_mtr;*CLS
! Clears old messages from SYST:ERR buffer
290
WAIT 0.3
300
OUTPUT @Pwr_mtr;CALC1:MODE NORM
! NORMal Mode.
310
OUTPUT @Pwr_mtr;CALC1:POW 1
! Channel 1 configured to measure sensor 1 power
320
OUTPUT @Pwr_mtr;SENS1:CORR:FREQ 1.44E9
! Applies Cal Factor for 1.44 GHz to data.
330
!
340
OUTPUT @Pwr_mtr;TRIG:SOUR HOLD
! Halts triggering when used with FETCh#?
350
!
360
FOR I=1 TO 10
370
OUTPUT @Pwr_mtr;FETC1?
! FETC#? will not acquire valid data when TRIG:SOUR
! is set to HOLD.
380
ENTER @Pwr_mtr;Rdg
390
PRINT Rdg
400
NEXT I
410
!
420
OUTPUT @Pwr_mtr;SYST:ERR?
! Query error buffer
430
ENTER @Pwr_mtr;A$
440
PRINT A$
530
END
Содержание 58542
Страница 3: ...DECLARATION OF CONFORMITY ...
Страница 4: ......
Страница 18: ...58542 VXIbus Universal Power Meter xiv Publication 21555 Rev E September 2002 ...
Страница 20: ...58542 VXIbus Universal Power Meter xvi Publication 21555 Rev E September 2002 ...
Страница 30: ...58452 VXIbus Universal Power Meter 1 10 Publication 21555 Rev E September 2002 ...
Страница 92: ...58542 VXIbus Universal Power Meter 2 62 Publication 21555 Rev E September 2002 ...
Страница 104: ...58452 VXIbus Universal Power Meter 3 12 Publication 21555 Rev E September 2002 ...
Страница 126: ...58452 VXIbus Universal Power Meter 5 8 Publication 21555 Rev E September 2002 ...
Страница 171: ......
Страница 172: ......
Страница 173: ......
Страница 174: ...21360 Rev A has not been u ...
Страница 175: ......
Страница 176: ......
Страница 177: ......
Страница 178: ......
Страница 179: ......
Страница 180: ......
Страница 181: ......
Страница 182: ......
Страница 248: ...58542 VXIbus Universal Power Meter C 2 Publication 21555 Rev E September 2002 ...