Hello,
In C++, I use the NIDAQmx library. I would like to know if it is possible to read the counter's value while counter runs.
For example:
DAQmxErrChk (DAQmxCreateTask("",&taskHandle));
DAQmxErrChk (DAQmxCreateCOPulseChanTime(taskHandle,"Dev1/ctr0","",DAQmx_Val_Seconds,DAQmx_Val_Low,1.00,0.50,10.00));
DAQmxErrChk (DAQmxStartTask(taskHandle));
while (!kbhit())
{
// here, I would like to read the counter's value
cout << "?????" << endl;
}
Sorry if I speak badly, English is not my first language.
Thank you.