LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

rs232

hi :
i have a question , could you tell me on CVI7.1 platform?
i want to change  RS232 serial port baudrate from 9600 to 11520 when needed, i fail to find the system function to implement it , who can tell me which function can implement it?
I just know SwitchBaudrate can do it on vc platform
 
Thank you in advance!
0 Kudos
Message 1 of 3
(3,292 Views)

Using standard RS-232 library there is no possibility to change baudrate unless you close and reopen the port with an appropriate OpenComConfig.

Using VISA you can change the baudrate without need to close and reopen the port, but I'm not using it so I don't know neither if this operation is successful nor how many time will it need to complete.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 3
(3,286 Views)
Hi Allen,

There is a command, where you can set the necessary parameters:

OpenComConfig (comport, devicename, baudrate, parity,
databits, stopbits, inputq, outputq);


Specifies the baud rate for the selected port.

Default Value: 9600 baud

Valid Values: 110, 150, 300, 600, 1200, 2400, 4800, 9600,
14400, 19200, 28800, 38400, 56000, 57600,
115200, 128000, 256000.

Note:

The 128000 and 256000 baud rates may not be supported by your driver.

Non-Standard Baud Rates
-----------------------
You may use non-standard baud rates. All baud rate values are
interpreted literally by the comm driver.

Best regards,
SzalaiS

DavidNI wrote:
> hi :
> i have a question , could you tell me on CVI7.1 platform?
> i want to change  RS232 serial port baudrate from 9600 to 11520 when needed, i fail to find the system function to implement it , who can tell me which function can implement it?
> I just know SwitchBaudrate can do it on vc platform
>  
> Thank you in advance!
0 Kudos
Message 3 of 3
(3,274 Views)