ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

mechanical action property

Hello Labviewers
 
Does anyone know if this is possible:-
 
Two buttons, one button changes the mechanical action of the other button.
 
i.e button 1 is false then button 2 acts as a switch, button 1 is true the button 2 act as latch.
I want this in order to have one button that saves data in different ways, i.e button 1 could be 'save by pt' or 'save all' and button 2 is 'store'.
 
If I could use a property node for mechanical action it would be easy, but I can't find that. Smiley Sad
 
Any ideas anyone?
 
thanks in advance
Ieon
0 Kudos
Message 1 of 5
(3,251 Views)
Hi Leon,
here are two options:
1) button 2 is a switch, after saving a point copy button 1 value to button 2 via a local
2) create two button 2 exactly overlapped, say button 2a (switch) and button 2b (latch); depending on button 1 show one of them and hide the other; save on 2a OR 2b

Paolo
Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
Message 2 of 5
(3,241 Views)
You could have both buttons as switch action. Now, if you want to use latch action, activate a case where the value is reset via e.g. a local variable.
 
See attached simple demo, LabVIEW 7.1.

Message Edited by altenbach on 11-11-2005 10:19 AM

0 Kudos
Message 3 of 5
(3,230 Views)
Of course if you have LabVIEW 8.0, you could make an Xcontrol that does everything. 😄
0 Kudos
Message 4 of 5
(3,226 Views)
Hi There
 
Thanks guys for your ingenious suggestions Smiley Happy, much appreciated.
I'll have a dabble to see which works best.
 
Thanks again
 
Ieon
0 Kudos
Message 5 of 5
(3,200 Views)