LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Hello ! How can i change the mechanical action type of a boolean control at runtime ? there is no property ...

As long as there's no property node for that, you could use local or global variables to simulate different mechanical actions, making button act differently, but i think is too many work for that. Why do you need this?
0 Kudos
Message 2 of 8
(3,667 Views)
Hy !
thanx for ya fast answer !
My problem:
I need at runtime two different mechanical actions with only one boolean control:
1. switch until released
-> the user can activate more than one control
2. switch when pressed
-> the user can activate only one control

you can see the function in the attached file

OK CU.

JohnZ
0 Kudos
Message 3 of 8
(3,667 Views)
For i can see (not much, i only have LV 5.0 and couldn't open the example) you could use an example called "Radio buttons" that make only one button selectable from a set of buttons and deactivate it when you need more than one selected. I think radio button example is in LV examples.
Hope this helps, if not, send the example in LV 5 and i'll check it.
0 Kudos
Message 4 of 8
(3,667 Views)
hy again !
i have attached the 5.0 Version...
the radio buttons solution is not that what i need, ok i must hide the buttons..
OK CU.

JOHNZ
0 Kudos
Message 6 of 8
(3,667 Views)
I think your best bet is to use the property nodes. Have one boolean that switches when pressed, and it one state should be "activate all controls", and the other state should be "activate one control".

If "activate one control" has been selected, then when one of the control buttons is selected as true, disable the other controls.

If "activate all controls" is selected, then don't disable any controls; leave them all active.

Mark
0 Kudos
Message 8 of 8
(3,667 Views)
Hi,


Have the two type of boolean controls on your panel but have your default switch set to show and set the other to hide. Instead of trying to change the mechanical properties of one switch, hide and show the relevant switches with the correct mechanical properties.


Ray.
Regards
Ray Farmer
0 Kudos
Message 5 of 8
(3,667 Views)