vb 接收单片机16 进制数据 并完全显示在text1里 的代码例如text1显示55 01 12 00 00 00 01 69

[复制链接]
查看11 | 回复1 | 2012-3-13 11:42:16 | 显示全部楼层 |阅读模式
用mscomm控件。设置成二进制格式。dim b() as byteif not mscomm1.portopen then mscomm1.portopen =1 a = mscomm1.inputb = afor i = 0 to ubound(b)
s = s & " " & hex(b(i))nexttext1.text = s上面的代码没有验证。不知道对不对了。...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行