06-27-2013 07:14 AM
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.
Solved! Go to Solution.
06-27-2013 07:22 AM
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
06-27-2013 07:29 AM
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
06-28-2013 08:43 AM
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
02-21-2018 11:56 AM
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!!!