摘要
按照模块化设计原则,将面向对象的思想应用于虚拟仪器的开发。通过将测试对象或者其操作抽象为相应类的实例,进而完成对表征这些客观对象的属性和操作的封装设计。应用这种思想,完成基于数据采集卡的硬件平台在Windows环境下利用Visual C++6.0进行钻井液参数虚拟测试系统的开发,其中包括采集模块、被测对象、测试数据以及各种辅助模块的封装设计。工程实践证明,面向对象的思想能简化设计过程,开放仪器构架,便于系统的分析和移植。
According to the principle of modular design, the object- oriented(OO) concept is applied to the development of visual instruments, where instances of classes are abstracted from methods or tested objects whose attributes and operations are encapsulated in these classes. Based on the concept, the virtual measurement system for drilling fluid parameters is developed, which includes the encapsulations of the sampling module, the tested objects and data, and auxiliary modules, by means of a computer with Data Acquisition Board in the Visual C + + 6.0 development environment. The practices prove that the concept simplifies the development, opens the instrument architecture and facilitates the maintenance and transplantation.
出处
《计算技术与自动化》
2008年第3期141-144,共4页
Computing Technology and Automation
关键词
虚拟仪器
面对对象
模块化设计
virtual instrument
Object - Oriented (OO)
modular design