EasyManua.ls Logo

Giga-tronics 58542 - High Speed Measurement Examples; High Speed Measurement Example 1

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-35
A.8 High Speed Measurement Examples
A.8.1 High Speed Measurement Example 1
The following program shows the fastest SWIFt Mode measurement speed possible. IMMediate
triggering is used to allow the 58542 to trigger a measurement automatically. Be sure to only use one
channel defined to one sensor for the fastest speeds.
170 ASSIGN @Pwr_mtr to 70101
180 CLEAR @Pwr_mtr
190 WAIT 1
200 OUTPUT @Pwr_mtr;*CLS ! Clears old messages from SYST:ERR buffer
210 WAIT 0.3
220 OUTPUT @Pwr_mtr;CALC1:MODE NORM ! NORMal Mode to perform channel configuration
230 OUTPUT @Pwr_mtr;CALC1:POW 1 ! Channels 1 or 2 can be either POW 1 or POW 2
240 ! RAT and DIFF are illegal in SWIFt and BURSt Modes.
250 !
260 !################################
270 !
280 ! Entering SWIFt Mode
290 !
300 OUTPUT @Pwr_mtr;CALC1:MODE SWIF ! Enters SWIFt Mode for fastest continuous
! measurements with IMM.
310 !
320 OUTPUT @Pwr_mtr;SENS1:CORR:FREQ 16.97E9
! Applies Cal Factor in SWIFt mode
330 ! Can be sent before or after CALC#:MODE SWIF
340 !
350 OUTPUT @Pwr_mtr;TRIG:SOUR IMM
360
370 !
380 !
390 Loopcount=100
400 Time1=TIMEDATE
410 FOR I=1 TO Loopcount
420 OUTPUT @Pwr_mtr;FETC1? ! FETC#? acquires data
430 ENTER @Pwr_mtr;Chan1sens_1(I)
440 NEXT I
450 Time2=TIMEDATE
460 Time=Time2-Time1
470 Speed=Loopcount/Time ! Units are readings per second.
480 !
490 PRINT Chan1sens_1(*)
500 PRINT Speed; readings per second.
510 !
520 END

Table of Contents