LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to represent Enum control in Slide fashion

Solved!
Go to solution

Hi,

The Enum comes as a menu bar, but how if I want to represent it as a slide bar in which all options are visible and we can shift between them using the slide option.

Please guide me how to achieve this task.

Regards

0 Kudos
Message 1 of 4
(3,062 Views)
Solution
Accepted by topic author Abuzar

Turn the slide into an integer.  Enable text labels and sequential values and put in a label that matches your enum for each item one by one.  Now you can use that numeric value from the slide control wherever you would use the enum.

Message 2 of 4
(3,040 Views)

Thanks a lot. With you help i was able to achieve this target, but a little problem is still remaining. I want the string output to be fetched in an array but this control is giving numeric output.

Is it some how possible to get a string output.

Regards

0 Kudos
Message 3 of 4
(2,982 Views)

Hi Abuzar,

 

use the slide's integer as an index to an array constant filled with your "string outputs"…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 4 of 4
(2,979 Views)