How Do I Set an Enum Value Based on a String Input?

Updated Jan 23, 2019

Reported In

Software

  • LabVIEW

Issue Details

I'm trying to extract a matching value of an enum in a cluster based on a string input. How would I do that?

Solution

To set the value of an Enum Control inside a cluster based on a string input, you can follow these steps:
  1. Unbundle the cluster to access the Enum.
  2. Use this example program with the Enum from the Unbundle function and your string input to set your Enum.
  3. Bundle the Enum into the cluster to update its value.

WAS THIS ARTICLE HELPFUL?

Not Helpful