LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Progress display using semi-transparent slider?

Solved!
Go to solution

Hi,

 

I am working on a project which controls 28 chambers.  I want to have a screen with bars with different colors for the different stages.  I am thinking sliders here.  I want to fill them in before the run starts and then have a covering slider which is semi transparent to move across. 

 

I cannot see any way to get semi transparent with the another slider. 

 

 

My next idea is to have a semitransparent 2D picture on top which changes size as the run progresses. 

 

Any simpler suggestions?

 

Thanks

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

I don't understand as to why a covering slider is required in this case.  I assume that you need to programmatically fill the slider with values which are to be the upper limits of that particular case and which may change during every run. If that is the case, filling the slider and controlling the movement through another slider would be a round-about solution.

 

Consider setting the Maximum value and Response to value outside the limits using property nodes. Sample VI is attached for your reference.

 

 

Hope this helps !

 

 

 

------------------------------------------------------------------------------------


Subramanian.A


Engineer

 

Captronic Systems

-------------------------------------------------------------------------------
Subramanian
LabVIEW Developer


Life may control my car, but I steer it ! !
0 Kudos
Message 2 of 8
(3,649 Views)

There are any number of options you can use, such as:

 

  • A 1D array of clusters where a color box sets the color and a slider with a transparent BG shows the progress.
  • A picture control where you draw everything yourself.
  • A 2D array of color boxes where you simply change the color to indicate progress.
  • Customize the slider control to make the slider itself semi-transparent.

Since I don't understand what you want exactly, I have no practical recommendation other than to upload a simple example or mockup of what you actually want.


___________________
Try to take over the world!
Message 3 of 8
(3,634 Views)

Thanks for your replies.

 

I didn't do a very good job of explaining what I wanted. Here is roughly what I am trying to achieve:

 

 

Progress chart for NI forum.JPG 

 

The vertical line is how far the process has progressed.  I have done that with a transparent, wide slider covering all the other sliders.  I would like all the colours to the left of the vertical line to be greyed out.

 

TST says I can customise that slider.  Can I get the  fill to be semi transparent?  I have seen how you can import an image into a slider and that image can be semitransparent if it was imported from PowerPoint.  I have not been successful with that.

 

 

0 Kudos
Message 4 of 8
(3,601 Views)

pgaastra,

 

In response to your initial idea regarding layering a semitransparent picture atop your slider, this is a possibility, but it is not recommended because it makes LabVIEW run inefficiently by taking up too much processing power at a time. Also, issues may arise with the rendering of the UI. The idea of a picture control drawn yourself may seem tedious, but it would be a solution that would prevent layering of indicators. I do not believe that the fill of individual sections or allocated areas of the slider can be altered to be semi transparent with any simple command. I will continue to look into this, let me know if you find a solution.

 

Best,

Jason M.
Applications Engineer
National Instruments
0 Kudos
Message 5 of 8
(3,571 Views)

Thanks for all the input. 

 

I think my semi transparent idea is just too hard.  I will go ahead with what I have shown in my last post.

0 Kudos
Message 6 of 8
(3,560 Views)
Solution
Accepted by topic author pgaastra

@pgaastra wrote:

Can I get the  fill to be semi transparent?


Yes. Like I said, there are any number of ways in which you can do this, but to keep in line with what you already did, you can create a square semi-transparent PNG (I like Paint.NET, but I believe PowerPoint should also work for that) and import that instead of the fill. The key point is that after you do that, you need to hide the backround of the slide. To do that, select Window>>Show Parts Window in the edit mode and find the part called Cosmetic. Then change its size and position so that it's hidden. Alternatively, you can import a transparent picture to replace it. That will allow you to see behind the slide.


___________________
Try to take over the world!
Message 7 of 8
(3,532 Views)

Thanks Tst,

 

I was messing up little details.  Following your instructions I have a working transparent slider now.

0 Kudos
Message 8 of 8
(3,514 Views)