LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I update a program written for a Legacy DAQ into one for a USB DAQ?

    I am trying to rewrite a program, replacing all of the AI Waveform Scan and AO Update Channel VIs in it with DAQmx VIs. This seems to be the only way for the USB DAQ to respond to the program and not get any errors. I was just hoping for some help in how to replace those VIs with updated DAQmx ones. Attached is the part of the program that I am working on. There is a slight error because of some changes I have made, but the gist of the program is still there.

Thanks!!
0 Kudos
Message 1 of 3
(2,761 Views)
What I would suggest is that in either your init state or outside the loop, create two separate tasks for the analog in and the analog out. This means using separate DAQmx Create Channel, DAQmx Timing, DAQmx Start Task, etc. Then, you would have the tasks in your shift registers and pass just the appropriate task to either a DAQmx Write or DAQmx Read. No need to pass channel or device. In the End state, you would add a DAQmx Clear Task for each.
0 Kudos
Message 2 of 3
(2,733 Views)
Thanks so much! I am super new at labview so it was all a bit confusing for me, especially since I have never dealt with the earlier labview VIs so I wasn't sure what they did exactly.

I shoud be able to get it to work now 🙂
0 Kudos
Message 3 of 3
(2,730 Views)