LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

USING EVENTS

Hi

Lets say iv got a control on my front panel which i want to prevent the user from changing its value while some kind of process is running.

more then that. If that process is running and he tries to change the value i want to ask him if he is sure, and to change or not accordingly,

without asking him again what to. That is: change to what i originally prevented him from changing to.

 

how can it be done by using an event?

 

thanks in advance

shai

 

0 Kudos
Message 1 of 4
(2,716 Views)

Hi shai,

to prevent changing you can disable the control. if you want to react in the change, use the value change event. The running process will be in a parallel process, so i think it´s no problem if the value will change for a short time. You can open a dialog in the change event. Store the value in a shift register. if you don´t want the changed value you can overwrite it with the old one from the shiftregister.

 

Hope it helps.

Mike

0 Kudos
Message 2 of 4
(2,715 Views)

Agree but... 

You don't need a shift register. The old value is an event output (at the left)

Message 3 of 4
(2,701 Views)
The other option is using a filtered event in the event structure. That would be "mouse down?", once its fired you can disregard the firing and set the ctrl to its original setting. If you choose you can put a value change event in too, the filtered event will fire first then the value change will follow (if the value is now different of course).
Message 4 of 4
(2,673 Views)