LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to send an user event every 500ms?

Hello!
 
What function should I use to generate an user event every 500ms? I do NOT want the VI to stop running after a time of 500ms, it should generate user events over and over.
 
I tried with "wait until next Ms multiple" but this functions as the name points, "wait" and this is not what I want because it stops everything else too.
 
If I use a while-loop, does the i-constant increases every 1ms? Is it possible to use the i-constant? Is there in that case any %(modulus) function in labview?
0 Kudos
Message 1 of 3
(2,759 Views)


asc01001 a écrit:
Hello!
 
What function should I use to generate an user event every 500ms? I do NOT want the VI to stop running after a time of 500ms, it should generate user events over and over.
 
I tried with "wait until next Ms multiple" but this functions as the name points, "wait" and this is not what I want because it stops everything else too.
 
If I use a while-loop, does the i-constant increases every 1ms? Is it possible to use the i-constant? Is there in that case any %(modulus) function in labview?


just put the function in a separate loop that will run in //. That way, the wait functions will not block the other processes running in the other loop(s).

No way to use the i "constant" (it's an index) forget it : 1:fortunately a loop runs at a much faster rate than ms or even microsecs; 2: the duration of a loop is dependent on what is inside... 😉

Chilly Charly    (aka CC)
0 Kudos
Message 2 of 3
(2,756 Views)
Why not use Timeout ?  See attached VI.
 
 
George Zou

Message Edited by zou on 08-30-2005 11:18 AM

George Zou
0 Kudos
Message 3 of 3
(2,735 Views)