VTI Instruments Corp.
120
EX10xxA Programming
// MAIN EXECUTION START
int main (int argc, char *argv[])
{
ViInt32 channels[48], numChannels = 48, channelCounter = 0;
ViInt32 user_data = 0;
error = vtex10xxA_init (RESOURCE_10XX, VI_TRUE, VI_TRUE, &ex10XXHandle);
for(channelCounter = 0; channelCounter < numChannels; channel+)
{
channels[channelCounter] = channelCounter;
}
//Set the scanlist
error = vtex10xxA_set_scanlist(ex10XXHandle, channels, numChannels);
//Set the channel conversion to volts
error = vtex10xxA_set_channel_conversion(ex10XXHandle, channels, numChannels, VTEX10XXA_CONV_MV);
//Enable the streaming interface
error = vtex10xxA_enable_streaming_data(ex10XXHandle, &user_data, streaming_function);
//Set the trigger source to timer
error = vtex10xxA_set_trig_source_timer(ex10XXHandle, 0.01);
//Set the trigger count to infinite for continuous acquisition
error = vtex10xxA_set_trigger_infinite(ex10XXHandle, VI_TRUE);
//Enable usage of custom limit values
error = vtex10xxA_set_limit_set0_manual(ex10XXHandle, channels, numChannels, VI_TRUE);
//Set up custom limit values
error = vtex10xxA_set_limit_set0(ex10XXHandle, channels, numChannels, -2.0, 2.0);
//Initialize voltage acquisition
error = vtex10xxA_init_imm(ex10XXHandle);
//At this point the program will loop through the streaming callback forever since the trigger is set to infinite
//Wait for some stop condition to occur
//Abort acquisition
error = vtex10xxA_abort(ex10XXHandle);
//disable the streaming interface
error = vtex10xxA_disable_streaming_data(ex10XXHandle);
return 0;
}
Содержание EX1000A
Страница 25: ...www vtiinstruments com EX10xxA Introduction 25 FIGURE 1 2 RACKMOUNT HARDWARE INSTALLATION DIAGRAM ...
Страница 27: ...www vtiinstruments com EX10xxA Introduction 27 FIGURE 1 4 ISOMETRIC AND INTERNAL CJC PLATE DIAGRAM ...
Страница 28: ...VTI Instruments Corp 28 EX10xxA Introduction EX1044 DIAGRAM ...
Страница 29: ...www vtiinstruments com EX10xxA Introduction 29 FIGURE 1 5 EX1044 TABLE TOP USAGE ...
Страница 34: ......
Страница 56: ......
Страница 74: ......
Страница 130: ......
Страница 282: ......