LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to link two controls?

Solved!
Go to solution

Hi,

 

I'm trying to link two controls together, a slider and a numeric, so that if I change the value of one control, the other will also show the new value.

 

Does anyone knows how to do that? Is that even possible?

 

Thank you for your help

 

 slide_numeric.png

0 Kudos
Message 1 of 15
(4,967 Views)
Solution
Accepted by topic author Albany

Right click on your slider.  In the menu go to Visibile Items->Digital Display.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 2 of 15
(4,961 Views)

Example_VI.png

 

rt click control,create local....connect other "control"

0 Kudos
Message 3 of 15
(4,945 Views)

Hi apok,

 

what do you do to also modify "slide" when "numeric" is changed?

 

Using the digital display of the slide is much more easier - and fail safe…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 15
(4,940 Views)

@GerdW wrote:

Hi apok,

 

what do you do to also modify "slide" when "numeric" is changed?

 

Using the digital display of the slide is much more easier - and fail safe…


the OP asked for 2 controls linked?....

0 Kudos
Message 5 of 15
(4,937 Views)

Hi apok,

 


the OP asked for 2 controls linked?


 

atleast exactly this is the topic of the thread: "How to link two controls?"

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 15
(4,934 Views)

Example_VI_BD.png

Example_VI_BD.png

i would use an event case for the 2 controls...

0 Kudos
Message 7 of 15
(4,918 Views)

Hi apok,

 

so you would through even more code for something that already is available in the control itself?

 

That behaviour is called "Rube-Goldberg"… 😄

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 8 of 15
(4,909 Views)

A slider and its digital display are two linked controls, exactly as requested. Tim's answer is correct and appropriate. No code needed. 🙂

 

You can "link" as many controls as you want this way, have a look at this old example with eight linked controls (and a single terminal!). (posted here)

Message 9 of 15
(4,882 Views)

@altenbach wrote:

Tim's answer is correct and appropriate. No code needed. 🙂


That's different.  Usually Christian shows me yet another, more efficient way, to code something.  Well, I guess you can't get more efficient than no code.Smiley Tongue


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 10 of 15
(4,865 Views)