NRDGS
208 Chapter 6 Command Reference
events, a single occurrence of the SYN event satisfies all of the specified SYN
event requirements. This is shown in the second "SYN Event" example below.
• Query Command. The NRDGS? query command returns two responses
separated by a comma. The first response is the specified number of readings
per trigger. The second response is the present sample event. Refer to "Query
Commands" near the front of this chapter for more information.
• Related Commands: DELAY, LEVEL, RMEM, SLOPE, TARM, TIMER,
TRIG, SWEEP
Examples SYN Event
In the following program, line 70 requests data from the multimeter. This satisfies
the SYN event and initiates a reading. The reading is then sent to the controller
and printed. The process repeats until the three readings have been taken and
printed.
10 OPTION BASE 1 !COMPUTER ARRAY NUMBERING STARTS AT 1
20 DIM A(3) !DIMENSION ARRAY
30 OUTPUT 722;"DCV 8,.00125" !DC VOLTAGE, 10V RANGE, 100µV RESOLUTION
40 OUTPUT 722;"NRDGS 3, SYN" !3 READINGS/TRIGGER, SYN SAMPLE EVENT
50 OUTPUT 722;"TRIG AUTO" !AUTO TRIGGER MODE
60 ENTER 722;A(*) !ENTER READINGS
70 PRINT A(*) !PRINT READINGS
80 END
In the following example, SYN is specified for the trigger arm, trigger, and sample
events. Five readings per trigger are specified. A single occurrence of the SYN
event (line 60) satisfies the trigger arm, trigger, and the first sample event and
initiates the first reading. Four more SYN events (one for each reading) are then
required to initiate the remaining four readings.
10 OPTION BASE 1 !COMPUTER ARRAY NUMBERING STARTS AT 1
20 DIM Rdgs(5) !DIMENSION ARRAY FOR READINGS
30 OUTPUT 722;"PRESET NORM" !SYN TRIGGER EVENT, DCV, NPLC 1, MEM OFF
40 OUTPUT 722;"TARM SYN" !SYN TRIGGER ARM EVENT
50 OUTPUT 722;"NRDGS 5, SYN" !5 READINGS/TRIGGER, SYN SAMPLE EVENT
60 ENTER 722;Rdgs(*) !SYN EVENT, ENTER READINGS
70 PRINT Rdgs(*) !PRINT READINGS
80 END
TIMER
The following program makes 4 readings in response to the synchronous trigger
(line 60). The first reading is made immediately after the preprogrammed default
delay; the remaining 3 have a 200ms interval between them.
10 OPTION BASE 1 !COMPUTER ARRAY NUMBERING STARTS AT 1
20 DIM Rdgs(4) !DIMENSION ARRAY FOR READINGS
30 OUTPUT 722;"PRESET NORM" !TARM AUTO,TRIG SYN,DCV AUTORANGE
40 OUTPUT 722;"TIMER 200E-3"!SETS TIMER INTERVAL TO 200m SECONDS