LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

usb 6002 practice

Solved!
Go to solution

I was able to connect AO0 to AI0 and use MAX to run it this way. The only issue with this is, when I connect another AI from another device, when the voltage is set back to 0, it never goes back to 0, unless my loop is set to 0 on MAX, first.

0 Kudos
Message 21 of 26
(1,997 Views)

Uhhh, what?

 

So in MAX you can set an AO and you can read the AI.  Then you added another AI from another device.  How are the signals configured?  Are they single ended or differential?  Do you have a common ground between the two DAQs?

 

Then you tried to set the output to 0 in LabVIEW but you can't because MAX is still running?  So close MAX first.  MAX locks the resource when you start a task there, and won't release it until the task stops, or MAX closes.  If you have error handling in LabVIEW you should see it tell you it can't use that resource because some other software is using it.

Message 22 of 26
(1,983 Views)

You are doing this in LabVIEW or MAX? Maybe some screenshots or example code could help clarify this. 

Aaron L.
Applications Engineer
National Instruments
0 Kudos
Message 23 of 26
(1,955 Views)

I have been using MAX to use AO0, 0-10VDC. I am able to read data from the Vi however, I haven't figured out how to drive anything, using output from Vi, yet.

0 Kudos
Message 24 of 26
(1,937 Views)
Solution
Accepted by topic author ceilingwalker

You should only use MAX for testing. For applications, use proper DAQmx VIs, not MAX or Express VIs!

From LabVIEW you can go to Help menu, and you can find tonnes of examples how to program AIO, etc...

Message 25 of 26
(1,930 Views)

I have DAQmx that I have finally figured out how to drive the output voltage, thank you.

0 Kudos
Message 26 of 26
(1,925 Views)