11-28-2012 09:40 AM
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?
11-28-2012 10:09 AM - edited 11-28-2012 10:12 AM
@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
11-28-2012 11:54 AM
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?
11-28-2012 01:23 PM - edited 11-28-2012 01:27 PM
@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?
11-28-2012 01:47 PM
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!