LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

can't change boolean control at runtime

At runtime I cannot set or unset a boolean control from a mouse click. When I stop the app I can set or unset the control. What is going on here...? Other boolean are OK, only this one won't allow me to change it at run time.

btw, if it makes a difference when I go to the properties to check whether the boolean is switched or not the tab is disabled...???
0 Kudos
Message 1 of 4
(3,214 Views)
Tabbing should have no impact. The could possibly make it look like it's not seeing the clicks. Depending on what is happening in the code I've seen a switch get reset so quickly that you didn't see it switch. Is it that you don't see the switching or the code doesn't see the state change? Beyond that make sure it's not disabled ( Smiley Very Happy -- done that, verrrrrry embarrassing... ).

Seriously though, try replacing the switch and see if that helps... What kind of boolean is it anyway?

Mike...

Message Edited by mikeporter on 05-11-2007 10:46 PM


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 4
(3,206 Views)

Could it be that your boolean is actually an indicator and not a control??? 😮

RIght-click on your object and try selecting "change to control".

People who overuse local variables in the code (and don't wire the terminal) may not be able to easily tell the difference. If you use the real terminal the wire will be broken if you try to use an indocator as a control.

If that's not it, please attach a simple VI containing only the boolean.

0 Kudos
Message 3 of 4
(3,199 Views)
daaang,

sure enough its an indicator. Well that was easy.

Thanks,
0 Kudos
Message 4 of 4
(3,191 Views)