LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do you customize a slider to snap to custom marker values?

I programmatically customized the marker values using a property node to 5, 10, 25, and 50. Now I need the slider to snap to these values.
BJD1613

Lead Test Tools Development Engineer

Philips Respironics

Certified LV Architect / Instructor
0 Kudos
Message 1 of 6
(3,875 Views)
You will need to use text labels. Right click on the control and check text labels. This turns the slider into an enum type slider. Now you can add any value you want as text and then use a case structure to output the numerical value you want.
Message 2 of 6
(3,875 Views)
How can I add more than two labels? I see how it would snap that with two labels,but I need 5, 10, 25, and 50. Maybe I am missing something. I think you way will be easier if I can have more than two labels. I came up with an event structure vi to address this problem also but it isn't working as well.
BJD1613

Lead Test Tools Development Engineer

Philips Respironics

Certified LV Architect / Instructor
0 Kudos
Message 3 of 6
(3,875 Views)
For my application the use of text labels will be most beneficial. I posted another question about adding more than two labels. If you have any input it would be appreciated.
BJD1613

Lead Test Tools Development Engineer

Philips Respironics

Certified LV Architect / Instructor
0 Kudos
Message 4 of 6
(3,875 Views)
Place a slide control on the front panel, enable text labels (as the answer above says), select "min" in the text display and then right click on it, and select "add item after". This allows you to add as many as you want, you can rename "min" and "max" also.
0 Kudos
Message 5 of 6
(3,875 Views)
That works great. Thanks so much.
BJD1613

Lead Test Tools Development Engineer

Philips Respironics

Certified LV Architect / Instructor
0 Kudos
Message 6 of 6
(3,875 Views)