String Functions

LabVIEW 2018 Help


Edition Date: March 2018
Part Number: 371361R-01
View Product Info

DOWNLOAD (Windows Only)


LabVIEW 2015 Help
LabVIEW 2016 Help
LabVIEW 2017 Help
LabVIEW 2018 Help
LabVIEW 2019 Help

Owning Palette: Programming VIs and Functions

Requires: Base Development System. This topic might not match its corresponding palette in LabVIEW depending on your operating system, licensed product(s), and target.

Use the String functions to concatenate two or more strings, extract a subset of strings from a string, convert data into strings, and format a string for use in a word processing or spreadsheet application.

Palette ObjectDescription
Array To Spreadsheet StringConverts an array of any dimension to a table in string form, containing tabs separating column elements, a platform-dependent EOL character separating rows, and, for arrays of three or more dimensions, headers separating pages.
Build TextCreates an output string from a combination of text and parameterized inputs. If the input is not a string, this Express VI converts the input into a string based on the configuration of the Express VI.
Carriage Return ConstantConsists of a constant string containing the ASCII CR value.
Concatenate StringsConcatenates input strings and 1D arrays of strings into a single output string. For array inputs, this function concatenates each element of the array.
Empty String ConstantConsists of a constant string that is empty (length zero).
End of Line ConstantConsists of a constant string containing the platform-dependent end-of-line value.
Format Date/Time StringDisplays a timestamp value or a numeric value as time in the format you specify using time format codes.
Format Into StringFormats string, path, enumerated type, time stamp, Boolean, or numeric data as text.
Line Feed ConstantConsists of a constant string containing the ASCII LF value.
Match PatternSearches for regular expression in string beginning at offset. If the function finds a match, it splits string into three substrings. A regular expression requires a specific combination of characters for pattern matching. This function gives you fewer options for matching strings but performs more quickly than the Match Regular Expression function.
Match Regular ExpressionSearches for a regular expression in the input string beginning at the offset you enter. If the function finds a match, it splits the string into three substrings and any number of submatches. Resize the function to view any submatches found in the string.
Normalize End Of LineConverts the line endings of the input string to the line ending format you specify. If you do not specify a line ending format, this VI converts the line endings of the string to the line endings that the current platform expects. Use this VI to make your strings readable by different platforms or by the command line of the current platform.
Replace SubstringInserts, deletes, or replaces a substring at the offset you specify in string.
Scan From StringScans the input string and converts the string according to format string.
Search and Replace StringReplaces one or all instances of a substring with another substring. To include the multiline? input and enable advanced regular expression searches, right-click the function and select Regular Expression.
Space ConstantUse this constant to supply a one-character space string to the block diagram.
Spreadsheet String To ArrayConverts the spreadsheet string to an array of the dimension and representation of array type. This function works for arrays of strings and arrays of numbers.
String ConstantUse this constant to supply a constant text string to the block diagram.
String LengthReturns in length the number of characters (bytes) in string.
String SubsetReturns the substring of the input string beginning at offset and containing length number of characters.
Tab ConstantConsists of a constant string containing the ASCII HT (horizontal tab) value.
To Lower CaseConverts all alphabetic characters in string to lowercase characters. Evaluates all numbers in string as ASCII codes for characters. This function does not affect non-alphabetic characters.
To Upper CaseConverts all alphabetic characters in string to uppercase characters. Evaluates all numbers in string as ASCII codes for characters. This function does not affect non-alphabetic characters.
Trim WhitespaceRemoves all ASCII white space (spaces, tabs, carriage returns, and linefeeds) from the beginning, end, or both ends of string. The Trim Whitespace VI does not remove double byte characters.


SubpaletteDescription
Additional String VIs and FunctionsUse the Additional String VIs and functions to scan and search in strings, match patterns, and manipulate strings.
Flatten/Unflatten String FunctionsUse the Flatten/Unflatten String functions to flatten and unflatten LabVIEW data types to and from strings.
Path/Array/String Conversion FunctionsUse the Path/Array/String Conversion functions to convert strings, arrays, and paths.
String/Number Conversion FunctionsUse the String/Number Conversion functions to convert strings.

WAS THIS ARTICLE HELPFUL?

Not Helpful