LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Limit line on an slider bar

Hello! My question is. How can I make a line across a tankbar to indicate a limit that the tank value should try to obtain. Is there a tank propertie that can creat this. Now I use a second tank right next to the tank for the real value. ellile
0 Kudos
Message 1 of 6
(3,949 Views)

For a similar task I created a blank canvas which was the same size as a numeric slider control. Set to a transparant background and overlaid in the same place as the slider, you can then use CanvasDrawLine() to produce a suitable marker.

JR

0 Kudos
Message 2 of 6
(3,941 Views)

Is there a way to do this while making the marker location variable?  I'd like to set a reference marker that will automatically update it's location on the slider with the ambient air temperature in my app.  Thanks

Todd Munsell
Test Cell Manager
Wood Group Pratt & Whitney Industrial Turbine Services, LLC
Plattsburgh, NY
0 Kudos
Message 3 of 6
(3,673 Views)

This red line is a second Tank with everything hidden, no fill and I made the fill translucent ontop of the first. This way the red line moves with changing the value of the control, and CVI takes care of the scaling.

-----------------------
/* Nothing past this point should fail if the code is working as intended */
0 Kudos
Message 4 of 6
(3,652 Views)

Tank??  Do you mean the slider?  How did you make one of them translucent?  I can't find a reference in the LV 8.6 help.  Thanks

Todd Munsell
Test Cell Manager
Wood Group Pratt & Whitney Industrial Turbine Services, LLC
Plattsburgh, NY
0 Kudos
Message 5 of 6
(3,633 Views)

I just noticed that this may be the wrong forum for my post.  It's the only one that came up after a search.  I'll try posting in another area.  Thanks.

Todd Munsell
Test Cell Manager
Wood Group Pratt & Whitney Industrial Turbine Services, LLC
Plattsburgh, NY
0 Kudos
Message 6 of 6
(3,625 Views)