Download NI-VISA Programmer Reference Manual

Transcript
Chapter 5
f
Argument type: A reference to a floating point number.
Flags or Modifiers
s
Operations
Interpretation
Default functionality
Characters are read from the device until an entire number is
read. The number read may be in either IEEE 488.2 formats
<DECIMAL NUMERIC PROGRAM DATA> (NRf) or
<NON-DECIMAL NUMERIC PROGRAM DATA> (#H, #Q,
and #B).
field width
The input will be stored in a field at least this wide.
Length modifier l
arg is a reference to a double floating point number.
Length modifier L
arg is a reference to a long double number.
, array size
arg points to an array of floats (or double or long double,
depending on the length modifier) of size array size. The
elements of this array should be separated by commas.
Elements will be read until either array size number of
elements are consumed or they are no longer separated by
commas. If the array size contains a number sign (#), two
arguments are used. The first arg read is a pointer to an integer
specifying the maximum number of elements that the array can
hold. The second arg should be a reference to an array. Also,
the actual number of elements read is stored back in the first
argument.
Argument type: A reference to a string.
Flags or Modifiers
Interpretation
Default functionality
All leading white space characters are ignored. Characters
are read from the device into the string until a white space
character is read.
field width
This flag gives the maximum string size. If the field width
contains a number sign (#), two arguments are used. The first
argument read is a pointer to an integer specifying the
maximum array size. The second should be a reference to an
array. In case of field width characters already read before
encountering a white space, additional characters are read and
discarded until a white space character is found. In case of
# field width, the actual number of characters that were copied
into the user array, not counting the trailing NULL character,
are stored back in the integer pointed to by the first argument.
© National Instruments Corporation
5-129
NI-VISA Programmer Reference Manual