Performs a USB control pipe transfer from a USB device.


icon

Inputs/Outputs

  • cu16.png index (0)

    index passes a parameter to the device. The value you enter here depends on the value you entered in request.

    The index is often used in requests to specify an endpoint or an interface.
  • cu16.png value (0)

    value passes a parameter to the device. The value you enter here depends on the value you enter in request.

  • cvsrn.png VISA resource name

    VISA resource name specifies the resource to be opened. The VISA resource name control also specifies the session and class.

  • ci16.png request type

    request type is the numeric representation of the request you want to send to the device.

    This parameter is a bitmapped field that identifies the characteristics of the specific request. The bit specifying the direction must be set to 1 (device-to-host).
  • ci16.png request

    request specifies the particular request. The request you can enter depends on the value you entered in request type.

  • cu16.png length (0)

    length specifies the length of the data transferred during the second phase of the control transfer. The direction is device-to-host.

  • cerrcodeclst.png error in (no error)

    error in describes error conditions that occur before this node runs. This input provides standard error in functionality.

  • ivsrn.png VISA resource name out

    VISA resource name out is a copy of the VISA resource name that VISA functions return.

  • i1du8.png read buffer

    read buffer contains the data read from the device.

  • ierrcodeclst.png error out

    error out contains error information. This output provides standard error out functionality.

  • This function takes the values of the data payload in the setup stage of the control transfer as parameters. The function reads the optional data buffer read buffer if you require a data stage for this transfer.

    Note This function is only intended for users familiar with the USB protocol.

    Examples

    Refer to the following example files included with LabVIEW.

    • labview\examples\Instrument IO\VISA\USB\USB RAW - Control.vi