String

Format Single

Format a single precision number for readability in 10 characters or less.

Remove Trailing Spaces

Remove trailing spaces, if any, from string.

MGI String find return

Return the number of characters from the "Offset In" to the next line return in "Line Length". "Offset out" is set to one character past the found line return. If no line return is found, -1 is returned in Offset out and the remaining string length in Line Length.

Obscure String

Convert a string to its bitwise inverse so that it won't be human readable. Apply again to recover the original string.

MGI_Make String Filesafe

Remove characters that are not allowed in File or Folder names.

MGI_Split Encoded String at Non-encoded tokens

Breaks an encoded string into an array of string segments. Each segment is either token or an encoded string portion. Tokens that are backslash encoded are ignored. For example, if the token was _, then the string "Hello\_World_!" would return the segments: "Hello\_World", "_", "!"

MGI_Backslash Decode

Decodes all backslash preceded characters.

MGI_Backslash Encode

Encodes all special characters (e.g. return, space, non-printable characters) and any additional specified characters with a preceding backslash. This will produce a string very similar to LabVIEW's '\' Code Display. strings in Additional Chars array should all contain 1 character, non-white space, printable strings.

Pad String

This VI adds as many pad characters as necessary to String In to give it a length of End Length.

Split String

This VI splits String at Index and returns String after Index and String before Index.

Double to String

Converts a double into a string with the specified precision.

Double Array to String Array

Converts an array of doubles into an array of strings with the specified precision.

Hex Str to U8 Data

Convert the Hex String containing 0-9 and A-F to an array of bytes. NOTE: This VI does not handle lower case a-f.

U8 Data to Hex Str

Convert the array of bytes to a Hex String containing 0-9 and A-F. This VI is optimized for large input arrays.

Update Log

This VI is designed to be used to update a string "log" residing on a shift register. It adds a properly formatted new line to the log with timestamp, spacing, and linefeed. It also optionally limits the size of the log to the specified number of characters by deleting the oldest characters from the log.

Union and Intersection

Given the two ordered sequences, find the Union containing all values, the intersection containing values in both sequences, and the values unique to each sequence. All arrays maintain the order of the orginal sequences. If elements appear in a different order in the sequences, the first sequence takes precedence. Note: "ordered" does not necessarily mean alphabetical. Note: Duplicates in Sequence 1 or Sequence 2 do not appear as duplicates in the output arrays.

Get Enclosed String

Output the start and length of the string enclosed by the specified start and end tokens. Note that the enclosed string may include sets of enclosed substrings. -1 is output fo the offset if no enclosed string is found. An error is returned if the end of the string is reached before the final end token is reached. Example: ((a)(b)) yeilds Offset = 1 Length = 6 substring = "(a)(b)"

MGI_Filter Table Rows

Filters the input table using the specified Column Filters. The implementation depends on the use of an Illegal Character that does not appear in Table or in Column Filters and is not a special character in match pattern (+,*,^,etc). The row index of each match is also output. Column Filter values may be: =Match arbitrary text =Match empty Strings *=Match anything .=Match non-empty strings **^=Ends with *^*=Contains ^**=Begins with

String Pattern Match Exists

Returns true if any of the Patterns to Try are found in String. The patterns are tried in order, and the index of the first pattern to match is returned. If no match is found, the returned index is equal to the size of the array Patterns to Try.

Match Last Pattern

Works like Match Pattern, but uses the last match in the string to split the input string. Note that the regular expression is reversed before applying, so any special characters in the regular expression should be placed in their opposite orientation. (For example, use a \ after a character rather than before a character in order to cancel its special interpretation). Also note that the offsets are relative to the end of the string so that they can be used with shift registers to efficiently find the second to last match, the third to last match, and so on.

Remove All Whitespace

Remove all whitespace from a string where whitespace is defined as any of \n \r \s or \t.

String Pattern Match Exists

Returns true if any of the Patterns to Try are found in String. The patterns are tried in order, and the index of the first pattern to match is returned. If no match is found, the returned index is equal to the size of the array Patterns to Try.