Hello,
I have a program with a DAQ-Operation. I read with DAQ_Op command analog-input in an array. That works fine. But there is a problem with reading the result array. I read the array with a loop, but it needs nearly 20sec to count the while - loop up to 50000 (number of points). I have tested the loop without any other code, only counting from 0 to 50000 . The CPU - usage is 100% and needs 17sec.
This is the code:
//DAQ_Op (1, 0, 1, temp_data, nbr_points, sample_rate);
PlotDigitalLines (DSC, DSC_DIGGRAPH, temp_data, 100, VAL_SHORT_INTEGER, 1);
GetSystemTime (&h, &min, &sek1);
while (i<=nbr_points)
{
i++;
}
GetSystemTime (&h, &min, &sek2);
SetCtrlVal (DSC, DSC_NUMERIC_TEMP, sek2-sek1);
SetCtrlVal (DSC, DSC_NUMERIC_LOW, 100.0);
With another system it needs only under 1s.
(Win2k, CVI 7.1, NIDaq 6.9.3, PCI-1200)
Thanks for help,
Christian