摘要
针对国内现有的VISA函数库支持的物理接口种类较国外少的问题,本文提出了一种链表式的资源管理与组织方法,利用该方法设计VISA函数库的内部结构,可以方便地扩充VISA支持的接口种类,使现有的VISA函数库具有良好的向后兼容能力。通过在实验室前期项目中开发的针对GPIB接口的VISA函数库中扩展了对RS-232接口的驱动功能,验证了该方法的有效性和合理性。文中通过对VISA函数库中几个关键函数的介绍详述了链表式资源管理与组织的方法,并给出了根据此方法设计开发的VISA函数库在Visual C++6.0环境中的应用实例。
For the VISA I/O libraries developed in the domestic only support few kinds of interfaces, this paper proposes creating a list to manage all kinds of resources in the VISA. With this method, you can add one or more kinds of interfaces" driver into the VISA I/O library, which only support one or few kinds of interfaces before. By expanding the VISA I/O library's resource management layer and I/O resource layer, the newly developed VISA I/O library can support GPIB and RS-232 interfaces. This paper showed the critical minds of creating and maintaining the list by several functions in the VISA I/O library and showed the application routines of this VISA I/O library in Visual C++ 6.0.
出处
《电测与仪表》
北大核心
2009年第1期69-72,76,共5页
Electrical Measurement & Instrumentation