07-28-2010 09:19 PM - edited 07-28-2010 09:20 PM
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.
Solved! Go to Solution.
07-28-2010 09:24 PM
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
07-28-2010 09:26 PM
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.
07-28-2010 09:29 PM
07-28-2010 09:32 PM - edited 07-28-2010 09:32 PM
Why don't you use a digital display on the slider, and no code is even necessary:
***EDIT: Yeah, what he said. ***
07-28-2010 09:41 PM
@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.
07-28-2010 10:12 PM
@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.
07-29-2010 12:13 AM
(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). 😄