About 3,250,000 results
Open links in new tab
  1. Solved: enum to string - NI Community

    Jul 10, 2008 · create a property node of your enum control. Select "Strings[]", use the index array function. Connect the array from the property node and as index the value from the enum control.

  2. String to Enum Conversion in LabVIEW - NI

    Aug 30, 2023 · You can utilize Scan From String function available in LabVIEW to convert a string to enum type. Below is a simple example on how you can accomplish this.

  3. Creating ENUM dynamically from string Array - NI Community

    Oct 17, 2008 · For example, I would like to read in values from a string array and use each element to add a new item in the ENUM control. If this isn't possible, how do I configure a case structure to read in the values from a string array like an ENUM would normally be able to?

  4. Obtaining Enum Elements in String Format - NI

    Nov 29, 2023 · There are several methods to obtain both string indications of all items of an enum, as well as determining only the currently selected item. Use the snippet and method descriptions below to learn a few ways to approach this question.

  5. How to append a string to another string?! - NI Community

    Oct 8, 2012 · You are using "built array" instead of "concatenate string". Since you already have an entire row to write consisting of a single string, you need to add a "build array" if you want to use "write to spreadsheet file" (see image below). You should change the format to %s.

  6. How Do I Set an Enum Value Based on a String Input? - NI

    Oct 22, 2023 · To set the value of an Enum Control inside a cluster based on a string input, you can follow these steps: Unbundle the cluster to access the Enum. Use this example program with the Enum from the Unbundle function and your string input to set your Enum.

  7. Is it possible to create Enum from an array..? - LAVA

    Nov 3, 2009 · Depends on how you define scripting, but this toolkit has an example VI to create an enum from an array of strings. Ton

  8. LabVIEW (r) Preload an Enum with a String Array

    Feb 18, 2023 · Sometime you need to have an enum a many items and you already have a string array of what you want in the enum. You cannot use the string [] directly in the same vi the new enum is located because Write String [] only works in NON Running mode (Edit mode) so you need another vi that does the String []

  9. Using Enums in Labview Case Structures - NI

    Nov 7, 2023 · When you wire an enum to the case selector of a Case Structure, you are able to make different cases for each of the enum's values. To create a case for each of the enum values, right-click on the case structure frame and select Add case for every value.

  10. LabVIEW Materials, Tips and Tricks: Add Enum Items ... - Blogger

    Mar 5, 2019 · Here we need to add one Ring control & set the "Strings" property and run the code. Now Rig control will have the items which you set through "Strings" property. In front panel right click over Ring control and replace the it with Enum control.