LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

low speed of reading 12 channels A/D outputs from DAQpad6020 &SCB-68 in LabWinows

this is the source code that I use it for reading the A/D outputs but with 12 channels it's very slow!
/*************************************************/
void initialization (void){
Init_DA_Brds (1, &init);
SCAN_Setup (1, num_of_chan, channel_list, gain);
}
while (1) {
AI_Read_Scan (1, voltage);
AI0=voltage[0];
AI1=voltage[0];
AI2=voltage[0];
.
.
.
AI11=voltage[11];
}
0 Kudos
Message 1 of 2
(2,436 Views)
Hello;

The best way to start the development of a DAQ application is to borrow the NI-DAQ shipping examples that you can find at C:\Program Files\National Instruments\NI-DAQ\examples\VisualC\SCXI.

Try to run one of those examples and see if the results are the same. Also, make sure that the "very slow" you are referring to is not the maximum sample rate of the specific module you are using.

Regards
Filipe A.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(2,436 Views)