LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Variant Data to Boolean Data

I want to use a boolean control button in a vi I'm creating which uses sequences. The problem i have is that when I go to create a property node of the value of the boolean control button it is a variant. I have the mechanical action of the control set to latched until released but i need this action to operate the vi the way i want to. Is there anyway that you could use the variant value in order to create a boolean value from the property node.

Any ideas would be great,

noely
Message 1 of 2
(3,097 Views)
Hi Noely

The problem you face is the mechanical action. You can't use the property-node witch a latch-action (doesn't matter which one of the three possibilities). Change the mechanical action to one of the switching-actions, and the value property is a boolean value.
Instead of using a property-node, it may also be possible for you to use a local variable.

You can also find this information if you right-click on the value property and in the context menue select "Help For Value".

Hope this helps.

Thomas
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
Message 2 of 2
(3,091 Views)