LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Case structure in while loop

If I have a while loop running for a longer period of time:

 

I want to press a bolean to perform an operation for 10 loop iterations, and then want to continue the while loop as before. 

 

How could I do this?

 

Example:data aquisition- running process, and want to capture data for 10 loops only

0 Kudos
Message 1 of 3
(2,211 Views)

Hi F.N,

 

maybe State Machine is what you are looking for.

 

Here is more info about State Machines.

 

http://www.ni.com/white-paper/3024/en/

Duri
0 Kudos
Message 2 of 3
(2,194 Views)

Put a counter in a shift register.  Increment it each time you run your special case and when you reach so high, reset it and cause your while loop to run as normal.

 

But what it sounds like you really need is a good State Machine.


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 3 of 3
(2,184 Views)