www.vtiinstruments.com
EX1629 Command Set 277
vtex1629_set_sample_count
FUNCTION PROTOTYPE
ViStatus vtex1629_set_sample_count (ViSession vi, ViInt32 preTrigSampleCount, ViInt32
postTrigSampleCount);
FUNCTION PARAMETERS
vi = contains a session handle to the instrument. This handle is obtained by the function and remains valid until the
session is closed.
preTrigSampleCount = an integer input value indicating the desired pre-trigger sample count. Valid input values:
0 to 400000000.
postTrigSampleCount = an integer input value indicating the desired post-trigger sample count. Valid input values:
0 to 400000000.
DATA ITEM RESET VALUE
preTrigSampleCount = 0 postTrigSampleCount = 1000
DESCRIPTION
This function sets both the pre-trigger and the post-trigger sample count for the EX1629. Specifically, this is the
number of samples that will be taken per trigger event. If the postTrigSampleCount is set to “0” the sample count
will be infinite.
NOTE Pre-trigger sampling is not currently supported. Setting the preTrigSampleCount to a value other
than zero (0) will result in an error.
EXAMPLE
ViStatus status;
…
status = vtex1629_set_sample_count(instrumentHandle, 0, 10000);