SAMPle:COUNt {<count> | MIN | MAX | DEF}
SAMPle:COUNt? [{MIN | MAX | DEF}]
Sets the number of measurements (samples) the instrument takes per trigger for single channel DMM digitizing.
Parameter Typical return
<count> = 1 to 50,331,648 samples
MIN: 1
MAX: 50,331,648
DEF: 1
+1
Sets the instrument to take 1000 samples per trigger
SAMP:COUN 1000
SAMPle:COUNt:PRETrigger {<count> | MIN | MAX | DEF}
SAMPle:COUNt:PRETrigger? [{MIN | MAX | DEF}]
Sets the number of measurements (samples) the instrument takes before the trigger for single channel DMM
digitizing.
Parameter Typical return
<count> = 0 to 999,999 samples
MIN: 0
MAX: 999,999
DEF: 0
+0
Sets the instrument to take 1000 samples before the trigger
SAMP:COUN:PRET 1000
– Use SAMPle:COUNt to set the total number of samples to take, then use SAMPle:COUNt:PRETrigger to set the
number of pretrigger samples to take.
For example, with a sample count of 50,000, and a pretrigger sample count of 20,000, up to 20,000 samples are
taken before the trigger, then 30,000 samples are taken after the trigger occurs.
The sample count and pretrigger count do not affect when the trigger occurs. If the memory allocated for pre-
trigger samples fills up, the oldest readings are discarded. In the example above, the 20,000 most recent pre-
trigger samples are saved, even if more than 20,000 samples occur before the trigger. If the trigger occurs
before the pretrigger count is satisfied, only the actual pretrigger samples taken are saved.
In all cases, after the trigger is received, only sample count minus specified pretrigger count readings are taken.
In this example, if the trigger occurs after 5 pretrigger samples have been taken (instead of the specified 20,000),
only 30,000 post-trigger samples are taken. This is because memory was reserved for 20,000 pretrigger samples.
– If a trigger occurs during a measurement, that measurement is considered to be a pretrigger sample.
– After setting the sample count and pretrigger sample count, you must place the DMM in the "wait-for- trigger"
state using INITiate or READ? An external trigger is buffered until the DMM is in the "wait-for- trigger" state.
Keysight DAQ970A/DAQ973A Programming Guide 217
2 SCPI Programming