www.vtiinstruments.com
EX1629 Command Set
211
confidence scan list is set to five elements, five real values of confidence data will be acquired for each channel in
the regular channel scan list. The next five data elements in the
confData[]
array will be confidence data for the next
channel in the scan list and so on. If a scan list has
x
channels and the
confidence scanlist has a length of
y
, then
there will be
x•y
data items placed in the
confData
array each scan.
vtex1629_read_fifo will return as soon as either the
maxscans
scans of data have been retrieved, or the timeout
(
to_secs
) expires, whichever happens first.
There are other mechanisms for retrieving data from the EX1629. Please see
Retrieving Data (Read FIFO and
E
XAMPLE
#define NUM_SCANS 10
#define NUM_CHANNELS 48
#define MAX_NUM_SAMPLES (NUM_SCANS * NUM_CHANNELS)
#define CONF_LENGTH 2
#define MAX_CONF_NUM_SAMPLES (MAX_NUM_SAMPLES * CONF_LENGHT)
#define TIMEOUT_SECS 5
ViSession instrumentHandle;
ViReal64 seconds[NUM_SCANS];
ViReal64 fractseconds[NUM_SCANS];
ViReal64 acqdata[MAX_NUM_SAMPLES];
ViReal64 confdata[MAX_CONF_NUM_SAMPLES];
ViInt32 numdata, numscans, numconfdata;
result = vtex1629_read_fifoEx(instrumentHandle,
NUM_SCANS,
seconds,
fractseconds,
&numscans,
MAX_NUM_SAMPLES,
acqdata,
&numdata,
MAX_CONF_NUM_SAMPLES,
confdata,
&numconfdata,
TIMEOUT_SECS);