Quantcast
Channel: Instrument Control (GPIB, Serial, VISA, IVI) topics
Viewing all articles
Browse latest Browse all 5565

visa driver wrong endpoint descriptors

$
0
0

Hello,

 

I am trying to communicate with a custom-made HID device with LabVIEW using the NI-VISA Driver Wizard. The device can be used with the standard windows driver with C#, but now I will use it with LabVIEW.

 

The device has the following endpoint descriptors:

 

Endpoint Descriptor 81 1 In, Interrupt, 1 ms
OffsetFieldSizeValueDescription
0bLength107h 
1bDescriptorType105hEndpoint
2bEndpointAddress181h1 In
3bmAttributes103hInterrupt
 1..0: Transfer Type ......11 Interrupt
 7..2: Reserved 000000..  
4wMaxPacketSize20040h64 bytes
6bInterval101h1 ms
Endpoint Descriptor 01 1 Out, Interrupt, 1 ms
OffsetFieldSizeValueDescription
0bLength107h 
1bDescriptorType105hEndpoint
2bEndpointAddress101h1 Out
3bmAttributes103hInterrupt
 1..0: Transfer Type ......11 Interrupt
 7..2: Reserved 000000..  
4wMaxPacketSize20040h64 bytes
6bInterval101h1 ms

 

 

There are two endpoint descriptors for communication in Interrupt mode. But after creating a driver with the Driver Wizard this driver doesn't have these two endpoints. Instead it recognizes the descriptor with 0x1 as Bulk In Pipe and the Descriptor 0x81 as Interrupt In Pipe (a screenshot is attached, because the values cannot be copied).

 

A communication with the LabVIEW examples which uses the Interrupt In Pipe does work, but everything else failed because of the wrong out endpoint.

 

Is there any way to correct the descriptors?

 

 

Thanks,

Chris

 


Viewing all articles
Browse latest Browse all 5565

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>