LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to detect a peripheric connected by USB with labview

Hello all I vould like to know how to make for recognise  a peripheric connected to the PC via USB by the pannel of labview for then uses some operations on this peripheric ( like a frequency modification ect ... )
thanks a lot for your help
0 Kudos
Message 1 of 4
(3,769 Views)
Could you provide a bit more information? What is the USB device and who makes it? If you wish to control it, then the device should come with a driver (like a DLL) that you can interface to with the Call Library Node. You can also use VISA. Check the information at http://zone.ni.com/devzone/devzoneweb.nsf/Opendoc?openagent&1D0DD81FF1448CAE86256D90006EE2B4 for USBTMC and USB RAW communication. In order to use USB RAW, you will need to obtain a lot of detailed information from the vendor and this may be hard to get. That's why you would typically use the driver that comes with the device.
0 Kudos
Message 2 of 4
(3,760 Views)

The USB device is a new device created in laboratory ( not by me ^^ ) the person who created this divice gives me a program to control it but I have to control it with labview so I have to create a complete VI ( and i don't really so how I will do that ) and i think the first step for this work is to detect the divice connected to the PC with labview and I will know how to do that .

Thanks for your answer.

0 Kudos
Message 3 of 4
(3,740 Views)
If the device is detected by windows, then that's usually enough when using a provided driver. If the developer created a DLL to interface to the device, then you can use that. Since the developer is available, he or she should be able to provide to you the USB RAW information since this was used in the program written. In that case, you can follow the instructions in the link I posted for creating the .inf file (after removing the one the developer provided) and making the device visible to VISA. Done correctlly, the device will show up in MAX under Devices and Interfaces and any VISA Reference Name control you put in a LabVIEW program will list it.
0 Kudos
Message 4 of 4
(3,729 Views)