LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

For loop pause till event occurs

I'd like to know if it's possible pausing for loop in a fixed step till en event occurs.

I need to use for loop index to indexing some vector's data, but the steps in for loop must be exectuted only if  precise condition occurs.

thank you very much for possible solutions

Francesco

0 Kudos
Message 1 of 2
(2,023 Views)

Without seeing any code, it is hard to recommend what to do.

 

You probably want a State Machine architecture so that you can stay in a certain state of a while loop, then move on to the next step (state) when your condition is met.

 

You could also use event structures.  You could also use notifiers or occurrences to hold the execution of your loop until the notifier is written to or occurrence executed in a parallel loop of your code.

0 Kudos
Message 2 of 2
(2,017 Views)