From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

custom enum

Solved!
Go to solution

Hi all,

 

I was looking at some code earlier and saw a strange looking enum and would like to know how to replicate how it looks.

 

 

The two enums in the picture are the same (Copied and pasted) but how do I make the one on the right look like the one on the left.  They appear the same on the block diagram.

enum.png

Lewis Gear CLA
LabVIEW UAV

0 Kudos
Message 1 of 3
(2,526 Views)
Solution
Accepted by topic author Lewis_G

Hi Lewis,

 

the left one isn't an Enum, it's a RadioButton found on the Booleans palette...

 

On the BD they look the same, as radio buttons are based on enums as the help explains!

Best regards,
GerdW


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

Tabs work in a similar way.  On the front panel the control looks like a tab interface, but the block diagram has it acting like an enum.  This can be useful if you have a case in a state machine to update the user interface.  You can use wire the current value of the tab into a case statement, and only update the controls on that page of the tab control.

0 Kudos
Message 3 of 3
(2,511 Views)