Table Of Contents

USB Control In (G Dataflow)

Version:
    Last Modified: March 3, 2017

    Performs a USB control pipe transfer from a USB device.

    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.

    spd-note-note
    Note  

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

    connector_pane_image
    datatype_icon

    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.

    Default: 0

    datatype_icon

    value

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

    Default: 0

    datatype_icon

    session in

    The resource to be used.

    datatype_icon

    error in

    Error conditions that occur before this node runs.

    The node responds to this input according to standard error behavior.

    Standard Error Behavior

    Many nodes provide an error in input and an error out output so that the node can respond to and communicate errors that occur while code is running. The value of error in specifies whether an error occurred before the node runs. Most nodes respond to values of error in in a standard, predictable way.

    error in does not contain an error error in contains an error
    If no error occurred before the node runs, the node begins execution normally.

    If no error occurs while the node runs, it returns no error. If an error does occur while the node runs, it returns that error information as error out.

    If an error occurred before the node runs, the node does not execute. Instead, it returns the error in value as error out.

    Default: No error

    datatype_icon

    request type

    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, such as the direction of the request, type of the request, and the designated recipient. The bit specifying the direction must be set to 1 (device-to-host).

    datatype_icon

    request

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

    datatype_icon

    length

    Length of the data to be transferred during the optional data phase of the control transfer. The direction is device-to-host.

    Default: 0

    datatype_icon

    session out

    The resource to which a VISA session is opened.

    This output also includes the class for the session, which matches that of session in.

    datatype_icon

    error out

    Error information.

    The node produces this output according to standard error behavior.

    Standard Error Behavior

    Many nodes provide an error in input and an error out output so that the node can respond to and communicate errors that occur while code is running. The value of error in specifies whether an error occurred before the node runs. Most nodes respond to values of error in in a standard, predictable way.

    error in does not contain an error error in contains an error
    If no error occurred before the node runs, the node begins execution normally.

    If no error occurs while the node runs, it returns no error. If an error does occur while the node runs, it returns that error information as error out.

    If an error occurred before the node runs, the node does not execute. Instead, it returns the error in value as error out.
    datatype_icon

    read buffer

    The actual data read from the device during the data phase of the control transfer.

    Where This Node Can Run:

    Desktop OS: Windows

    FPGA: Not supported


    Recently Viewed Topics