LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I detect when a particular USB device is plugged in?

Hi,

 

I am writing an application that communicates to an external device using a USB port. I am able to access and manipulate the device from within CVI. Right now, I have to manually select the COM port to which the device is connected. Is there a way for the application to automatically detect the COM port?

 

Thanks !

0 Kudos
Message 1 of 2
(3,113 Views)

Hello TusharD,

 

In your post you mentioned that you are using a USB port, and you also mention COM port. Typically COM ports are used to name Serial Communication Ports. Are you using a USB to Serial converter, perhaps?

 

Assuming it is serial communication, there is no built-in tool to see what is connected to each COM port. The VISA Find Resource VI will give you a list of available VISA resources which will include any serial ports.

 

Hope this helps, Cheers.

 

---

Peter Flores
Applications Engineer
0 Kudos
Message 2 of 2
(3,089 Views)