Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

allocate serial NI-VISA

HI,

 

I run two scientific instruments. They send the collected data via RS232 to serial COM ports of a PC. Data aquisition and instrument control are made by a LabView program.

The LabView data aquisition automatically starts when the PC/instruments are powered on. It occurs that LabView stops emmidiately in case of a wrong COM port. When checking the NI_VISA preferences somehow the COM port got a new numbering. (on windows control panel the COM port has a fixed setting).

 

How can I tell LabView to apply to system settings and not to change the COM port numbering?

 

thank you,

coffee bean

0 Kudos
Message 1 of 2
(3,197 Views)

If you start the program Measurement and Automation Explorer (MAX) you can set an Alias for the COM-Ports.

 

You can name the com ports "Device 1" and "Device 2".  In the code, you can then open a reference to VISA port "Device 1" and it will always open the port assigned to that alias.

 

It requires that you have the source code for your LabVIEW program to change this.

 

VISA alias.PNG

 

Shane.

0 Kudos
Message 2 of 2
(3,179 Views)