www.vtiinstruments.com
EX1629 Command Set
277
vtex1629_set_sample_count
F
UNCTION
P
ROTOTYPE
ViStatus vtex1629_set_sample_count (ViSession
vi
, ViInt32
preTrigSampleCount
, ViInt32
postTrigSampleCount
);
F
UNCTION
P
ARAMETERS
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.
D
ATA
I
TEM
R
ESET
V
ALUE
preTrigSampleCount
= 0
postTrigSampleCount
= 1000
D
ESCRIPTION
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.
E
XAMPLE
ViStatus status;
…
status = vtex1629_set_sample_count(instrumentHandle, 0, 10000);