LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
Intaris

Slide Fill options: Fill to Zero, Fill to slider Index

Status: Declined

Any idea that has received less than 2 kudos within 2 years after posting will be automatically declined. 

I have often missed the options to set slider fill to either "Fill to zero" or "Fill to slider Index" in order to allow for easy display of certain conditions.  Currently, we need to continually monitor the current state of the values and adapt the fill mode appropriately.  Problem is that writing to the terminal for a value and setting the property for the fill are asynchronous.  Requiring a "Defer panel update" call for something so trivial as a slider fill seems quite excessive.

 

Workarounds often also involve multiple overlapped (mostly transparent) sliders which is a real performance hog.

 

So Please give us those two fill options.. Please?

4 Comments
AristosQueue (NI)
NI Employee (retired)

Can you please post a VI showing the workaround so I know what problem you're having? I've never seen an issue with display in a slider.

Intaris
Proven Zealot

Here's a VI which illustrates the problem.

 

I've added a simple "UI Thread tax" by writing to the value property of three arrays as a moderately to heavily taxed UI shows the problem more noticeably.

 

I try to keep the slider fill between two values on the lower indicator by setting the value of the upper one.  This cannot be done without inevitably getting some "leakage" below and above the required areas.  Values above 5.5 and below 4.5 should NOT show up blue in this example but since writing to the terminal and actually setting the slider fill method are happening at slightly different times, flickering WILL occur.

 

https://forums.ni.com/ni/attachments/ni/130/12444/1/Slider%20fill%20problems.vi

crossrulz
Knight of NI

I have done this in an XControl before.  Wish I still have that code...



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
Darren
Proven Zealot
Status changed to: Declined

Any idea that has received less than 2 kudos within 2 years after posting will be automatically declined.