12-04-2012 05:11 AM
I was wondering if it's possible to detect the com port of the device with no built-in intelligence i.e, no specific command for an unique device identification. eg: devices with command for serial no.
I have used the VISA find resource to find the list of ports based on the baud rate eg: 19200 in my case. How can I further filter it to the correct device, especially when more than one are connected?
I'm using a crude way of doing it (see attached sample vi for reference). It has some pro's 7 cons but any suggestions to make it better are welcome.
Thanks & Regards,
Sri
12-04-2012 09:21 AM
The only way to know that a device is actually connected to a com port is to write something to the device that tells it to return data and then you have to do a read and verify the data is correct. What you have inside the while loop does not do much more than what the VISA Find Resources is alreay doing.