05-10-2010 04:31 AM
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
05-10-2010 11:10 AM
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.
Shane.