Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

OpenComConfig is not opening ports at the correct baud rate

I am using OpenComConfig() to open two RS485 serial ports with a baud rate of 115200. If I start up/reboot the computer and run my application, the ports are not opened at the correct rate. However, if I run another (win32 console) application that opens the ports at 115200 and then closes them and then run my CVI application everything works perfectly. This also occurs when I do all of the above at 9600.

OpenComConfig() returns an error code of 0.

LabWindows/CVI 6.0.0 (105)
Windows NT and Windows 98
0 Kudos
Message 1 of 2
(3,149 Views)
OpenComConfig is part of CVI's RS-232 library.
VISA is a better option for RS-485. There is a VISA example program that gets installed at C:\VXIpnp\WinNT\NIvisa\Examples\C\Serial
0 Kudos
Message 2 of 2
(3,148 Views)