VI_ATTR_USB_END_IN

NI-VISA

VI_ATTR_USB_END_IN

Resource Classes

USB RAW

Attribute Information

Access Privilege Data Type Range Default

Read/Write Local

ViUInt16

VI_USB_END_NONE (0)
VI_USB_END_SHORT (4)
VI_USB_END_SHORT_OR_COUNT (5)

VI_USB_END_SHORT_OR_COUNT

Description

VI_ATTR_USB_END_IN indicates the method used to terminate read operations.

If it is set to VI_USB_END_NONE, short packets are ignored for read operations, so reads will not terminate until all of the requested data is received (or an error occurs).

If it is set to VI_USB_END_SHORT, the read operation will terminate on a short packet; use this if the device will terminate all read transfers with a short packet, including sending a zero (short) packet when the last data packet is full.

If it is set to VI_USB_END_SHORT_OR_COUNT, the read operation will terminate on a short packet or when it receives the requested count of data bytes; use this if the device does not send zero packets.


Related Topics

RAW Resource