08-20-2007 06:55 AM
08-20-2007 07:06 AM
08-20-2007 07:29 AM
Enum is best way to control case statements. Best if used in custom control type def.
http://zone.ni.com/reference/en-XX/help/371361B-01/lvconcepts/custom_cont_ind_type/
08-20-2007 08:05 AM
08-20-2007 08:30 AM
Mathias,
If you go to the next step of creating the strict type def custom control, you can now use the custom control several places in your design and have all those instances referenced back to the custom control. The idea being that if you need to edit the items in the enum, you only have to edit the custom control and those changes will be reflected in all the instances of the custom control in your code.
08-20-2007 08:34 AM
08-20-2007 08:40 AM
08-20-2007 08:59 AM
08-20-2007 10:44 AM
If you have multiple ranges, one easy way would be to use threshold array on a sorted array as e.g. shown here. Modify as needed.
(see also http://forums.ni.com/ni/board/message?board.id=170&message.id=232911#M232911)