摘要
工程测试领域常常需要将测试结果以一定的格式输出存档并进行处理,以得到含有图形曲线的报告。LabWindows/CVI是美国NI公司推出的面向测控领域的软件开发平台,而MicrosoftWord具有强大的文字处理能力、灵活多变的排版方法以及友好的用户界面等特点。本文详细介绍了如何使用动态链接库技术实现在Lab Windows/CVI中生成Word报表,封装驱动库功能函数、创建DLL文件以及通过调用DLL实现对模块的连接。结果表明:LabWindows/CVI通过调用DLL实现Word报表生成功能,有利于保证各模块的独立性,便于程序的二次开发应用。
To obtain the reports with charts, it usually need convert the test reports into one specific format to deal with or memorizing in field of engineering test. LabWindows/CVI is an excellent software developing platform facing the field of test control by National Instrument corp. USA, and Microsoft Word runs to powerful word processing ability, elastic composing modes and friendly user interfaces. So the thesis detailedly introduces how to accomplish the generation of Word report in LabWindows/CVI using DLL technique, package the driver functions, create the DLL files, and connect with the modules by calling DLL. The results evinces that it can assure the independence of each module, the users can explain and modify the going Word report templates, which facilitates redevelopment the programs for the further development.
出处
《电子测量技术》
2008年第4期113-115,共3页
Electronic Measurement Technology