LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

name of the com port used?

Hi,
We have developped an interface board connected to the PC with an USB cable.
In fact to use it with Labview , tthe driver of the interface will make like a serial RS232. But during the install or the plug of the cable the PC will affect it to a virtual com port (and will give a name to the instrument).But For the users it will be difficult to know which com port will be used.
Is it possible to get back the name on labview to init the com with the desired com port and the name of the host?
Tipically we have a soft which propose a list of com port to the user before starting and we want to update this list during initialisation with the name of the port used by the usb cable....

Thanks

Philippe
0 Kudos
Message 1 of 3
(2,644 Views)
Try: "Visa Find Resource" for the names of the com ports.

second: try this link for the name of the host.

Hope it Helps...
0 Kudos
Message 2 of 3
(2,644 Views)
Hi,

Have a look at the following registry key:

My Computer\HKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP

Especially SERIALCOMM, although the usb com port could end up somewhere
else.

Good luck, and please let us know your findings,

Wiebe.

"Popo" wrote in message
news:506500000008000000F0E00000-1079395200000@exchange.ni.com...
> Hi,
> We have developped an interface board connected to the PC with an USB
> cable.
> In fact to use it with Labview , tthe driver of the interface will
> make like a serial RS232. But during the install or the plug of the
> cable the PC will affect it to a virtual com port (and will give a
> name to the instrument).But For the users it will be difficult to know
> which com port will be used.
> Is it possible to get back the n
ame on labview to init the com with
> the desired com port and the name of the host?
> Tipically we have a soft which propose a list of com port to the user
> before starting and we want to update this list during initialisation
> with the name of the port used by the usb cable....
>
> Thanks
>
> Philippe
0 Kudos
Message 3 of 3
(2,644 Views)