EasyManua.ls Logo

Giga-tronics 58542 - High Speed Measurement Example 3

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-37
A.8.3 High Speed Measurement Example 3
Using the same system configuration, the previous program achieved a speed of 25 readings per second
per channel. With faster systems using embedded PCs and faster software, measurement speeds have
been recorded as high as 71 readings per second.
The following program shows fast BUS triggering in the SWIFt Mode. TRIG (or *TRG) is used to
acquire data, and FETCh#? processes and outputs the data to the slot0 controller/resource manager.
This program does not use the meter’s data buffering capability.
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
205 WAIT 0.3
210 PRINT Running...
220 !
230 OUTPUT @Pwr_mtr;CALC1:MODE NORM ! NORMal Mode to perform channel configuration
240 OUTPUT @Pwr_mtr;CALC1:POW 1 ! Channels 1 or 2 can be either POW 1 or POW 2
250 ! RAT and DIFF are illegal in SWIFt and BURSt Modes.
260 !
270 !#############################################
280 !
290 ! Entering SWIFt Mode
300 !
310 OUTPUT @Pwr_mtr;CALC1:MODE SWIF ! Enters SWIFt Mode for fastest individual data point
! triggered measurements.
320 !
330 OUTPUT @Pwr_mtr;SENS1:CORR:FREQ 1.44E9
! Applies Cal Factor in SWIFt mode
340 ! Can be sent before or after CALC#:MODE SWIF
350 !
360 OUTPUT @Pwr_mtr;TRIG:SOUR BUS ! BUS or EXT triggering is slower than IMM
370 ! Can be sent before or after CALC#:MODE SWIF
380 !
390 FOR I=1 TO 10
400 FOR K=1 TO 20
410 OUTPUT @Pwr_mtr;TRIG ! TRIG is the SCPI Bus trigger. Can also use *TRG
420 OUTPUT @Pwr_mtr;FETC1? ! FETC#? acquires data
430 ENTER @Pwr_mtr;Chan1sens_1(K)
440 !ENTER @Pwr_mtr;Chan1sens_1(K),Chan2sens_2(K)
! Use this line when two sensors are attached.
450 NEXT K
460 !
470 PRINT Chan1sens_1(*)
480 !PRINT Chan1sens_1(*),Chan2sens_2(*) ! Use this line when two sensors are attached.
490 PRINT “”
500 NEXT I
510 !
520 END

Table of Contents

Related product manuals