LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Subsequent event not triggering?

Solved!
Go to solution

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.

0 Kudos
Message 1 of 3
(2,355 Views)

Post the code.


___________________
Try to take over the world!
0 Kudos
Message 2 of 3
(2,337 Views)
Solution
Accepted by topic author koushik_Shetty

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

0 Kudos
Message 3 of 3
(2,334 Views)