LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I do certain things once per second?

Solved!
Go to solution

I need to perform things that would take more than 1 second.

And they need to be repeated each second.

 

How can I make them happen in a precise time schedule?

0 Kudos
Message 1 of 3
(2,374 Views)
Solution
Accepted by topic author iCat

There is a construct called "Timed loop" that does what I want.

 

So it becomes kind of a self-answered post.

0 Kudos
Message 2 of 3
(2,362 Views)

A timed loop is one option, but on Windows not the best. Well, to be precise: Windows itself is no good choice if you require determinism.

 

I would rather go for a normal while loop with a "Wait Until Next Multiple (ms)" wait function configured for 1000 ms. Depending on the code in the loop, you would probable "miss" iterations though....(which is also true for timed loops)

 

Norbert 

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 3 of 3
(2,350 Views)