Example Code

Comma Delimited String to 1D Array in LabVIEW

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW

Code and Documents

Attachment

Download All

 Overview

This example divides a string input to an array of elements using different delimiters

 

Description

This VI takes a comma delimited string input and converts it to an array of strings and an array of numbers.  You can choose to use other delimiters if you like, but comma is set as the default.

 

Requirements

LabVIEW Base Development System 2012 or compatible

 

Steps to Implement or Execute Code

  1. Enter the delimited Input String
  2. Enter the selected delimiter
  3. Enter the format string value
  4. Select whether the desired output is Strings or Numeric
  5. Run the VI to fill the Output Arrays

 Additional Information or References

VI Block Diagram

7545.PNG 

 

 

**This document has been updated to meet the current required format for the NI Code Exchange. **

 

Justin Parker
National Instruments
Product Support Engineer

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.