LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Cursor on a slider

Hi All,

 

I have a question which I can not seem to figure out the answer to. I am reading in a value and I multiply that value by 0.3 and 0.70 to set the minimum and maximum. I have also placed a vertical slider as well as a tank on the front panel. I would like to set cursors on the slider and the tank the indicates the maximum and minimum. I know that we can set cursors on waveforms but I haven't been able to do it on sliders and tank.

 

Please let me know if you would like anymore info. 

0 Kudos
Message 1 of 4
(3,126 Views)

I don't know if this will help.  But I just played with the tank indicator and came up with this vi.  It does not have cursors, but uses colors as min and max.  I have 3 sliders 1=variable 2=min 3=max.  I got 2 and 3 to fill to the min/max by playing with the fill style for each.

 

The verticle slider will actually have the slider handles on the side.  Just add 2 more sliders to the slide and color them.

 

The other way would be to customize the indicator to make it just the way you want.

 

 

 

Hope this helped

0 Kudos
Message 2 of 4
(3,113 Views)
What I would exactly like to do is to have a line that determines the maximum and minimum. The tank value will be continuously changing due to signal coming from the DAQ card, however, the max and min will help the user stay within the min and max limit. It would be more appealing to have lines that stay constant. Thoughts?
0 Kudos
Message 3 of 4
(3,107 Views)
You can do that using the tank with the sliders as Bryan shows (although for the example the extra "Tank2" control is not necessary and can be eliminated). If you want a line then you can just add two additional sliders and simply make them close to the other two, and change the fill methods. See attached modification.
0 Kudos
Message 4 of 4
(3,093 Views)