Agilent 4155B/4156B VXIplug&play Driver User’s Guide, Edition 4
2-15
Driver Functions
hp4156b_cmdReal64_Q
hp4156b_cmdReal64_Q
This function passes the cmd_str string to the instrument. This command expects a
response that can be returned as a 64 bit real.
Syntax
ViStatus _VI_FUNC hp4156b_cmdReal64_Q(ViSession vi, ViString cmd_str,
ViPReal64 result);
Parameters
vi
Instrument handle returned from hp4156b_init( ).
cmd_str
Instrument command (cannot exceed 256 bytes in length).
result
Response from instrument.
hp4156b_cmdString_Q
This function passes the cmd_str string to the instrument. This entry point will wait
for a response which must be a string (character data). You specify the cmd_str and
size parameters, and get result[ ].
Syntax
ViStatus _VI_FUNC hp4156b_cmdString_Q(ViSession vi, ViString cmd_str,
ViInt32 size, ViChar _VI_FAR result[ ] );
Parameters
vi
Instrument handle returned from hp4156b_init( ).
cmd_str
Instrument command (cannot exceed 256 bytes in length).
size
Length of result in bytes. 2 to 32767.
result[ ]
Response from instrument.
hp4156b_dcl
This function sends a device clear (DCL) to the instrument.
A device clear will abort the present operation and enable the instrument to accept a
new command or query. This is particularly useful in situations where it is not
possible to determine the instrument state. In this case, it is customary to send a
device clear before issuing a new instrument driver function. The device clear
ensures that the instrument will be able to begin processing the new commands.
Syntax
ViStatus _VI_FUNC hp4156b_dcl(ViSession vi);
Parameters
vi
Instrument handle returned from hp4156b_init( ).