Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Splitting Strings

LabVIEW 8.5 Help
August 2007

NI Part Number:
371361D-01

»View Product Info

Splitting strings divides a single string into two substrings. You can divide the string at a certain character, such as a carriage return, or at a word or phrase.

  1. Place the Search/Split String function on the block diagram.
  2. Wire the string you want to split to the string input of the Search/Split String function.
  3. Enter the text that indicates where string should be split in the search string/char input of the Search/Split String function.
  4. In offset, enter the number of characters in string to skip before the Search/Split String function starts searching for the text in search string/char.
  5. Wire the substring before match and the match + rest of string outputs of the Search/Split String function to string indicators or VIs or functions that accept a string as an input.
  6. Run the VI.

Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit