LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How modify Baud Rate in run-time mode without close the port?

In my application set COM port parameter using OpenComConfig function. When start the application (Run-Time mode) it's possible to modify Baud Rate parameter without close the port?
0 Kudos
Message 1 of 3
(2,987 Views)
The NI RS-232 comms library doesn't allow you to change the baud rate, number of data bits, stop bits, parity etc. unless you close the port and re-open it. If you need to do that, you will have to use the Windows API for communications instead.

This is a bit of a nuisance. I recently had to implement a protocol where the first byte of a message was indicated by being sent with a different parity, and the delay required to close and reopen the port between bytes using the NI libraries was unacceptable.

--
Martin.
--
Martin
Certified CVI Developer
0 Kudos
Message 2 of 3
(2,987 Views)
Hi Martin thanks for your answer.
--
Skull
0 Kudos
Message 3 of 3
(2,987 Views)