VXI VM4016 Computer Hardware User Manual


 
VXI Technology, Inc.
46 VM4016 Programming
/* Function to set the offset, polarity and voltage range to the channels */
status = vtvm4016_config_channels ( instr_hndl, channel_list,
num_of_channels, offset, polarity, voltage_range);
if (status < VI_SUCCESS)
return vtvm4016_ERROR_SETTING_CHANNELS;
/* Function to query the first latched register */
status = vtvm4016_query_latched_reg(instr_hndl, first_latched_reg);
if (status < VI_SUCCESS)
return vtvm4016_ERROR_QUERYING_LATCHED_REG;
/* Function to query the Raw data */
status = vtvm4016_read_data (instr_hndl,
vtvm4016_READ_RAW_DATA, raw_data);
if (status < VI_SUCCESS)
return vtvm4016_ERROR_READING_RAW_DATA;
/* Function to query the Conditioned data */
status = vtvm4016_read_data (instr_hndl,
vtvm4016_READ_CONDITIONED_DATA, conditioned_data);
if (status < VI_SUCCESS)
return vtvm4016_ERROR_READING_CONDITIONED_DATA;
return VI_SUCCESS;