08-25-2009 05:26 PM
Hi,
I'm trying to replace AI read.vi with a newer VI from DAQmx such as DAQmx read.vi. Could you give me some clue?
08-25-2009 05:31 PM
08-25-2009 05:52 PM
What I was asking for is following: In the traditional AI read.vi is taking 'the number of scan to read' and 'task ID in' and returning 'scaled data', 'binary data', 'scan backlog', some of which the DAQmx read.vi doesn't have in it. So, I was wondering how to convert the old one to the new one.
Thanks,
Jay
08-25-2009 10:12 PM
The first question to ask is if you really need the data that the DAQmx output may not be supply such as binary data and scan backlog. I really doubt you need those other outputs and should be just fine using the data that comes out which is the scaled data.
Changing from traditional DAQ to DAQmx is a good time to clean up other portions of the code besides just replacing one function for another. A good start would be eliminating those stacked sequence structures. Replace them with a flat sequence structure. Once you do that, you may find out that you don't need any sequence structure at all.
08-26-2009 02:03 PM
Thank you so much. I have one more question. If I just convert the scaled data into binary data, is it going to be same as the one got from the AI Read.VI?
Best,
Jay
08-27-2009 11:14 PM
Jay,
I think the function that you are looking for is the DAQmx Read Raw Data function. This gives the data before it has been scaled or calibrated. For more information about the raw data in DAQmx, you can check out this KB.
-Christina