LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Auto search RS232 port for device

I know I posted this elsewhere, but it was under the wrong board, so I'm posting it again. Hope you understand...
 
Well my question was concerning how to autoconnect/autosearch a RS232 com port..
...
Hi
 
I have attached a device to my RS232 (com) port, to which I send some string commands to control it.
 
When the user attach the device to his own computer, I want to make it easy for him to connect to it, SO therefore I want to know if it is possible to do a autosearch on the com-ports on the computer (if there is more than 1) to find the connected device?
 
I can send a string to my device and get a "ready"-response, if this would help.
 
Best regards
Simon
LabVIEW 8.6 / 2009 / 2010
Vision Development Module 8.6 / 2009 / 2010
VBAI 3.6 / 2010
0 Kudos
Message 1 of 4
(3,139 Views)
Check out "VISA find resource" function.
Regards,
André (CLA, CLED)
0 Kudos
Message 2 of 4
(3,132 Views)
"VISA find resource" just finds all available COM ports on the computer, not the specific one my device is connected to, but I found a workaround by searching for all com ports and then sending a command to my device in a for loop to check if it is present at the specified port.
 
Thanks anyway.
 
Best regards
Simon
 
LabVIEW 8.6 / 2009 / 2010
Vision Development Module 8.6 / 2009 / 2010
VBAI 3.6 / 2010
0 Kudos
Message 3 of 4
(3,116 Views)
That's not actually a workaround. It's the only reliable way to do it for serial port devices, unless the devices respond to some of the other serial port control lines, though I've never run across such devices.
0 Kudos
Message 4 of 4
(3,111 Views)