登录
首页 » Visual Basic » CommTest485

CommTest485

于 2015-07-23 发布 文件大小:19KB
0 246
下载积分: 1 下载次数: 1

代码说明:

  测试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)

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • SMSapplication2
    send recive sms on rs232
    2018-02-11 17:25:02下载
    积分:1
  • SynWriteFile
    调用API函数在VC++6.0的编译环境下,对串口进行写入操作,简单易懂,易实现,通过调试后取得较好的效果(using api functions in the vc++6.0 progress the serial communiction )
    2010-09-25 15:44:29下载
    积分:1
  • jchemesbrakcet
    膛的就是你自己,这是关于系统主控台的一段可有代码,希望各位有名人士多给点指教,后生想学小子,无奈才这样做()
    2018-05-09 14:49:08下载
    积分:1
  • UNICODE_GBK
    使用windows api将字符在Unicode编码和GBK编码之间相互转换的示例程序(convert between unicode and gbk)
    2012-04-26 21:39:52下载
    积分:1
  • WSNS
    in this there is a overview of wsn
    2013-03-18 15:39:21下载
    积分:1
  • Timer
    指针时钟 (A Timer )
    2010-12-22 14:49:55下载
    积分:1
  • Cpp1
    1: 由BSQ转为BIL.BIP 2 由BIL转换为BSQ,BIP 3: 由BIP转换为BSQ,BIL.(1: the BSQ to BIL.BIP 2 by the BIL into BSQ, BIP 3: converted by the BIP BSQ, BIL.)
    2011-06-22 15:37:51下载
    积分:1
  • VB-comnacation
    help you to learn use VB cominacate to outher maine
    2012-06-19 00:04:52下载
    积分:1
  • EJERCICIO2
    SSD5 Exercise 2 complete and functional
    2009-10-17 23:35:36下载
    积分:1
  • market
    市场薪酬调查分析系统,录入调查岗位、岗位点数、薪酬,自动生成调查表和调查曲线(Market salary survey and analysis system, entry survey post, post points, pay, automatic questionnaires and survey curves)
    2017-05-23 21:44:01下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载