Example Code

Turning a Sentence into an Array of Words

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
This VI turns a string into an array of words and an index array is used to select a specific word in the string. 


Description
This VI uses the Spreadsheet String to Array VI with a space constant as a delimiter to turn a string into an array of words. An Index Array VI is used to select a specific word in the string. 


Requirements

  • LabVIEW 2012 (or compatible)


Steps to Implement or Execute Code

  1. Open " String To Word Array 2012 NIVerified.vi"

 

Additional Information or References
VI Block Diagram

 5-39.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.