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.
|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.
The following codes are some of the most commonly used time format codes: %c displays locale-specific date/time; time-related format codes include %X (locale-specific time), %H (hour, 24-hour clock), %I (hour, 12-hour clock), %M (minute), %S (second), %<digit>u (fractional seconds with <digit> precision), and %p (a.m./p.m. flag); date-related format codes include %x (locale-specific date), %y (year within century), %Y (year including century), %m (month number), %b (abbreviated month name), %d (day of month), and %a (abbreviated weekday name).
|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. For more information about special characters in regular expressions, refer to the regular expression input description in the detailed help.|
|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 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.|
|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.|
|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.|