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

Updated Oct 22, 2023



  • LabVIEW

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

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.