User`s guide

Programming with VISA 3
Agilent VISA User’s Guide 47
Argument Length Modifier The meaning of the optional
argument length modifier h, l, L, z, or Z is dependent
on the conversion character, as listed in the following
table. Note that z and Z are not ANSI C standard
modifiers.
, Array Size The comma operator is a format modifier
that allows you to read or write a comma- separated list
of numbers (only valid with %d and %f format codes). It is
a comma followed by an integer. The integer indicates the
number of elements in the array. The comma operator has
the format of ,dd where dd is the number of elements to
read or write.
Table 12 Argument Length Modifiers
Argument
Length
Modifier
Format
Codes
Description
h d,b,B Corresponding argument is a short integer or a reference
to a short integer for d. For b or B, the argument is the
location of a block of data or a reference to a data array. (B
is only used with viPrintf or viQueryf (writeFmt).)
l d,f,b,B Corresponding argument is a long integer or a reference
to a long integer for d. For f, the argument is a double float
or a reference to a double float. For b or B, the argument is
the location of a block of data or a reference to a data
array. (B is only used with viPrintf or viQueryf (writeFmt).)
L f Corresponding argument is a long double or a reference to
a long double.
z b,B Corresponding argument is an array of floats or a
reference to an array of floats. (B is only used with
viPrintf or viQueryf (writeFmt).)
Z b,B Corresponding argument is an array of double floats or a
reference to an array of double floats. (B is only used with
viPrintf or viQueryf (writeFmt).)