From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
01-24-2007 02:30 PM
01-24-2007 02:43 PM - edited 01-24-2007 02:43 PM
Message Edited by daveTW on 01-24-2007 09:44 PM
01-24-2007 03:09 PM
01-24-2007 03:21 PM
01-24-2007 03:57 PM
How does it matter whether it is a USB converter or not? If you have a serial connection to some instrument, with the array of com ports you could send a command out each one. When you get the correct response, you know you've found the active port and use that.
If you really want to determine which com ports are usb-232, that information is stored in the windows registry. It's pretty deep (i.e. HKEY_LOCAL_MACHINE\System\ControlSet001\Enum\USB is where is listed 'serial device' but on my machine, another tree lists the 'Comx' name so traversing the registry would not be exactly trivial.