LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can i create a custom control, indicator

This is FredFred,

How can i create a custom control switch with 3 or more options,
OFF
ON
STANDBY

Other than rocker, slide, or toggle switch, are there other switches that we can use, hence, the question of creating a custom switch.

Also, is there a way to create an indicator with two options. Enclosed is a jpeg with an example of what i need

Thanks in Advance
0 Kudos
Message 1 of 2
(2,568 Views)
Hello.

Boolean controls can only have 2 possible values, true or false, and there is no way to add more values to them.

If you need more values, then you must use a numeric control (or a string, but I tend to like numerics better, although strings could be just as useful).

There are several types of numeric controls you could use to provide 3 or more options. Attached is a VI which shows a ring, a knob, and a slide each with 3 possible values. In your code, you would then perform different actions depending on the numeric value of your control.

Hope this helps,

Alejandro
Message 2 of 2
(2,544 Views)