In the traditional DAQ Read.VI used to have "scan backlog" as an output. However, the DAQmx Read.VI doesn't have one. Since the value is crucial in my program, it really need it. Can anyone tell me how to get it from new DAQmx?
Thanks in advance.
Solved! Go to Solution.
A lot of the DAQmx functionality can be accessed through property nodes. For instance, the DAQmx Read property node includes the properties: Available Samples Per Channel and Current Read Position. You can use these to figure out how many samples remain unread.
I hope this helps.
The property node that you are specifically looking for is a DAQmx Read property node. The property is shown below. One thing you have to be aware of though is the avaliable samples per channel will return 0 if you have already overflowed your buffer. Hope this helps!
Dear Cole Train,
Thank you for your comments. So, "Available Samples per channel" is same as "scan backlog". Is that right?
Or should I calculate the scan backlog by "Available samples per channel - current Read position"?
Transition from traditional DAQ to DAQmx really hurts me. Please help me out.
How are you today? Yes, the Available Samples Per Channel outputs the scan backlog. The Current Read position property is the same as the number read output of the traditional daq VI. For future reference, we have quite a bit of documentation on our website which will help you transition from traditional DAQ to DAQmx. For example, if you do a search for "scan backlog daqmx" you will find the following article.
Output the Scan Backlog in DAQmx when Doing Analog Input
You might also want to bookmark these two links for your reference.
Transition from Traditional NI-DAQ to NI-DAQmx in LabVIEW
What are the Terminology Changes in NI-DAQmx?
Good luck on future applications!