文档介绍:2
2 2 2
2
2
2
2
第 21 卷第 6 期实验室研究与探索 V o l. 21 N o. 6
2002 年 12 月 LABORA TOR Y R ESEA RCH AND EXPLORA T ION D ec. 2002
VB 在单片机测控实验系统中的应用
孙兵
(南通纺织职业技术学院机电系, 江苏南通 226007)
摘要: 测控系统是单片机的一个重要应用领域。文中将V isualBasic 6. 0 引入单片机测控实验系统, 结
合具体实例, 同时综合计算机技术、通信技术和控制技术, 阐述了VB 在系统中的意义和作用。
关键词: V isual Basic; 单片机; 测控实验
中图分类号: T P368. 1 文献标识码: B 文章编号: 1006 7167 (2002) 06 0078 04
2 2App lica tion of VB in a M e a sure a nd C ontro l Te s t
S ys tem of S ing le chip M ic pute r
SUN B ing
(D ep t. of M ach inery and E lectron ics,N an tong T ex tile V ocational T echno logy
Co llege, N an tong 226007, Ch ina)
Abstract: M easu re and con tro l system is an impo rtan t app lication of single ch ip m pu ter. V isual Basic
6. 0 w as u sed in the single ch ip m pu ter m easu re and con tro l test system. Com b in ing w ith the concrete
examp le pu ter, comm un ication, con tro l techn ique as w ell, th is paper described the m ean ings and func
tion s of VB in the system.
Key words: V isual Basic; single ch ip m pu ter; m easu re and con tro l test
单片机测控技术是我院机电类专业学生的一门重特点。将VB 引入单片机测控实验中, 可以在一定程度
要专业课程。在该课程实验项目(如转速测控、温度测上弥补上述不足, 使学生更加深入地认识单片机与 PC
控、光照度测控等) 的开发过程中, 我们发现传统的测机在测控系统中的相互作用, 便于学生合理配置系统、
控实验存在诸多不足之处, 主要表现为: 灵活设计界面以及不断改进系统功能。本文以直流电
(1) 人机界面不直观机转速测控实验为例, 探讨 VB 在单片机测控实验系
传统的人机界面一般都是利用单片机仿真器上的统中的应用, 并提出了一种相关的软、硬件设计方法。
键盘与L ED 显示器, 不仅功能少, 而且可显示的内