User`s guide
6-12 Agilent B2200 User’s Guide, Edition 4
VXIplug&play Driver
Driver Functions
cmd_str Instrument command (cannot exceed 256 bytes in length).
size Length of result in bytes. 2 to 32767.
result[ ] Response from instrument.
agb220xa_cmdInt
This function passes the cmd_str string to the instrument. This entry point passes the
string in cmd_str followed by a space and then the integer in value. Note that either
an Int16 or 32 can be passed as the Int16 will be promoted.
Syntax ViStatus _VI_FUNC agb220xa_cmdInt(ViSession vi, ViString cmd_str,
ViInt32 value);
Parameters vi Instrument handle returned from agb220xa_init( ).
cmd_str Instrument command (cannot exceed 256 bytes in length).
value Parameter for command. -2147483647 to 2147483647.
agb220xa_cmdInt16Arr_Q
This function passes the cmd_str string to the instrument. This command expects a
response that is a definite arbitrary block of 16 bit integers. You specify the cmd_str
and size parameters, and get result[ ] and count.
Syntax ViStatus _VI_FUNC agb220xa_cmdInt16Arr_Q(ViSession vi, ViString cmd_str,
ViInt32 size, ViInt16_VI_FAR result[ ], ViPInt32 count);
Parameters vi Instrument handle returned from agb220xa_init( ).
cmd_str Instrument command (cannot exceed 256 bytes in length).
size Size of result[ ] (number of items in the array).
1 to 2147483647.
result[ ] Response from instrument.
count Count of valid items in result[ ].
agb220xa_cmdInt16_Q
This function passes the cmd_str string to the instrument. This command expects a
response that can be returned as a 16 bit integer.