Download LabVIEW Function and VI Reference Manual

Transcript
Chapter 6
String Functions
numbers, and arrays of numbers, interpreting them as ASCII codes for
characters (refer to the Appendix C, GPIB Multiline Interface Messages for
the numbers that correspond to each character). Width and precision inputs
must be scalar.
Polymorphism for Additional String to Number Functions
To Decimal, To Hex, To Octal, To Engineering, To Fractional, and
To Exponential accept clusters and arrays of numbers and produce clusters
and arrays of strings. From Decimal, From Hex, From Octal, and From
Exponential/Fract/Sci accept clusters and arrays of strings and produce
clusters and arrays of numbers. Width and precision inputs must be scalar.
Polymorphism for String Conversion Functions
The Path To String and String To Path functions are polymorphic. They
work on scalar values, arrays of scalars, clusters of scalars, arrays of
clusters of scalars, and so on. The output has the same composition as the
input but with the new type.
Format Strings Overview
Many G functions accept a format string input, which controls the
behavior of the function. A format string is composed of one or more
format specifiers, which determine what action to take to process a given
parameter. The Format Into String and Scan From String functions can use
multiple format specifiers in the format string, one for each resizable input
or output to the function. Characters in the string that are not part of the
format specifier are copied verbatim to the output string (in the case of
Format Into String) or are matched exactly in the input string (in the case
of Scan From String), with the exception of special escape codes. You can
use these codes to insert nondisplayable characters, the backslash, and
percent characters within any format string. These codes are similar to
those used in the C programming language.
Table 6-1 displays the special escape codes. A code does not exist for the
platform-dependent end-of-line (EOL) character. If you need to append
one, use the End-of-Line constant from the String palette.
LabVIEW Function and VI Reference Manual
6-2
© National Instruments Corporation