用comport控件,如何自定义波特率. brcustom(10分)

  • 主题发起人 主题发起人 kimlon
  • 开始时间 开始时间
K

kimlon

Unregistered / Unconfirmed
GUEST, unregistred user!
因为我要的波特率不在所提供的范围,而他有一个brcustom可以自定义波特率为多少,但我不会,请有经验的朋友帮帮我。
 
帮帮我。
 
如何设置波特率为28800???
 
Sets charachter transmission speed.
type TBaudRate = (brCustom, br110, br300, br600, br1200, br2400, br4800, br9600,br14400, br19200, br38400, br56000, br57600, br115200);
property BaudRate: TBaudRate;
Description
BaudRate property represents the speed at which charchters are sent or received via RS232 conection. Both sides of connection should have the same BaudRate. If BaudRate has a value of brCustom, CustomBaudRate property is used to set baud rate.


Sets custom charachter transmission speed.
property CustomBaudRate: Integer;
Description
Use CustomBaudRate property to set custom baud rate for charachter transmission. Ff BaudRate property is not set to brCustom, CustomBaudRate property has no effect.

在他的帮助文件抄来的,那位老大帮我看一下。
 
comport.custombaudrate := 28800;
 
那天已自已搞定,不过还是谢谢pengfeiyan
 
后退
顶部