beautypg.com

Agb220xa_cmddata_q, Agb220xa_cmdint, Agb220xa_cmddata_q -13 agb220xa_cmdint -13 – Agilent Technologies B2201A User Manual

Page 199

background image

Agilent B2200 User’s Guide, Edition 2

6-13

VXI plug&play Driver

Driver Functions

agb220xa_cmdData_Q

This function passes the cmd_str string to the instrument. This entry point will wait
for a response which may be any data. You specify the cmd_str and size parameters,
and get result[ ].

Syntax

ViStatus _VI_FUNC agb220xa_cmdData_Q(ViSession vi, ViString cmd_str,
ViInt32 size, ViChar_VI_FAR result[ ] );

Parameters

vi

Instrument handle returned from agb220xa_init( ).

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.

This manual is related to the following products: