LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

locked panel using event structure

Hi!
 
I'm using an event structure block to run a sequence only when a value of a control has changed.....when I edit this event I set the option NOT to lock the front panel.
When I run the vi's I can change the controls of the front panel......but all the code outside of the event structure block does'nt run....what i have to do?
 
I've attached a simple example.....boolean2 can change his value but the code is not executed
 
Thanks in advance
Larson
0 Kudos
Message 1 of 3
(2,761 Views)

hi there

the while-loop waits for all the code contained in it to finish until it turns again. the event-structure has no time-out case defined, so if "Boolean" dosn't change it waits eternally. that's why the "Boolean 2" seems to be locked, because this code is not executed any more until the next turn of the while loop.

add a timeout-event (event source = Application) and connect the event timeout (e.g. 100 ms). be aware that the reaction to a change of "Boolean 2" takes up to timeout ms. another option is to put the code inside the timeout-case.

best regards
chris

Best regards
chris

CL(A)Dly bending G-Force with LabVIEW

famous last words: "oh my god, it is full of stars!"
Message 2 of 3
(2,758 Views)

Thanks chrisger!!

 

The problem is solved.....the vi's run correctly....

 

Bye!

Larson

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