📄 通信测试_二进制.frm
字号:
VERSION 5.00
Object = "{648A5603-2C6E-101B-82B6-000000000014}#1.1#0"; "MSCOMM32.OCX"
Begin VB.Form Form1
Caption = "RS232的二进制通信(070120001 李忠良)"
ClientHeight = 8910
ClientLeft = 1065
ClientTop = 945
ClientWidth = 12210
FillColor = &H000000FF&
LinkTopic = "Form1"
ScaleHeight = 12990
ScaleWidth = 21480
Begin VB.VScrollBar VScroll1
Height = 1335
LargeChange = 10
Left = 840
Max = 255
TabIndex = 28
Top = 1560
Width = 375
End
Begin VB.CommandButton Command3
Caption = "发送单字节"
BeginProperty Font
Name = "新宋体"
Size = 9.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 735
Left = 1320
TabIndex = 26
Top = 1560
Width = 1695
End
Begin VB.CommandButton Command2
Caption = "清空发送区"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 735
Left = 10200
MaskColor = &H000000FF&
TabIndex = 25
Top = 4440
Width = 1815
End
Begin VB.ListBox List2
Columns = 5
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000000FF&
Height = 2220
Left = 6240
TabIndex = 20
Top = 5160
Width = 6015
End
Begin VB.Frame Frame1
Caption = "串口通信参数设置"
Height = 2655
Left = 360
TabIndex = 10
Top = 3480
Width = 5055
Begin VB.CommandButton Command4
Caption = "修改"
Height = 495
Left = 2760
TabIndex = 27
Top = 1920
Width = 1575
End
Begin VB.TextBox Verify_Text
Height = 390
Left = 1080
TabIndex = 19
Text = "N,无校验"
Top = 1320
Width = 1095
End
Begin VB.TextBox Port_Text
Height = 375
Left = 1080
TabIndex = 18
Text = "1"
Top = 360
Width = 1095
End
Begin VB.TextBox Baud_Text
Height = 375
Left = 1080
TabIndex = 17
Text = "1200"
Top = 840
Width = 1095
End
Begin VB.ComboBox Combo1
Enabled = 0 'False
Height = 300
Left = 2880
TabIndex = 13
Text = "1"
Top = 360
Width = 1455
End
Begin VB.ComboBox Combo2
Enabled = 0 'False
Height = 300
Left = 2880
TabIndex = 12
Text = "1200"
Top = 840
Width = 1455
End
Begin VB.ComboBox Combo3
Enabled = 0 'False
Height = 300
Left = 2880
TabIndex = 11
Text = "N,无校验"
Top = 1320
Width = 1455
End
Begin VB.Line Line1
X1 = 2520
X2 = 2520
Y1 = 240
Y2 = 2400
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "串口"
ForeColor = &H00C00000&
Height = 180
Index = 3
Left = 240
TabIndex = 16
Top = 360
Width = 360
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "波特率"
ForeColor = &H00C00000&
Height = 180
Index = 1
Left = 240
TabIndex = 15
Top = 840
Width = 540
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "校验位"
ForeColor = &H00C00000&
Height = 180
Index = 2
Left = 240
TabIndex = 14
Top = 1440
Width = 540
End
End
Begin VB.ListBox List1
Columns = 5
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00C000C0&
Height = 2220
Left = 6240
TabIndex = 8
Top = 1920
Width = 6015
End
Begin VB.TextBox txtSend
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF0000&
Height = 495
Left = 3480
MaxLength = 3
TabIndex = 3
Text = "0"
Top = 1920
Width = 615
End
Begin VB.CommandButton Command1
Caption = "清空接收区"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 735
Left = 10200
TabIndex = 2
Top = 1200
Width = 1815
End
Begin MSCommLib.MSComm Comm1
Left = 0
Top = 0
_ExtentX = 794
_ExtentY = 794
_Version = 393216
DTREnable = -1 'True
InputLen = 1
ParityReplace = 0
RThreshold = 1
RTSEnable = -1 'True
BaudRate = 38400
InputMode = 1
End
Begin VB.CommandButton CmdExit
Cancel = -1 'True
Caption = "结束"
BeginProperty Font
Name = "宋体"
Size = 21.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 735
Left = 1080
Style = 1 'Graphical
TabIndex = 1
Top = 6600
Width = 3135
End
Begin VB.CommandButton CmdSend
Caption = "发送256个数据"
BeginProperty Font
Name = "新宋体"
Size = 9.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 735
Left = 1320
Style = 1 'Graphical
TabIndex = 0
Top = 2400
Width = 1695
End
Begin VB.Label Label9
AutoSize = -1 'True
Caption = "发送区"
ForeColor = &H000000FF&
Height = 180
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -