Owning Palette: Programming VIs and Functions
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 time stamp value or a numeric value as time in the format you specify using time format codes. Time format codes include the following: %a (abbreviated weekday name), %b (abbreviated month name), %c (locale-specific date/time), %d (day of month), %H (hour, 24-hour clock), %I (hour, 12-hour clock), %m (month number), %M (minute), %p (a.m./p.m. flag), %S (second), %x (locale-specific date), %X (locale-specific time), %y (year within century), %Y (year including century), and %<digit>u (fractional seconds with <digit> precision). |
| 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, and if it finds a match, splits string into three substrings. A regular expression requires a specific combination of characters for pattern matching. |
| Match Regular Expression | Searches for a regular expression in the input string beginning at the offset you enter and, if it finds a match, splits the string into three substrings and any number of submatches. Resize the function to view any submatches found in the string. |
| 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? Boolean input, 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 white space (spaces, tabs, carriage returns, and linefeeds) from the beginning, end, or both ends of string. |
| 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. |
| String/Array/Path Conversion Functions | Use the String/Array/Path Conversion functions to convert strings, arrays, and paths. |
| String/Number Conversion Functions | Use the String/Number Conversion functions to convert strings. |
| XML VIs and Functions | Use the XML VIs and functions to manipulate LabVIEW data in XML format. |