Example Code

Parse String using 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
Parsing strings is useful in a wide array of applications, coming in especially handy when doing serial communication.  This example demonstrates how to parse a string based on a specific parsing expression.


Description
The code takes an input string broken up by an expression (like a comma), and returns in an array all of the values between occurrences of that expression.

 

  1. Specify the Input String to be parsed.
  2. Specify the Parsing Expression.
  3. Run the VI
  4. View the Output String


Requirements

Software:

LabVIEW 2012

 

Steps to Implement or Execute Code

  1. Download the .zip file
  2. Set your desired configuration (a, x1, x2, degrees, etc)
  3. Run the VI

 

Additional Information or References
VI Block Diagram

1.png

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

Andy G
Applications Engineering
National Instruments

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