LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I fix a slide control?

I have a slide control in a vi that I did not write that uses text labels in place of numeric labels. It does however output an integer corresponding to the selection on the slide. I need to modify this control but it does not respond as a normal slide control would. I have two questions. First, how can I change the maximum value of the slide since I only need 5 stops on mine and the one I have has 8? Second, more generally, how can I start with a "normal" slide control and make it work like this one? Basically, I need a control that works like a ring control but looks like a slide control.
0 Kudos
Message 1 of 3
(2,737 Views)
Let me start from the last question.

You can use a simple numeric slide; right click on it and select 'Text labels': it changes to a slide with only two options (max and min or something similar) with a text display with the up/down arrow keys. Right clicking on the text displays, you will find options for adding or deleting or even enabling/disabling items in the 'ring'. Once you terminate creating your list of items, you can hide the text display to have a control more similar to a ring. The control remains a numeric one.

Now to come to the first question: if your vi uses a control like this, you must display the text display, select on it the items you don't need and remove them.
NOTE: if you remove an item in the middle of the list, all subsequent item
s will be shifted one place back, so the numeric value associated with each of them will change and this will affect the behaviour of the vi (you will have to adapt a case wired to that control to the new situation of the list, for example). You could consider simply disabling the items you don't need...

Roberto


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
Message 2 of 3
(2,737 Views)
You can customize any control by selecting it and then going to edit>>edit control, there you can do almost any modification to it.
Hope this helps
0 Kudos
Message 3 of 3
(2,737 Views)