Example Code

VI converts text to string array

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

Overview:
Converts A multiline string into an array separating each line.

Description:
This code makes usage of the spreadsheet string array. Wire a feed line constant to detect each change of line and a 1D array desired dimension. The array subset converts the array to the right side avoiding an empty line at the end.

Requirements:
LabVIEW 2012 (or compatible).

Steps to Implement or Execute Code:
1. Run the VI
2. Change the text string or use as a sub VI.

Additional Information or References: 
Multiline Text to String Array - LV2012 NI Verified.png
"**This document has been updated to meet the current required format for the NI Code Exchange.**".

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