采用面向对象的编程思路设计电磁兼容测试软件,实现了测试过程的自动化及测试功能的模块化,极大地提高了测试效率.按照面向对象的编程思路,对电磁兼容测试软件进行了需求分析,根据分析结果将软件划分成测试模板对象、仪表对象、器件对象、绘图对象和报告对象等5个对象.测试模板对象是电磁兼容测试软件的核心模块,其功能是封装测试项目基本信息、设定测试频段和测试流程、配置测试仪表和仪表参数;仪表对象封装远程操控仪表的VISA指令;器件对象封装测试器件的传输系数修正操作;绘图对象和报告对象则分别利用测试数据生成测试数据轨迹和测试报告.%This paper designs the software of EMC test based on object-oriented programming idea.Software of EMC test realizes automation of test procedure and improves test efficiency. According to objectoriented programming idea,this paper analyzes the main functions of software of EMC test. And this software is divided into five objects,which are test template object,instrument object, apparatus object, graph object,and report object. Test template object is the core of this software, and information of test item, frequency band, test procedure and parameters of instruments are included. Instrument object encapsulates VISA instructions of remote instrument. Apparatus object encapsulates transfer coefficient which corrects test data.Graph object and report object build data diagram and report according to test data.
展开▼