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 Object | Description |
---|---|
Array To Spreadsheet String | Converts 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 Text | Creates 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 Constant | Consists of a constant string containing the ASCII CR value. |
Concatenate Strings | Concatenates 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 Constant | Consists of a constant string that is empty (length zero). |
End of Line Constant | Consists of a constant string containing the platform-dependent end-of-line value. |
Format Date/Time String | Displays a timestamp value or a numeric value as time in the format you specify using time format codes. |
Format Into String | Formats string, path, enumerated type, time stamp, Boolean, or numeric data as text. |
Line Feed Constant | Consists of a constant string containing the ASCII LF value. |
Match Pattern | Searches 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 Expression | Searches 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 Line | Converts 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 Substring | Inserts, deletes, or replaces a substring at the offset you specify in string. |
Scan From String | Scans the input string and converts the string according to format string. |
Search and Replace String | Replaces 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 Constant | Use this constant to supply a one-character space string to the block diagram. |
Spreadsheet String To Array | Converts 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 Constant | Use this constant to supply a constant text string to the block diagram. |
String Length | Returns in length the number of characters (bytes) in string. |
String Subset | Returns the substring of the input string beginning at offset and containing length number of characters. |
Tab Constant | Consists of a constant string containing the ASCII HT (horizontal tab) value. |
To Lower Case | Converts 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 Case | Converts 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 Whitespace | Removes 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. |
Subpalette | Description |
---|---|
Additional String VIs and Functions | Use the Additional String VIs and functions to scan and search in strings, match patterns, and manipulate strings. |
Flatten/Unflatten String Functions | Use the Flatten/Unflatten String functions to flatten and unflatten LabVIEW data types to and from strings. |
Path/Array/String Conversion Functions | Use the Path/Array/String Conversion functions to convert strings, arrays, and paths. |
String/Number Conversion Functions | Use the String/Number Conversion functions to convert strings. |