You will notice that there are two different function layouts embedded in this structure. It is important to define the function for each case before running a VI with a Case Structure in it (LabView compiler will throw an error if you don’t).
To handle cases that do not match any of the inputs, the Case Structure will automatically have a “Default” option listed as one of the pre-programmed options which must be completed for all data types except for the Boolean data type.
For example, consider the following Case Structure shown in Figures 3, 4, and 5, that takes in a numeric input value. The case structure will output 2 (1 + 1) if the input is 1, 10 (2 x 5) if the input is 2, and 0 if the input is anything else (the 0 case and Default case).