www.vtiinstruments.com
EX1629 Programming
77
NULL,
&numval,
VI_TRUE);
/* measure the excitation voltage */
result = vtex1629_measure_ excitation _voltage( vi, channels,
numberOfChannels, VTEX1629_EXCITE_SRC_REMOTE, 50, NULL, &numval,
VI_TRUE);
Setting Bridge Limits
Once the EX1629’s channels are configured for data acquisition, the user’s can also set limits on
the data being acquired so that, if a minimum or maximum value is exceeded, an error message is
returned.
Sample Code
ViStatus status = VI_SUCCESS;
ViChar errMessage[256];
ViInt32 channels[MAX_NUMBER_OF_CHANNELS];
ViInt32 numChannels = MAX_NUMBER_OF_CHANNELS;
ViReal64 minArr[MAX_NUMBER_OF_CHANNELS];
ViReal64 maxArr[MAX_NUMBER_OF_CHANNELS];
int i = 0;
for(i = 0; i < MAX_CHANNELS; i++) {
channels[i] = i;
}
for(i = 0; i < MAX_NUMBER_OF_CHANNELS; i++) {
minArr[i] = (-2.0);
}
for(i = 0; i < MAX_NUMBER_OF_CHANNELS; i++) {
maxArr[i] = 4.0;
}
status = vtex1629_set_bridge_limit(instrumentHandle,
numChannels,
channels,
minArr,
maxArr);
if(status < VI_SUCCESS){
<inform the user the API call failed>
}
Setting LXI Event Limits
Once bridge limits have been defined, LXI trigger bus lines can be programmed to produce trigger
outputs when any of the limit conditions are tripped.
Sample Code
ViStatus status = VI_SUCCESS;
status = vtex1629_set_lxi_limit_event_enabled(vi, 0, 0xffffffff,
0xffffffff, 0xffffffff);
if(status < VI_SUCCESS){
<inform the user the API call failed>
}
Содержание EX1629
Страница 310: ...VTI Instruments Corp 310 EX1629 Command Set...
Страница 342: ...VTI Instruments Corp 342 EX1629 Onboard Memory...