Figure 1 - Case Structure - if statement
Alternatively for simple conditions and actions, the Select Function functions similarly. The Select Function accepts three inputs. Those inputs listed in order from top to bottom can be seen below:
The advantage of using the Case Structure is that you can you can add cases and essentially create if-else statements and switch statements. You can use strings, numbers, or enumerations wired to the case selector input to identify all of the available cases. In LabVIEW 7.1 or earlier, refer to the LabVIEW User Manual for detailed information about Case Structures. In LabVIEW 8.0 or later refer to the Case Structure topic in the LabVIEW Help. There are also several shipping examples for the Case Structure. To access the examples from LabVIEW go to the Help menu and select Find Examples. Then click on the Search tab and enter Case Structure as the search term. A number of examples are available to choose from.
Collaborate with other users in our discussion forums
A valid service agreement may be required, and support options vary by country.
Thank you for your feedback.
You changed your response to Not Helpful
You changed your response to Helpful