EasyManua.ls Logo

Giga-tronics 58542 - Triggering Example 3; Triggering Example 4

Default Icon
252 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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

Table of Contents

Related product manuals