hi,
I use "flex_read_adc16_rtn" to read 12 analog signal from multiplexer (i use CVI 6.0 wind2000), the multiplexer is controled by "outp" :
//port parallel
//*************
for(i_port = 0 ; i_port<11; i_port++)
{
//send adress
outp(0x378, i_port);
//read acquisition
flex_read_adc16_rtn(boardID, 0x51, &analog_data);
//send information on the CAN
Transmit_analog_data.Data[0] = (u8) analog_data ;
Transmit_analog_data.Data[1] = (u8) (analog_data >> 8);
ncWrite(last_step, sizeof(Transmit_analog_data), &Transmit_analog_data);
}
//*************
i use also : flex_enable_adcs(boardID, reserved, 0x51) ;
flex_set_adc_range(boardID, 0x51 , NIMC_ADC_UNIPOLAR_5);
Question:
1) why flex_read_adc16_rtn take about 15ms to execute? (15ms to read only one signal)
2) i have to read 12 signals every 20ms, if i use any multifunction DAQ, will i have the same problem if i use any function to read AI like flex_read_adc16_rtn ?
3) is there any solution to save AI on board, and send them to PC, without using windows ?
thank you