VTI Instruments EX1629 User Manual page 86

48-channel strain gage instrument
Table of Contents

Advertisement

VTI Instruments Corp.
Host Computer
The vtex1629_read_fifo function provides access to the main channel acquisition data and
timestamp information. The following code segment illustrates the basic usage of the
vtex1629_read_fifo function, issuing a FIFO query to return 10 scans of data with all 48 channels
enabled. The maximum number of scans to return is specified, as is the maximum number of data
elements to be returned. The acquisition data, along with the timestamp for each scan, is returned
in three arrays of ViReal64 elements, two for the timestamps (seconds and fractional seconds) and
one for the acquisition data. Each scan of data will contain 1 to 48 channels worth of data,
depending on the scanlist configuration. Scan data is returned sequentially within the acqdata
array, so, for the example below, acqdata[0]...acqdata[47] will contain the first scan of data,
acqdata[48]....acqdata[95] the second scan of data, etc. The timestamp for the first scan will be
contained in seconds[0] and fractseconds[0], the second timestamp in seconds[1] and
fractseconds[1], etc.
#define NUM_SCANS 10
#define NUM_CHANNELS 48
#define MAX_NUM_SAMPLES (NUM_SCANS * NUM_CHANNELS)
#define TIMEOUT_SECS 5
ViSession vi;
ViReal64
ViReal64
ViReal64
ViInt32
result = vtex1629_read_fifo( vi,
86
`
time
F
6-1: R
IGURE
seconds[NUM_SCANS];
fractseconds[NUM_SCANS];
acqdata[MAX_NUM_SAMPLES];
numdata, numscans;
EX1629
1
3
5
7
9
SHUNT
CAL
RES
PWR
HD
LAN
0
2
4
6
8
time
FIFO N
E
EAD
ETWORK
XAMPLE
NUM_SCANS,
seconds,
fractseconds,
&numscans,
MAX_NUM_SAMPLES,
11
13
15
17
19
21
23
25
27
29
31
33
35
37
39
41
SHUNT
SHUNT
CAL
CAL
RES
RES
10
12
14
16
18
20
22
24
26
28
30
32
34
36
38
40
EX1629
EX1629 Programming
43
45
47
42
44
46

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the EX1629 and is the answer not in the manual?

Table of Contents