EasyManua.ls Logo

VTI Instruments EX1000A - Page 123

VTI Instruments EX1000A
320 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...
www.vtiinstruments.com
EX10xxA Programming 123
}
status = vtex10xxA_set_channel_conversion(vi, e_channels, NUM_E_CHANNELS, TYPE_E);
if(status != VI_SUCCESS)
{
printf("ERROR CONFIGURING EU CONVERSIONS\n");
return -1;
}
status = vtex10xxA_set_channel_conversion(vi, t_channels, NUM_T_CHANNELS, TYPE_T);
if(status != VI_SUCCESS)
{
printf("ERROR CONFIGURING EU CONVERSIONS\n");
return -1;
}
/* configure the filter frequencies */
status = vtex10xxA_set_filt_freq(vi, channels, NUM_CHANNELS, 4.0);
if(status != VI_SUCCESS)
{
printf("ERROR CONFIGURING FILTER FREQUENCIES\n");
return -1;
}
/* configure the voltage channel range */
status = vtex10xxA_set_channel_range(vi, v_channels, NUM_V_CHANNELS, 10.0);
if(status != VI_SUCCESS)
{
printf("ERROR CONFIGURING CHANNEL RANGE\n");
return -1;
}
/* configure the FIFO (deg F, blocking mode) */
status = vtex10xxA_set_fifo_config(vi, 0, 0, 0, 1);
if(status != VI_SUCCESS)
{
printf("ERROR CONFIGURING FIFO\n");
return -1;
}
/* configure the trigger model */
/* reset the trigger model to default settings */
status = vtex10xxA_reset_trigger_arm(vi);
/* set the trigger timer */
status = vtex10xxA_set_trigger_timer(vi, TRIG_TIMER);
if(status != VI_SUCCESS)
{
printf("ERROR CONFIGURING TIMER\n");
return -1;
}
/* set the trigger count */
status = vtex10xxA_set_trigger_count(vi, MAX_SCANS);
if(status != VI_SUCCESS)
{
printf("ERROR CONFIGURING COUNT\n");
return -1;

Table of Contents

Related product manuals