Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

scanning for serial port using Labview

My system is Window 7 32-bit

Labview 2011

I have a usb to serial device. After the device is plugged into the computer, window will show a usb-serial device. Without going to the device manager, is it possible to use Labview to scan to see what COM number the device is enumerated as?

I can use VISA  find resources to check the COM port. But if i have multiple COMs on the PC, how do i know which one is the one from my device?

thanks.

 

0 Kudos
Message 1 of 6
(5,100 Views)

You have a few options.

 

1. Have a list of found serial ports before the adapter was plugged in and filter those out after you do the new search.  What is left should be the new one.

2. Go through each serial port and try to communicate with your device.  If you get a proper response, use that port.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 6
(5,091 Views)
arduino toolkit have some vi with name if search that do this did you ever see that vi
0 Kudos
Message 3 of 6
(5,079 Views)

hi,

 

Are you using a FTDI USB-serial device ? If yes, you can find the port by the serial number.

 

Kees

Message 4 of 6
(5,074 Views)

Thanks guys.

It's a usb bluetooth dongle.

I think i'm going with the before and after to find the COM port.

Thanks again.

0 Kudos
Message 5 of 6
(5,066 Views)

check this vi i think it could work 

0 Kudos
Message 6 of 6
(5,062 Views)