LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

delay time for booleon

halo...

delay.jpg

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

how to turn booleon6 for 5second and off booleon6 10secound?

and it is repeated forever.

 

0 Kudos
Message 1 of 5
(2,038 Views)

Look for Wait primitive in Timings palette.

/Y 

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 2 of 5
(2,017 Views)

thank yamaeda...

i find Wait primitive in Timings palette.

 

so my problem, how i can to connect wait primitive in my block diagram..

 

i inclose the full block digram my project..

 

 

 

booleon.png

booleon.png

booleon.png

0 Kudos
Message 3 of 5
(2,004 Views)

You'll need a Wait(100) or similar in the loop to stop it from hogging all cpu. You dont need to check the indicators 2 billion times a second.

 

You'll need 2 Tick count blocks, one from outside the loop connected with a shift register, and one inside. The difference is the time the program has run. Make a local variable of Indicator 6 to read and connect to a case selector (should really be a boolean with shift register also, but we'll start here).

 

In the case selector you'll need another case selector to which you connect the time difference. The 2 cases will be 6000.. and default (10000.. and Default in the other case)

 

Meh, bad description.

 

You'll need a case within a case. (there are other solutions ofc)

Outer case is "Is indicator true or false"?

Inner case is "How much time has passed"? - If enough time has passed, switch indicator and send new starttime to shift register, else send the old one.

 

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 4 of 5
(1,991 Views)

thnak you Yamaeda...

 

i will try ur solution..

0 Kudos
Message 5 of 5
(1,986 Views)