www.vtiinstruments.com
EX1629 Command Set 179
vtex1629_get_sample_count
FUNCTION PROTOTYPE
ViStatus vtex1629_get_sample_count (ViSession vi, ViPInt32 preTrigSampleCount, ViPInt32
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 return value indicating the currently configured pre-trigger sample count. Valid
return values: 0 to 400000000.
postTrigSampleCount = an integer return value indicating the currently configured post-trigger sample count.
Valid return values: 0 to 400000000.
DATA ITEM RESET VALUE
Not applicable to this function.
DESCRIPTION
This function queries and returns 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 TRIG event. If “0” is returned, the sample count is
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
ViSession instrumentHandle;
ViStatus status;
ViInt32 pretrig, posttrig;
…
status = vtex1629_get_sample_count(instrumentHandle, &pretrig, &posttrig);