LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to pause and restart a timed loop in Labview

I am trying to pause and then restart a timed process (series of stepd that happen at precise times), which is implemented using a timed loop. I was wondering if anybody out there can give me a hint. Thanks
0 Kudos
Message 1 of 5
(4,583 Views)

I suppose you could change the dt input to 100000 or something and then set it back to whatever it was...

0 Kudos
Message 2 of 5
(4,578 Views)

Thanks for your help. It does not seem to wrok though. Any other suggestions?

0 Kudos
Message 3 of 5
(4,570 Views)

Put it inside a Case statement?

0 Kudos
Message 4 of 5
(4,568 Views)

Roxanne,

 

Well, it's not exactly a "pause", but here's a way to stop and re-start your Timed Loop.

 

See the attached example in LV2010.

 

A While Loop and a Queue are used to allow you to start and re-start the Timed Loop.

The "Stop Timed Structure" vi is used to stop the Timed Loop.

Releasing the Queue stops the While Loop when you end the program.

 

Note that the example is very similar to the NI template "Producer/Consumer Design Pattern (Events)". (File>>New)

 

steve

 

 

----------------------------------------------------------------------------------------------------------------
Founding (and only) member of AUITA - the Anti UI Thread Association.
----------------------------------------------------------------------------------------------------------------
Message 5 of 5
(4,550 Views)