From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
06-04-2009 12:53 PM
I am using Labview 8.2.1 and VISA 4.5. I am trying to get my custom USB device to work with Labview to do simple data transfers. I am currently using a Vendor Request Type 0xC0, value 0, index 0, length of 64, and a Vendor Request of 0xFD which my firmware recognizes as a command to respond with a particular 64 byte packet of data. When I use the VISA Interactive control, everything works fine - the 64 byte packet comes back as expected. However when I try to do the same thing with the USBRawControl.vi the 64 byte packet does not get read in. Looking at the USB bus with an analyzer I see something fishy - after my device sends the 64 bytes the Host PC ACK's the packet, but then sends another IN0 which my device STALLs. When I run the scenario with VISA Interactive Control, the Host PC sends an OUT0 which my device ACK's and data shows in the read buffer on the front panel. If I try using USBRawControl.vi with any transfer requiring less than 64 bytes, things work fine. What could be going on here?
06-05-2009 03:59 PM
06-08-2009 08:31 AM
06-09-2009 10:35 AM