EasyManua.ls Logo

Giga-tronics 58542 - Page 199

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-17
A.4.6 Reading Power Measurements Example 6
FETCh? allows finer control of the meter’s measurement sequences. The low level control function of
FETCh#? is to first, process the measurement channel information based upon sensor data and
configuration settings and then, place the result in the meter data output buffer to be read by the slot0
controller/resource manager.
The following program uses the INIT command to control acceptance of measurement values in
conjunction with the FETCh? command. When using FETCh#?, both trigger sequence arming and
triggering/data acquisition must be controlled in the program. This is juxtaposed with MEAS#? and
READ#? which, being higher level commands, include these functions.
This program will allow the fastest measurement speed performance in NORMal mode.
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 ! Power Meter controls triggering with TRIG or *TRG
330 OUTPUT @Pwr_mtr;INIT:CONT ON ! Power Meter controls instrument trigger arming
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 data.
390 !
400 FOR I=1 TO 10
430 OUTPUT @Pwr_mtr;FETC1? ! Measures Power at sensor.
440 ENTER @Pwr_mtr;Rdg
450 PRINT Rdg
460 NEXT I
470 !
670 END

Table of Contents