Keysight VISA.NET Help
CommandQuery Method (VxiSession)



Indicates whether to issue a command and/or retrieve a response, and the type or size of the command or response.
The command to send.
Sends the device a miscellaneous command or query and/or retrieves the response to a previous query.
Syntax
'Declaration
 
Public Function CommandQuery( _
   ByVal mode As VxiCommandMode, _
   ByVal command As Integer _
) As Integer
'Usage
 
Dim instance As VxiSession
Dim mode As VxiCommandMode
Dim command As Integer
Dim value As Integer
 
value = instance.CommandQuery(mode, command)
public int CommandQuery( 
   VxiCommandMode mode,
   int command
)
public:
int CommandQuery( 
   VxiCommandMode mode,
   int command
) 

Parameters

mode
Indicates whether to issue a command and/or retrieve a response, and the type or size of the command or response.
command
The command to send.

Return Value

The response retrieved from the device. If the mode does not include a response, this method returns zero.
Remarks

If the mode parameter specifies sending a 16-bit command, the upper half of the command parameter is ignored. If the mode parameter specifies just retrieving a response, the command parameter is ignored. If the mode parameter specifies sending a command only, the return value may be 0. If a response is retrieved but is only a 16-bit value, the upper half of the return value will be set to 0.

Refer to the VXI Specification for defined word serial commands. The command values Byte Available, Byte Request, Clear, and Trigger are not valid for this operation.

Requirements

Current with Keysight IO Libraries Suite 18

See Also

 

 


© Keysight Technologies 2015-2025