ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

boolean triggered timed loop

Good afternoon Labview board,

 

I'm building code that turns a mouse click into a 2sec boolean true (indicator).   My requirements are that...

 

1. Once the 2sec passes the boolean switches back to false.

2. The user is unable to re-trigger the process until it returns false.

 

I have attached a LabView v8.6 VI.   It works, but very poorly.   It often misses the mouse click, and has an unwanted latency.

 

Any help improving or redesigning it would greatly appreciated!

 

Thanks,

super-neuron

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

This does what I think you are looking for.

Only sets timer when going from off to on. 

Omar
0 Kudos
Message 2 of 5
(5,200 Views)

Omar,

 

Could you save that VI back to version 8.6 or JPEG the screen shot?

 

Thanks,

Zach

0 Kudos
Message 3 of 5
(5,191 Views)
0 Kudos
Message 4 of 5
(5,187 Views)

Hi Super,

 

Have modified a VI i used a while back to do something similar:

 

Timed True latch snippet.png

 

I have made this into a subvi so you can use it as shown below:

\Timed true latch example snippet.png

 

I have attached both the subvi and example vi below in 8.6.

 

Hope it is what you need.

 

Regards,

 

Lucither

 

 

 

 

------------------------------------------------------------------------------------------------------
"Everything should be made as simple as possible but no simpler"
Download All
0 Kudos
Message 5 of 5
(5,172 Views)