LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Missing something on new USB device

Hi everyone...

I just made an HID device using a Microchip PIC microcontroler. When I plug it on USB windows recognize it and install a generic HID driver. I can receive and send data to the device through a VB.NET program I wrote. And since it's working perfectly, up to here I can assume the device is ok.

But I can't see it under Measurement and Automation. Then I create a VISA driver and replaced the generic HID driver from windows, and my program can't read the device anymore, since it's not a HID anymore. So, it's ok.

Now it appears at Measurement and Automation and I can open a VISA Test Panel for it. So here is where I'm missing something... How can I read data from it from Labview? My device send packages of 4 bytes. What should I do to read it?

You don't need to bother giving a step by step instructions or something, just show me the path I should get now and I'll be very greatful.

Best regards,
Rodrigo Basniak
0 Kudos
Message 1 of 2
(2,506 Views)

Rodrigo,

There is a tool available known as the VISA Driver Wizard that allows your USB device to use VISA commands to communicate with LabVIEW. The wizard can be located at Start >> All Programs >> National Instruments >> VISA >> Driver Wizard. Here you will able to select the type of Hardware Bus (USB). If your device is unable to accept the VISA commands that the wizard helps build then another alternative is to use USB RAW to communicate with the device. USB RAW is a very low level communication protocol. See the attached links to gain more knowledgeif this is a route you could consider.

USB RAW: http://digital.ni.com/public.nsf/allkb/E3A2C4FE42D7ED0D86256DB7005C65C9?OpenDocument
USB Instrument Control tutorial : http://zone.ni.com/devzone/cda/tut/p/id/4478
USB RAW Control Example Code in LabVIEW : http://zone.ni.com/devzone/cda/epd/p/id/3637

Dario Camargo

NI Brazil

#1191709

0 Kudos
Message 2 of 2
(2,456 Views)