Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Auto search RS232 port for device

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 2
(3,057 Views)
Hi Simon,
i´m not sure if this is the right part of the forum for your question, and i´m not sure if this problem is still available, but i try to answer. You can use the "Find VISA Resource.vi" to get a list of all available COM ports. After that you can send your string to all of this resources until one of them respond with ready.
 
Hope this helps.
Mike
0 Kudos
Message 2 of 2
(2,953 Views)