LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Application to detect correct port

Hi,

I am building an application which is to work for different computers. In the application I control a I/O device and a power supply through USB. I think that there might be problems with pre seting the name of the ports in the application since the port names might be different in other computers.

Is it possible to make a VI which auto detects which ports it needs to communicate with? Or is there some other smart way to make sure that it is not a problem?

Best Regards,
MAthias
0 Kudos
Message 1 of 3
(2,756 Views)
Hi Mathias_P,
if you speak about COM and LPT try this example.
Mike
0 Kudos
Message 2 of 3
(2,755 Views)
That will only display the aliases that have been defined in MAX, and there may not be any of these aliases, especially if it's a straight USB connection, as the post implies.

What API are you using to talk to the USB devices? Is it VISA, or is it a custom DLL?
0 Kudos
Message 3 of 3
(2,726 Views)