LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

USB-6009 DAQmx parallel devices

Solved!
Go to solution

Hello, im using a NI USB-6009. And I have to read two analog Inputs, write two analog outputs and two digital outputs. All this in parallel.

It works if I connect them successively, but then the VI is too slow for a good measurement.
So my question is, can it generally work if the dataflow isn't given trough the hole chain, but rather coincidently trough the single parts of the VI?

Now it doesn't work.

0 Kudos
Message 1 of 5
(3,081 Views)
Solution
Accepted by topic author stmoritz

First comment would be take the daqmx start/clear task out of the while loop. Start the tasks before you enter the loop. then once you leave the loop (when the stop button is pressed) clear all the tasks. There is no need to start and clear every loop

Please remember to accept any solutions and give kudos, Thanks


LV 8.6.1, LV2010,LV2011SP1, FPGA, Win7
Message 2 of 5
(3,076 Views)

Combining both analog inputs into one AI task, both analog outputs into one AO task, and both digital outputs into one DO task should help.

 

Since the outputs are generated by user inputs to front panel controls, put those controls and the DAQ writes into an event structure and only write when something changes.  The analog Read could be in a timeout case of the event structure.

 

Lynn

Message 3 of 5
(3,073 Views)

Hi there thanks you very much for the fast answers.

Now it works very well. First I had a error with the AI's but now I take them together and the error is gone.

 

regards

Moritz

0 Kudos
Message 4 of 5
(3,030 Views)

this question was perfect for me and the application I am currently working on.  So thanks for asking and thanks so much for the answer!!!

0 Kudos
Message 5 of 5
(2,792 Views)