I have a USB RAW device.
I successfully created a basic driver for the device using NI-VISA Driver Development Wizard. (I was also able to set up the Windows HID driver as well, but I'm a little less sure how to interact with this driver--a Call Library Function Node, presumably, but I do not yet know the function prototypes so for the moment I am using the NI-VISA driver.)
The device appears in MAX where I can open an NI-VISA session and obtain basic information about the device on the Template tab. On the Interface I/O tab...Control In tab if I use the following inputs I obtain the expected return value:
inputs:
Request Type: 0x80 (Device to Host, Standard Type, Device Recipient)
Request: 0x00 (GET_STATUS)
Value: 0x00
Index: 0x00
Length: 0x02
return:
\x00\x00
I wrote a VI that does much the same thing. Also, I know the device uses interrupt mode to communicate with the USB host.
What I do not know is where to go from here. The read functions do not return data (Error Code: VI_ERROR_INV_SETUP [Unable to start operation because setup is invalid (due to attributes being set to an inconsistent state).]).
What do I need to do to read data from the device?
Thanks!
Paul