LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

timed loop

I´m using two timed loops: one of them has a period of 1s and low priority and the other one has a period of 60s and it has high priority.
 
The question is: I need to execute the loop of 60s at the time 0 and at the time 60s again, but it just executes after the 60s... and, I´m also executing a block with some test conditions, and when I finish a block and jump to the another block, I also need to execute the timed loop of 60s at that moment... can I do what I need using the timed loop or it would be better if I use another structure?
 
And, can I build a control to change the period of a timed loop wherever I want to?
 
Tks!
 
 
0 Kudos
Message 1 of 2
(2,800 Views)

The period of a timed loop can be set from one iteration to the other in a very easy way :

  1. If not already visible, click on the frame of the timed loop and activate Show Right Data Node.
  2. Grow the node to show dt. (--> Period)
  3. Wire the desired period for the next iteration to the input.

See attached example.

Download All
0 Kudos
Message 2 of 2
(2,773 Views)