03-19-2013 01:03 AM
i have a MAIN VI and a SUB VI which communicate events through control refnum. flow of events is as follows.
1) sub vi changes a value of its control and this event is handled in the main vi(this works)
2)main vi in response to the event changes one of its control and triggers an event from the event handler itself which is handled in the subvi event handler.
the first phase is over. now the main vi is running a while loop and the sub vi is running a while loop and main vi triggeres an event every ~150ms. which is to be handled in the subvi. this is the part which is not happening. i can see the main vi's control getting updated but the event(if generated) is not handled by the subvi. i'm using control's property node->Value(signalling) to change the value as well as trigger the event. what can be the possible cause?
hope my question is clear.
Solved! Go to Solution.
03-19-2013 03:19 AM
Post the code.
03-19-2013 03:30 AM
i found the problem .
the subsequent events were not being handled because the loop in which the event handler ran looped **once**
i.e the initial condition was itself false so the loop only ran once.
this loop was controlled by `stop if true`. it had to be `continue if true`.
the boolean variable that controlled this loop was true. this should have been my first clue.
sorry for the trouble