In practical applications,due to the complexity of test tasks and the harshness of test scenarios,the test field has an increasing demand for synthetic instrument measurement systems.In response to the needs of multi-task joint testing,it is urgent to develop multifunctional modular instruments.At present,foreign research on multifunctional modular instruments is relatively mature,and the instruments are rich in functions,but they are expensive.Domestic research on single-function modular instruments has gradually deepened,but multi-functional modular instruments have not been introduced.In order to break the import monopoly and realize localization,it is necessary to carry out research on multifunctional modular instruments in China.The research goal of this subject is to design software based on a certain type of VXI bus multifunctional analog signal test project.The module integrates the measurement functions of a digitizer,arbitrary wave generator and frequency meter,and can be applied to multi-function joint testing,portable testing and fast-moving testing.Using virtual instrument technology in the subject,using this type of analog signal test module as the hardware platform,based on the Lab Windows/CVI development platform and IVI specifications,the instrument driver function and host computer software are designed and implemented.The upper computer software completes the bottom-level control of the instrument by calling the instrument driver function.The upper computer can realize instrument selection,instrument switching,and integrate the instrument functions of digitizer,frequency meter,and arbitrary waveform.This article will discuss the design and implementation of the software,mainly including the following aspects:1.Aiming at the task requirements of the software,integrating the overall software framework,proposes to divide the software development plan into two parts,the driving function and the upper computer software,and design and implement the two parts respectively.2.In the design of the host computer software,for the function of the module,the overall framework and control flow of the host computer software are designed.According to the instrument switching requirements of the multi-functional modular instrument,the human-computer interaction design is completed,providing simple operation and friendly interaction.Multi-threaded technology programming is used to realize continuous acquisition by digitizer and parallel measurement by multiple instruments.3.First classify the driver functions according to the instrument hardware composition and functional requirements,then design the specific driver functions based on the IVI specification,and finally release it in the form of a dynamic link library.The upper computer controls the instrument by calling the drive function in the dynamic link library.Through the research of the above content,finally realized the software based on this module,this software has been officially used in the project with good application effects. |