User`s guide
Programming with VISA 3
Agilent VISA User’s Guide 51
Format Codes
. This table summarizes the format codes for
sending and receiving formatted I/O.
Sample: Receiving Data From a Session
This sample receives data from the session specified by the
vi parameter and converts the data to a string.
Table 15 Format Codes for Sending and Receiving Formatted I/O
Format Codes Description
viPrintf/viVPrintf and viQueryf/viVqueryf (writeFmt)
d, i Corresponding argument is an integer.
f Corresponding argument is a double.
c Corresponding argument is a character.
s Corresponding argument is a pointer to a null terminated string.
% Sends an ASCII percent (%) character.
o, u, x, X Corresponding argument is an unsigned integer.
e, E, g, G Corresponding argument is a double.
n Corresponding argument is a pointer to an integer.
b, B Corresponding argument is the location of a block of data.
viPrintf/viVPrintf and viQueryf/viVqueryf (readFmt)
d,i,n Corresponding argument must be a pointer to an integer.
e,f,g Corresponding argument must be a pointer to a float.
c Corresponding argument is a pointer to a character sequence.
s,t,T Corresponding argument is a pointer to a string.
o,u,x Corresponding argument must be a pointer to an unsigned
integer.
[ Corresponding argument must be a character pointer.
b Corresponding argument is a pointer to a data array.