LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

parallel while loop

When there are no structures surrounding that particular section of code, there is nothing to stop it from running during all the loop iterations. A picture of it is included in my first message.

0 Kudos
Message 11 of 25
(1,383 Views)

When there are no structures surrounding that particular section of code, there is nothing to stop it from running during all the loop iterations. My intention is to shut off that section of code when the user types "Hello". A picture of the program is included in my first message.

0 Kudos
Message 12 of 25
(1,378 Views)

"When there are no structures surrounding that particular section of code, there is nothing to stop it from running during all the loop iterations."

 

This is when you use a case structure.

 

This is also why you have been asked to work through the tutorials.

 

Lynn

0 Kudos
Message 13 of 25
(1,370 Views)

What do you what to happen when? 

Tell us in details what the code should do, and in what order, and what deside the order. 

 

I can figure out what part of the code you are refering to? 

 

If you only what to run certain part of a code, then you should use the case structure. 

 

Or better at state mashine is what you need. 

0 Kudos
Message 14 of 25
(1,368 Views)

I know the function of a case structure, and it dosn't the section of code it is surrounding for all while loop iterations. When a differing signal comes in it will change its case. When the user types "Hello", I want it to respond by shutting off that case for the entire run.

0 Kudos
Message 15 of 25
(1,352 Views)

That is why I didn't use a case structure.

0 Kudos
Message 16 of 25
(1,350 Views)

I know the function of a case structure, and it dosn't shut off the section of code it is surrounding for all while loop iterations.

0 Kudos
Message 17 of 25
(1,345 Views)

That is exactly what a case structure is for. 

 

Most likely you have wired the selector terminal to the wrong signal.

 

Please post your VI.

 

Lynn

0 Kudos
Message 18 of 25
(1,334 Views)

A case structure does what you tell it to do, nothing more, nothing less. 

 

You need to give more details of what you want. 

What code do you need to have executed only at a certain condition and what is the condition? 

 

0 Kudos
Message 19 of 25
(1,329 Views)
0 Kudos
Message 20 of 25
(1,326 Views)