LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

enum or menu as connector

Solved!
Go to solution

I'm working on a project where I have a couple of VIs that have menu rings wired up to a main connector. This allows me to create a constant when I use the VI as a sub-VI and then select from a list of options. The problem is that when I want to change the menu I have to go back and upate all of the constants where the VI is used as a sub-VI. Is there some better method for doing this where I don't have to go through and update all of my code every time I change the menu?

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

typdef enum

Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
Message 2 of 3
(2,091 Views)

As Paul said.  An Enum with a strict type def will allow you to apply changes when you update the control.  you lose the ability to programatically edit the control's Strings[] property. If you do not need to determine these strings from a file the enum is the way to go.


"Should be" isn't "Is" -Jay
0 Kudos
Message 3 of 3
(2,083 Views)