Program Examples
Publication 21555, Rev. E, September 2002
A-23
A.5.3
TRIGgering Example 3
Please note, the READ#? measurement data query requires TRIG:SOUR IMM for proper operation.
While TRIG:SOUR is HOLD, data output is also invalid, 9.e+40, but the SYST:ERR? query response is
different, -214, Trigger deadlock.
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;READ1?
! READ#? requires TRIG:SOUR IMM not, 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.4
TRIGgering Example 4
The following examples show the use of BUS triggering with FETCh#? in NORMal and BURSt Modes.
270
ASSIGN @Pwr_mtr to 70101
280
CLEAR @Pwr_mtr
290
WAIT 1
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 BUS
350
!
360
FOR I=1 TO 10
362
OUTPUT @Pwr_mtr;TRIG
! TRIG is the SCPI Bus trigger. Can also use *TRG
370
OUTPUT @Pwr_mtr;FETC1?
! FETC#? acquires data
380
ENTER @Pwr_mtr;Rdg
390
PRINT Rdg
400
NEXT I
410
!
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 ...