Anonymous
Not applicable
Dec 23, 2016
06:17 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dec 23, 2016
06:17 AM
Hi,
A question about BulkRead.
The data length i am reading from USB device is not constant (for each individual trial). However, XferData( ) requires to specify data length before reading action. Is there anyway to know the data length in advance? Or, how to read out all data while do not know data length?
Thanks.
1 Reply
Anonymous
Not applicable
Dec 26, 2016
10:07 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dec 26, 2016
10:07 PM
The Xfer can be terminated with a ZLP. you can program your device to send a Zero length packet at the end of the transfer indicating that the transfer is over. Xfer can also be terminated if the data from the device is less than the max packet size,