LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Holding a boolean value for 500 ms

Solved!
Go to solution

Okay, this is exactly the ting I am looking for! Thank you so much! Now I just have one more question. The VI example you linked to is based on a user pressing a button that is located inside the event structure. I need to have the Event structure light the LED based on a true/false signal outside the structure, so should I wire the true/false signal to the border of the Event structure, or what?

0 Kudos
Message 11 of 15
(607 Views)

@Neergaard69 wrote:

Okay, this is exactly the ting I am looking for! Thank you so much! Now I just have one more question. The VI example you linked to is based on a user pressing a button that is located inside the event structure. I need to have the Event structure light the LED based on a true/false signal outside the structure, so should I wire the true/false signal to the border of the Event structure, or what?


you need to "create user event" and "generate user event" from your peak detection boolean, connected to the event structure using "event dynamic registration" node. also, "unregister for events" and "destroy user event". all with a 500ms timout event structure

0 Kudos
Message 12 of 15
(588 Views)

Okay, I tried fiddling around with that, but I couldn't get it working, so I looked around and tried something with Register User event and such. That didn't work as I had hoped for, so I linked my VI, if you could please have a look at it?

0 Kudos
Message 13 of 15
(566 Views)

@Neergaard69 wrote:

Okay, I tried fiddling around with that, but I couldn't get it working, so I looked around and tried something with Register User event and such. That didn't work as I had hoped for, so I linked my VI, if you could please have a look at it?


you can check here....also, you need to post the missing sub vi's. zip it alltogther (main and sub vi's) in one folder. btw, you are complicating things using the event structure. try using the shift register method mentioned?

0 Kudos
Message 14 of 15
(547 Views)

You, good sir, are a genius. Thank you so much for your help, I implemented your solution with a shift register and it worked like a charm. The only thing was that I had to remove the 50 ms wait for it to run properly. But it works! Yay! Thanks!

0 Kudos
Message 15 of 15
(532 Views)