I pocess an instrument our group developed with an USB OTG connector and I wanting to use Labview to control the instrument. I have used the USB tutorial to create an inf file with the VISA wizard, but I am having difficutly talking to the instrument. The instrument has its own serial commands to control the instrument from a pc which has been successful with another inf file usb driver and software that is specfic to this instrument.
This is the attributes for the instrument using the VISA wizard and got the VISA to see the instrument.
Timeout Value = 2000
Maximum Queue Length = 50
Termination Character = 0x0A
Termination Char Enable = VI_FALSE
IO Protocol = 1
Suppress End on Reads = VI_FALSE
USB Maximum Interrupt Size = 1
USB Control Pipe = 0x0000
USB Bulk-Out Pipe = 0x0001
USB Bulk-In Pipe = 0x0082
USB Interrupt-In Pipe = 0xFFFF
USB Alternate Setting = 0
USB Bulk-Out Pipe Status = 0
USB Bulk-In Pipe Status = 0
USB Interrupt-In Pipe Status = -1
USB End Mode for Reads = 5
I noticed this -1 and was told I could not do bulk transfers and that just leaves control and interupt pipes left. However, I am not usb expert and I do not know how to set the usb control in and control out VIs so that I can send commands to the instrument from labview. I have read through alot of articles talking about endpoints, but I do not have any idea where to find them. I have looked at the example VIs NI has posted on their USB tutorial section and I can't make heads or tales of the control and interrupt VIs. It seems to me Bulk pipe transfers would be ideal for my application, but that doesn't seem it will work.
Is there any additional information or examples about control or interrupt pipes (i.e. USB control block setups)?
Thanks