08-19-2011 03:24 AM
I go through fierce problem for using event structure in subvi.
Main VI contains event structure in a SubVI
Event structure is composed of two event. one is "Time Out" , the other is "Value Change".
What I want for this VI is Time out event works without a delay time , except of case of Value Change event
But "Value Change" event of this VI is not working properly. Even when Value Change event is working , "Time Out" event is still working.
To explain in more detail, When Value of Boolean is changed , ligh of Boolean Out must turn on.
Please, help me.
08-19-2011 03:43 AM
Hi ngb,
your TimeOut is set to 0 - so it will kick in instantly... Set the time to something like 10s to allow for user reaction!
You also set the output tunnel to "default if unwired", so the timeout event will set the LED to false. Is this intended?
Why do you want to handle the event in a subVI? Why don't you start a parallel loop handling the events of the UI?
08-19-2011 05:47 AM
If you dont wire timeout at all, it defaults to -1, which is wait forever.
/Y
08-19-2011 05:55 AM