EasyManua.ls Logo

VTI Instruments EX1629 - Page 76

Default Icon
346 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
VTI Instruments Corp.
76 EX1629 Programming
Measures the unstrained voltage and updates the unstrained EU conversion variables
Measures the excitation voltage with the confidence subsystem and updates the excitation EU
conversion variables
Sample Code
#define MAX_NUM_CHANNELS 48
ViStatus result = VI_SUCCESS;
ViInt32 channels[MAX_NUM_CHANNELS];
ViInt32 numberOfChannels = MAX_NUM_CHANNELS;
ViInt32 i, numval;
/* initialize a channel array */
for( i = 0; i < MAX_NUM_CHANNELS; i++ )
channels[i] = i;
/* set the scanlist */
result = vtex1629_set_scanlist( vi, channels, numberOfChannels);
/* set the EU conversion for all channels*/
result = vtex1629_set_EU_conversion( vi,
channels,
numberOfChannels,
VTEX1629_EUCONV_QTR_BRIDGE_120);
/* set the gain */
result = vtex1629_set_gain( vi,
channels,
numberOfChannels,
VTEX1629_GAIN_HUNDRED);
/* set the excitation */
result = vtex1629_set_excitation( vi,
channels,
numberOfChannels,
2.5,
-2.5);
/* enable the excitation */
result = vtex1629_set_excitation_enabled( vi,
channels,
numberOfChannels,
VI_TRUE);
/* turn off the IIR filters */
result = vtex1629_set_IIR_filter_configuration( vi,
channels,
numberOfChannels,
VTEX1629_IIR_FILT_NONE,
0,
VTEX1629_TRANSFORM_BILINEAR,
1 );
/* set the sample frequency */
result = vtex1629_set_sample_frequency( vi, 100.0 );
/* measure the unstrained voltage */
result = vtex1629_measure_unstrained_voltage( vi,
channels,
numberOfChannels,
50,

Table of Contents

Related product manuals