05-05-2011 07:07 AM
hello,
I tried to run two loops parallel, because I need to read the power analyser as fast as possible.
But if I also read the values of a RTD-Module it takes 2 secondes.
So I tried to do this parallel, but the second loop does not execute.
The Sub-VI in the second loop looks like this:
Is there something wrong with de main VI? Is there a way to optimize the Sub-VI??
thanks for your help.
05-05-2011 07:16 AM
Why do you need 2 loops? Oh... Because you want these to run in parallel.. right..
LabVIEW runs using dataflow. For the bottom loop to run, the execution must leave the top loop (stop) because you wired the boolean from the top loop to the bottom one.
Again... Why do you need the bottom loop? Are you trying to read the DAQmx device more than once?
Maybe if you describe the exact behavior that you are looking for we can recommend appropriate fixes to your code.
To learn more about LabVIEW, I suggest you try looking at some of these tutorials.
05-05-2011 07:28 AM
Thanks for your answer,
I think I solved the problem.
In the sub-vi, I always created a new channel.
Now I create a channel at the beginning and clean it when I stop the loop.
It runs a lot faster then before.
05-05-2011 07:50 AM
You do realize that the loops do not run in parallel, right?
05-05-2011 07:53 AM
yes