LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

A single block of code with and without loop.

Hello!

I was wondering if there is way to include a single block of code with and without a while loop. Basically based on enum user select if they want the program to run continuously or not. By using a case structure all the graphs, controls are replicated and I want only one of each . I don't want to use a ab control I want the user to select the option from an enum or ring.

Hope the question makes some sense.
Thank You.

0 Kudos
Message 1 of 4
(150 Views)

You are not making a lot of sense.

 

All you need is a simple state machine to cover all possibilities.

 

A case structure does not require duplicate graphs.

 

For more specific advice, attach your code draft.

Message 2 of 4
(134 Views)

You place the while loop and if you don't want it to loop you wire True to the Stop node.

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
Message 3 of 4
(83 Views)

@bilalskd wrote:

Hello!

I was wondering if there is way to include a single block of code with and without a while loop. Basically based on enum user select if they want the program to run continuously or not. By using a case structure all the graphs, controls are replicated and I want only one of each . I don't want to use a ab control I want the user to select the option from an enum or ring.

Hope the question makes some sense.
Thank You.



Where did you learn to make word salads?

0 Kudos
Message 4 of 4
(45 Views)