LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

NI Visa Com Port assignment

Hello Labview Users,

 

I have three separate devices in my system that all use Visa VI's. Each of these three devices are assigned COM ports when the USB connection is plugged in. Sometimes when the device is power cycled windows assigns a different com port number to one of the devices. What i would like to do in my code is assign a specific and unique alias to each device and reference that alias when i asynchronously open and close visa sessions for the three devices connected. If the aliases remain the same when i power cycle and i reference that alias in my code when i try to configure the Com ports then during a power cycle it wont matter if the com port numbers have been modified. Is there a way i can accomplish this using labview ?

 

thanks

0 Kudos
Message 1 of 2
(2,573 Views)

Well you can assign the Aliases in MAX OR use the System Configuration API to assign Aliases based on whatever you can identify that means "This Device", in your case probably Serial Number, but you really didn't give enogh information to say exactly.

 

See here for an example

 


"Should be" isn't "Is" -Jay
0 Kudos
Message 2 of 2
(2,555 Views)