LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I associate property values for local variables?

I have a VI with a True/False case in it. I have boolean LEDs as indicators in the false case which have property nodes created for the colors. These indicators have local variables associated with them in the true case. How do I get the property nodes in the false case to affect the associated local variable in the true case?
0 Kudos
Message 1 of 5
(2,959 Views)
Hello,

Property nodes are not associated to local variables, they are associated to controls/indicators. So you have to associate the property node to the control that is associated to the local variable that you want to control.

If I undertstood correctly your description, then you should use the same property nodes in the true and false frames of the case structure, since you want to control the same object with them.

Hope this helps,
Paulo
0 Kudos
Message 2 of 5
(2,955 Views)
Thanks for the reply. I did have everything working as you described. Then I went and tried to get a little more fancy and initialized the LEDs with a different color, other than what I have further in the program when those actually get set to true or false, and that is when I ran into my problem. Is there an easier way to initialize a Boolean LED with a different color than what it will use later? I know without initializing them I have no problem with the local variables for the indicator doing what they are supposed to do. I am initializing them again with a property node in the beginning of the program.
0 Kudos
Message 3 of 5
(2,952 Views)
Hello,

I'm not sure I'm following you now... Can you post an example?
The easiest way I'm seing to initialise a led color is to paint it directly on the front panel for both true and false cases, but then again, I'm not sure that this is your real need...

Paulo
0 Kudos
Message 4 of 5
(2,948 Views)
Someone created a "tri-state boolean" recently. It had True, False, and Unknown states. I think that something like that may be what you are asking. I do not recall where it was, but searching for variations on "tri-state boolean" may find something. It probably was a numeric or enumerated type that simulated a boolean, but I did not look at it closely.

The Disabled and Grayed Out property may also be a possiblity for you.

Lynn
0 Kudos
Message 5 of 5
(2,941 Views)