Keysight VISA.NET Help
ControlIn Method (UsbSession)



A bitmap field for defining the USB control port request. The bitmap fields are defined by the USB specification. The direction bit must be device-to-host.
Request ID for this transfer. The meaning of this value depends on requestType.
The requested value for this transfer.
The interface or endpoint index number, depending on requestType.
The length of the data in bytes to send to the device during the Data stage. If this value is 0, then a zero-length byte array is returned from this method.
Requests arbitrary data from a USB device on the default control port.
Syntax
'Declaration
 
Public Function ControlIn( _
   ByVal requestType As Short, _
   ByVal request As Short, _
   ByVal value As Short, _
   ByVal index As Short, _
   ByVal length As Short _
) As Byte()
'Usage
 
Dim instance As UsbSession
Dim requestType As Short
Dim request As Short
Dim value As Short
Dim index As Short
Dim length As Short
Dim value() As Byte
 
value = instance.ControlIn(requestType, request, value, index, length)

Parameters

requestType
A bitmap field for defining the USB control port request. The bitmap fields are defined by the USB specification. The direction bit must be device-to-host.
request
Request ID for this transfer. The meaning of this value depends on requestType.
value
The requested value for this transfer.
index
The interface or endpoint index number, depending on requestType.
length
The length of the data in bytes to send to the device during the Data stage. If this value is 0, then a zero-length byte array is returned from this method.

Return Value

The data received from the device.
Remarks

The usage of each parameter is based on the relevant USB base or class specification, or on a vendor-specific request definition.

Requirements

Current with Keysight IO Libraries Suite 18

See Also

 

 


© Keysight Technologies 2015-2025