LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Newbie - Control Copying

Can I copy a control (ex: toggle switch) to somewhere else in a program, such
as another case, and have the copy controlled by the original. I have tried to
copy a control, which is easy, but this adds another switch to the front panel.
Since my background is in PLC I know that you can only have a single output but
multiple inputs for a single switch.

Thanks for any help.
MINAN3K@aol.com
0 Kudos
Message 1 of 4
(2,586 Views)
If you really need to do so, how about right-click on the control, and create a local variable of it? Sets the Local Variable to as either Read/ Write for Control/ Indicator functionality.


ian
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
0 Kudos
Message 2 of 4
(2,586 Views)
Hi Mike,

make a right click on the control or the terminal. In the menu use Create >> Local variable. Now you have a new icon with the label of the control in it. A local variable will contain the value of the control.

Avoid local variables because they break data flow depedency and the data flow programming paradigm of LabVIEW.

For boolean controls you must use a mechanical action from the Switch part and not from the Latch part.

Waldemar
Waldemar

Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
Don't forget to give Kudos to good answers and/or questions
0 Kudos
Message 3 of 4
(2,586 Views)
It's a bit harsh to say 'avoid local variables' because sometimes they're essential (or there's no other solution that would be better). But you're right that they must be used with care because the data dependency is no longer explicit.
0 Kudos
Message 4 of 4
(2,586 Views)