08-03-2008 08:08 PM
So the question is this: The converter will always have the same vendor ID. Is there a way for LabVIEW to look at the USB devices and pick the one with the correct ID ? Or maybe this is overkill... the Windows driver makes the converter look like a serial port (COM4 on my PC). The original app that worked with com1 used the VISA Configure Serial function with ASRL1:INSTR.
I can modify the LV app to force the user to pick from the available COM ports, but would prefer to make this happen automatically.
Any suggestions ?
08-03-2008 08:47 PM
Typically, USB & Ethernet to Serial devices appear as normal serial port within windows and within MAX. It will assign a serial port id (COM3, COM4, etc). When this happens, you can use a program like Hyperterminal and access the new ports as you would with the regular COM port.
Same is true for LabVIEW. It will use the port as it would use any regular port. So what you could do is to detect valid ports. There should be examples of how this is done within the forum. If you can communicate with the target devices and do a query, then you may be able to assign which port(s) the target(s) is connected to. And to keep it that simple.
R
08-03-2008 11:49 PM
08-04-2008 07:58 AM
08-04-2008 08:01 AM
Wow - your VI worked for me "right out of the box".
Thanks for the info.
Rick