LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

parallel while loop

I'm having trouble with executing a secondary while loop. I'm trying to shut off a portion of my block diagram for the entirety of the run based on the input from an external wire. I would really appreciate help on this, thanks.

Download All
0 Kudos
Message 1 of 25
(3,911 Views)

You do not have parallel loops. Because the wire comes out of one loop and enters the other, the loops will execute sequentially.  This is fundamental to the dataflow paradigm of LabVIEW.

 

It looks like you may be new to LabVIEW. If so, please start with the free on-line tutorials. They should cover some of these basic concepts

 

Lynn

0 Kudos
Message 2 of 25
(3,890 Views)

Thanks for the correction. How can I, for the extent of the run shut off that particular section of the block diagram from the true or false input though.

0 Kudos
Message 3 of 25
(3,865 Views)
Please take some of those tutorials.

Why have an external loop? Why not have everything inside the main? Why all those comparisons to string values? You can wire a string directly to a case statement.
0 Kudos
Message 4 of 25
(3,855 Views)

I'm not seeing a reason for the second loop.  Why can't you just put that logic in the main loop you already have, including the writing of the string indicator?


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 5 of 25
(3,853 Views)

Unfortunately, when I put the while loop inside the main, the entire program stops functioning as it was intended, I have researched the functions of all the structures and none seem to shut off that portion of the block diagram for all the while loop iterations in the run. 

0 Kudos
Message 6 of 25
(3,796 Views)
You don't understand. Do NOT place the second while loop inside the main. Place just the code inside the while loop in your main.
0 Kudos
Message 7 of 25
(3,789 Views)

How do I go about shutting that section off for the extent of the loop iterations when there is an input though.

0 Kudos
Message 8 of 25
(3,783 Views)

I've tried that, but it dosnt perform the function I want it to.

0 Kudos
Message 9 of 25
(3,775 Views)

@mkimball wrote:

I've tried that, but it dosnt perform the function I want it to.


Then show us what you have and tell us how it isn't doing what you want.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 10 of 25
(3,738 Views)