LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with parallel loops

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.

mess-vi.png

The Sub-VI in the second loop looks like this:

subvi.png

Is there something wrong with de main VI? Is there a way to optimize the Sub-VI??

thanks for your help.

 

 

0 Kudos
Message 1 of 5
(2,340 Views)

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.

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

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.

 

0 Kudos
Message 3 of 5
(2,330 Views)

You do realize that the loops do not run in parallel, right?

0 Kudos
Message 4 of 5
(2,325 Views)

yes

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