04-06-2012 06:27 AM
Hello,
I'm trying to connect my STM microcontroller to my computer using USB protocol and VISA software. When I plug STM USB device into USB port Windows sees it as unknown device and can not find any driver for it. I assume that this is situation VISA was created for. So I want to use a driver wizard to create driver for this device, but VISA does not display it in a device list. I tried to create and install driver for my device as if it was not connected, and installed created driver manually but it did not work.
Is it possible that Windows detects a USB device and VISA can't see it?
04-06-2012 08:11 AM
An unknown USB device in Windows means that Windows cannot communicate to that device since a driver for Windows for that device was not installed.
Until that is done, VISA has no chance of being able to see it.
04-06-2012 08:38 AM
Thanks for reply.
I'm gonna ask a question that might be silly, bo I'm new to USB and VISA. Are you suggesting that before I create driver in VISA, I should install driver written by myself?
04-06-2012 10:14 AM - edited 04-06-2012 10:15 AM
It actually depends what sort of USB device it should be. If it is a COMM USB class device, Windows should be able to pick it up directly as serial port, if it is some proprietary USB class, then you either have to get a driver installed and access that driver somehow, or create an INF file with the VISA driver wizard for it and write the driver yourself in LabVIEW using the VISA USB Raw interface. Without a very good description of the low level USB protocol however this last option is a complete no go.
If the VISA driver wizard doesn't display the device in the list then Windows has already claimed it somehow.
04-18-2012 01:48 PM
Helllo.
I suggest to go trought document which is called USB Instrument Control Tutorial (http://zone.ni.com/devzone/cda/tut/p/id/4478).
Hope that this document will help you to understand what is required in order to communicate with your device.
Additionaly, take a look on this forum post:http://forums.ni.com/t5/LabVIEW/Nugget-1-of-n-GEtting-started-with-USB-communication-via-VISA/m-p/74... It can be usefull too.
Regards,
Sofija
04-18-2012 02:23 PM
Hi,
Are you trying to use the device, in which case there should be some driver from the mfg. Or are you developing a driver for this device?