08-27-2012 09:41 AM
Hi,
For some a simple question I think, but not for me. I want the input buttons on the USB interface board control the event case, so when I press an input button on the board a new event case will start. Does somebody know how?
Thanks a lot!
Matt
08-27-2012 09:45 AM
08-27-2012 09:46 AM
Thanks for your quick response, I will try that now...
08-27-2012 09:48 AM
That VI makes no sense. You have a value change event for an indicator. Why don't you try doing a read inside the timeout event? Be sure to set the timeout value to a reasonable rate. If you want to fire another event when the input changes, you could write to a Value(Signaling) property of the control.
08-27-2012 10:07 AM
Hi GerdW,
it's still not working properly, because of the signalling property node the event starts before i even press a button.. And if I place the property node in the event it is not working at all.. Maybe I do something wrong?
08-27-2012 10:10 AM
Of course it's firing the event before you do anything. What do you think is supposed to happen? And putting it inside the event is also silly. If you want to read the board, DON'T create a value change event for it? What part of my suggestion don't you understand?
08-27-2012 10:11 AM
I'm not placing it in the time out event because it should start when I press a button on the interfaceboard...
08-27-2012 10:13 AM - edited 08-27-2012 10:13 AM
08-27-2012 10:18 AM
hmmmm.... Not make a value change event for it? What I want is that the rest of the program(try to make a capacitor capacity test) starts when I press a button on the board, thats why I wanted to start a new event with it..So what is now a clever thing to do?
08-27-2012 10:21 AM
Pay attention. Gerd's example is exactly what I told you to do. A user event is not at all the same thing as a hardware event so your event structure as written is senseless.