LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem of installing USB device

In order to control a USB device, I follow the manual provided by the NI , make and install VISA-USB driver for it, and then the usb port is shown in the max. When I use the VISA test panel and visa command, there are always errors and no response from the device. Following the same step, I succeed to control anther more simple USB device. So I think the problem  happen when the VISA try to connect the device. A clue and a differenc between the two USB device is window  device manager show two unknow usb devices when I plug the first USB device,  I have to install the driver twice,and then the MAX show two USB port too. Is the problem how to communicate the device using tow USB port?
An other information is that the window device manager will show only one device after installing the usb driver provided by the vendor. 
 
I will very appreciat the advice from you!  

帖子被flypeng在10-25-2007 10:20 PM时编辑过了

0 Kudos
Message 1 of 12
(4,009 Views)
I think it would be helpfull if you also give the name of the usb device.

André
Regards,
André (CLA, CLED)
0 Kudos
Message 2 of 12
(3,986 Views)
The USB device is the Sigma stage controller (shot-204ms), thank you!
0 Kudos
Message 3 of 12
(3,980 Views)
Do you know the communication protocol for the device?

Do you have other software with which you can check the proper working of the device?

Are you certain that all parameters in following the steps from the document have been filled correctly?

André
Regards,
André (CLA, CLED)
0 Kudos
Message 4 of 12
(3,978 Views)
Do you know the communication protocol for the device?
Yes, the manual of the controller gives the command format.Actually,  I succeed to control it through RS232 port.
 
Do you have other software with which you can check the proper working of the device?
I just have the software using RS232, and it works well.
Are you certain that all parameters in following the steps from the document have been filled correctly?
I have read the document carefully, and I succeed to control another device by USB RAW. ACtually, MAX can find this usb port, as I mentioned,there are two. MAX show its status is OK when I click the troubleshooting button,but the  visa test always show errors.
 
Thank you for your attention. 

0 Kudos
Message 5 of 12
(3,972 Views)
I try to install the driver provided by vendor, and then the device still appear below NI-VISA USB Device in the window device manager, according the name shown there, I am sure the driver is from the vendor, not the one produced by the DDW.  However, the device is still available (maybe just shown) in MAX. The result from VISA test panel is the same as before. I didn't give up, and tried the visa in program. and the result is very interesting. there is no error output when I use the visa open, visa close, and visa write with an empty string; otherwise an error will happen even the visa write with a string like “?", "\r"or”\n". Do you know why?
0 Kudos
Message 6 of 12
(3,969 Views)
I'm sorry that I can't be of help, but with the information you just provided someone with a little bit more USB experience might be able to help you now.

Kind regards,
André
Regards,
André (CLA, CLED)
0 Kudos
Message 7 of 12
(3,960 Views)
Thank you for your reply and adivce.
0 Kudos
Message 8 of 12
(3,955 Views)
Generally, if you get a driver from a vendor, there is no reason to create a VISA driver with the wizard. The device can only use one of them and you should probably remove both the inf and pnf files you created and just leave the one from the vendor installed. Reboot the pc and see how the device comes up. If you have a new com port in MAX, then you are all done. Just use VISA to read/write like you would any other serial instrument.
0 Kudos
Message 9 of 12
(3,941 Views)
I should emphasise that I want to connect this device through USB. After I install the USB driver from the vendor, the computer can find this device, but it won't be shown in the MAX, so I can't communicate it under the labview, this is my problem. In this case, I create a USB driver with the wizard,and then the labview can find the USB device resouce, but the communication is not successful.  
0 Kudos
Message 10 of 12
(3,924 Views)