04-10-2012 04:58 AM
I have Labview 8.5.It has some blocks to directly control the serial port , but I see NOTHING to let me control devices connected to USB ports. While using VISA functions the USB port is not available in the list at VISA Resource Name Control. I have a device with USB port. I would like to transfer data to/from the device through USB port using LabVIEW.Does someone have some suggestions for how I can gain access to the USB port in a way that will allow LabVIEW to directly communicate with the device connected to the USB port?
Solved! Go to Solution.
04-10-2012 05:13 AM
Hi
Did you search about USB communication through labview?
You have to first configure your VISA to recognise the USB
http://zone.ni.com/devzone/cda/tut/p/id/4478
Here is a starting point..
04-10-2012 05:16 AM
Also follow this thread and see the links given in the thread
04-10-2012 05:20 AM
Many commercial test and measurement devices use an instrument driver. These are found at http://www.ni.com/downloads/idnet/. Search for your device to see if there is a download available.
Some devices that connect via USB are visable to the OS as virtual serial ports. In this case you would use VISA to open a serial session and communicate.
There are several threads on the forums dealing with performing RAW communications over USB. The series of 'nuggets' by Intaris are excellent, but be aware that you need some experience with LabVIEW in general before diving in.
http://forums.ni.com/t5/LabVIEW/Nugget-2-of-n-USB-Control-transfers-using-VISA/td-p/757011
Without some basic information about the device (mfgr & model), it will be difficult to help.
04-18-2012 11:36 PM
As per following the procedure mentioned in the tutorial, the device I connected through USB is not visible in the list of devices in MAX.
04-19-2012 09:46 AM
Before you went and created the VISA driver, did you check in windows device manager to see if a driver wasa already installed?
04-19-2012 11:15 PM
Yes i have checked it. It shows the device in Human Interface Devices list. After installing the VISA driver by following steps as per tutorial, It is listed in Universal Serial Bus controllers list.
05-29-2019 09:49 AM - edited 05-29-2019 10:07 AM
Nothing like responding to a 7 year old post but just in case anyone runs across this with the same problem -- You need to set up a virtual com port for your USB device. Go to the device manager and locate your device under "universal serial bus controllers", then right click and select "properties", select the "advanced" tab, check the "load VCP" box (VCP stands for virtual com port). Then check "Ports (COM & LPT) under device manager. There should be a new (virtual) com port associated with your device. Communicate with it using normal VISA serial commands.
05-30-2019 07:00 AM
Except that the USB VCP (Virtual Com Port) is not an option for most devices that are recognized as USB HID (Human Inderface Device). USB is for the most part an electrical standard (with some basic communication infrastructure standardized too). But a USB Video Camera has VERY different requirements in data transfer than an USB Keyboard or Mouse and again different from a USB serial communication link.
That is why USB defines many different device profiles and each of them uses one or more endpoints (data ports) and for each endpoint one of the protocol methods (bulk, interrupt, and isochronous). A USB VCP driver will never attempt to connect to a USB HID device. Theoretically a device can support multiple USB device profiles in parallel as USB allows discovery of devices and their device profile but that is not done very often.