文件名称:CommTest485
-
所属分类:
- 标签属性:
- 上传时间:2015-07-23
-
文件大小:19.02kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
测试com口程序Private Sub Form_Load()
Dim I As Integer
Dim Msg As String
Me.Enabled = False
Msg = 串行端口通讯测试 V & App.Major & . & App.Minor & App.Revision
cboCommSettings.Text = GetSetting(App.EXEName, frmCommTest , CommSettings , 2400,N,8,1 )
Me.Show
Me.Refresh
With MSComm1
For I = 1 To 16
Me.Caption = Msg & - 测试通讯端口:COM & I & ...
Me.Refresh
Delay 100
On Error Resume Next
.CommPort = I
.Settings = 2400,N,8,1
.PortOpen = True
.PortOpen = False
If Err = 0 Then cboCommPort.AddItem COM & Trim(I)
Next I
End With
cboCommPort.ListIndex = 0
optCommData(0).Value = True
Me.Caption = Msg & (Programming by WJY)
Me.Refresh
If cboCommPort.ListCount = 0 Then MsgBox 程序检测不到可用的串行端口!
Me.Enabled = True
End Sub
-test com port
Dim I As Integer
Dim Msg As String
Me.Enabled = False
Msg = 串行端口通讯测试 V & App.Major & . & App.Minor & App.Revision
cboCommSettings.Text = GetSetting(App.EXEName, frmCommTest , CommSettings , 2400,N,8,1 )
Me.Show
Me.Refresh
With MSComm1
For I = 1 To 16
Me.Caption = Msg & - 测试通讯端口:COM & I & ...
Me.Refresh
Delay 100
On Error Resume Next
.CommPort = I
.Settings = 2400,N,8,1
.PortOpen = True
.PortOpen = False
If Err = 0 Then cboCommPort.AddItem COM & Trim(I)
Next I
End With
cboCommPort.ListIndex = 0
optCommData(0).Value = True
Me.Caption = Msg & (Programming by WJY)
Me.Refresh
If cboCommPort.ListCount = 0 Then MsgBox 程序检测不到可用的串行端口!
Me.Enabled = True
End Sub
-test com port
(系统自动生成,下载前可以参看下载内容)
下载文件列表
CommTest485/
CommTest485/CommTest.frm
CommTest485/COMMTEST.FRX
CommTest485/Commtest.PDM
CommTest485/CommTest.SWT
CommTest485/Commtest.vbp
CommTest485/COMMTEST.VBW
CommTest485/CommTest485.exe
CommTest485/desktop.ini
CommTest485/MSSCCPRJ.SCC
CommTest485/CommTest.frm
CommTest485/COMMTEST.FRX
CommTest485/Commtest.PDM
CommTest485/CommTest.SWT
CommTest485/Commtest.vbp
CommTest485/COMMTEST.VBW
CommTest485/CommTest485.exe
CommTest485/desktop.ini
CommTest485/MSSCCPRJ.SCC
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.