Normalize End Of Line VI

Owning Palette: String Functions

Requires: Base Development System

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.

For example, if you specify UNIX in end of line, LabVIEW converts the line endings of string in to \n because \n is the standard UNIX line ending.

 Add to the block diagram  Find on the palette
end of line specifies the line ending to which to convert.
Note   In LabVIEW for macOS, Native and Native Command Line are equivalent to UNIX. In LabVIEW for OS X 32-bit, Native and Native Command Line are equivalent to Macintosh.


0Native—Specifies the native line ending of the current platform.
1Native Command Line—Specifies the native line ending of the command line of the current platform.
2UNIX—Specifies the UNIX line ending, used by Linux, macOS, and other UNIX derivatives, \n.
3Macintosh—Specifies the Macintosh Classic line ending, \r.
4DOS—Specifies the standard DOS/Windows line ending, \r\n.
string in specifies the string containing the line endings you want to convert.
string out returns the string with converted line endings.