LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Slider simultaneously acting as control and indicator

Solved!
Go to solution

Hi everyone,

 

Is it possible to create a custom control that acts as both a control and indicator?  What I want is a vertical slider that I can set a value with using the thumb or numeric input but I also want a horizontal line that would be approximately where the fill is (the value of which would be coming from a feedback in my system).  In my case I want to set the voltage and see the actual measured voltage on the same slider.  Is this possible?

 

Thanks,

 

Eric

0 Kudos
Message 1 of 13
(5,020 Views)

Sure, just place a Slider control, and Add slider. Then you can set one as Disabled, using it as an indicator. You can also set different slide colors.

 

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 2 of 13
(5,015 Views)

Thanks for the reply.  How do you only disable a signle slider within the control.  The only option is a global disable.  Also, since the datatype of the slider is a cluster of two doubles how do you set one without changing the other?

 

-Eric

0 Kudos
Message 3 of 13
(4,981 Views)

I mean I realize that I could unbundle the cluster, get the current value of the user operable slider and then bundle that with the feedback value that I want to set to the second slider and set that as the clustered value for the slider.  I was wondering if there was a more straigtforward way to do that.

 

Thanks,

 

Eric

0 Kudos
Message 4 of 13
(4,978 Views)

I would check out this post.

 

Disable Single Slide

 

I like the event based approach they took and would have recommended something similar.

 

 

Herrlin

Just trying to spread the LabVIEW love.
0 Kudos
Message 5 of 13
(4,966 Views)

double needle is a cluster...

 

Spoiler
test[1].png

 

0 Kudos
Message 6 of 13
(4,952 Views)

@apok wrote:

double needle is a cluster...

 


Was someone questioning this? 

Herrlin

Just trying to spread the LabVIEW love.
0 Kudos
Message 7 of 13
(4,940 Views)

You can get some rather satisfying results by overlaping a control and indicator and clever use of transparency (color tool).

I did this with the Silver controls but I am sure it would work OK with any of the others...

 

New Bitmap Image (2).png

0 Kudos
Message 8 of 13
(4,935 Views)

@apok wrote:

double needle is a cluster...

 

Spoiler
test[1].png

 


I tried this approach already (as I mentioned I could do in a previous post) and it still gives the user acces to the feedback slider.  If they wanted they could just grab the slider and move it to an arbitrary value in between feedback steps from the system.

0 Kudos
Message 9 of 13
(4,922 Views)

@herrlin wrote:

I would check out this post.

 

Disable Single Slide

 

I like the event based approach they took and would have recommended something similar.

 

 


I definitely works but I was looking for something less bulky.

 

I do like the simplicity of the idea Don_Phillips but not quite what I was looking for.@Don_Phillips@Don_Phillips

 

It just seems like this is such a logical thing to have in the software and it bothers me there isn't a really straightforward and simple solution.

 

Thanks for all the replies.

 

-Eric

0 Kudos
Message 10 of 13
(4,915 Views)