LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I change the value of a Front Panel Control?

Solved!
Go to solution

On the Front Panel I am making a complex control that consists of a Slider Control and a Numerical Input Control. Both Controls display the same information and either can be used for Input. When one changes value I want the other control to display the same value.

 

How can I change the value of a Front Pane Control when another Control changes value? I know how to use an Event structure to detect the value changed, but I don't know how to force a Front Panel Control to change its value in the Block Diagram.

0 Kudos
Message 1 of 8
(3,831 Views)

You can write to a local variable of the control, or a Value Property Node of the control.

 

These are very basic questions you are asking.  Have you taken any LabVIEW tutorials?
LabVIEW Introduction Course - Three Hours
LabVIEW Introduction Course - Six Hours

0 Kudos
Message 2 of 8
(3,825 Views)

I have taken many LabVIEW turorials and none of this was mentioned.

 

Also this information does not appear in the LabVIEW Help under Numeriacal controls as far as I can tell.

0 Kudos
Message 3 of 8
(3,821 Views)
Why don't you delete your digital control, then right-click the slider and select "visible items...digital display" or similar. No code needed! 🙂
0 Kudos
Message 4 of 8
(3,819 Views)
Solution
Accepted by dbaechtel

Why don't you use a digital display on the slider, and no code is even necessary:

 

20181iCD29194C98C432E4

 

***EDIT: Yeah, what he said. ***

Message 5 of 8
(3,817 Views)

@dbaechtel wrote:

I have taken many LabVIEW turorials and none of this was mentioned.

 

Also this information does not appear in the LabVIEW Help under Numerical controls as far as I can tell.


 

Honestly, I've never taken the tutorials because I paid for classroom LabVIEW training in Basic 1 & 2 and Intermediate 1 & 2, as well as some webcast advanced courses.

 

But someone can correct me if I'm wrong, but I'm sure the tutorials somewhere have to mention local variables and property nodes.

0 Kudos
Message 6 of 8
(3,804 Views)

 


@Ravens Fan wrote:

@dbaechtel wrote:

I have taken many LabVIEW turorials and none of this was mentioned.

 

Also this information does not appear in the LabVIEW Help under Numerical controls as far as I can tell.


 

Honestly, I've never taken the tutorials because I paid for classroom LabVIEW training in Basic 1 & 2 and Intermediate 1 & 2, as well as some webcast advanced courses.

 

But someone can correct me if I'm wrong, but I'm sure the tutorials somewhere have to mention local variables and property nodes.


Local variable are. They're in the 6 hour course that you linked to. Didn't see anything about property nodes, though.

 

0 Kudos
Message 7 of 8
(3,793 Views)

(Sorry, I was posting earlier via phone, so I could not show a picture like jack. :))

 

Anyway, a "No Code" solution is much better than convoluted gymnastics with events and local variables.

 

The digital display can easily be customized and the possibilities are endless. For an extreme example, have a look at this old VI (posted here). 😄

Message 8 of 8
(3,784 Views)