Font Size: a A A

Design And Implementation Of Program Control And Underlying Software For Scope Coder

Posted on:2022-06-25Degree:MasterType:Thesis
Country:ChinaCandidate:S ZhangFull Text:PDF
GTID:2518306524479204Subject:Instrument Science and Technology
Abstract/Summary:PDF Full Text Request
With the rapid development of power electronics,mechatronics and other fields,electronic testing technology has been more and more widely used in various industrial production and scientific research.But the traditional measuring instrument has been difficult to cope with the increasing demand of modern society.Therefore,it is very important to develop an oscillographic recorder which can realize multi-channel,multiphysical quantity and has the function of program control.Developed in this paper,oscillographic data recorder is a acquisition boards + signal processing board + Industrial Personal Computer based on the collection interface card of industrial architecture,multi-functional electronic measuring instrument,the aim of this paper is designed for the realization of the underlying software and program control function,the underlying software including instrument driver available for application layer calls and data transmission system between the industrial computer and FPGA.The main research contents are as follows:1.Design and implement the instrument driver in accordance with IVI specification.By designing special drivers for different acquisition boards and reregistering class drivers,the interchangeability of acquisition boards drivers is realized,and the interface of IVI driver function can be called for the application layer code of the internal Industrial Personal Computer and the remote upper computer outside the instrument.2.The PCIe bus data transmission function between FPGA and Industrial Personal Computer is designed and implemented,and the scheme of improving its efficiency is studied.Design PIO mode and continuous memory DMA to realize single instruction and waveform data transmission under common scenes.Optimize the data transmission function.In order to solve the problem of low transmission efficiency of multi-channel instructions using PIO mode in oscillographic recorder,an efficient command processing system is designed,which can transmit,parse and distribute the instructions,and greatly improve the transmission rate of the instructions.In view of the large amount of data in oscillographic recorder,this paper designs a decentralized/aggregated memory DMA data transmission function based on command cache mechanism,which solves the problem that continuous memory DMA can not open up large amount of memory,realizes efficient DMA descriptor processing,and improves the efficiency of data transmission.3.Design and realize the program control function of oscillographic recorder.In order to meet the needs of program control by various remote control methods,a program control main program is designed,which unifies the communication interface for multibus drivers,and realizes the switching and locking control of remote local state.For this topic research the oscillographic recorder with measuring voltage,current,frequency,strain,temperature and acceleration,and other physical quantities,and record the functions and characteristics of the measured data,according to the SPCI command compatible power analysis function of demand,combined with SCPI specification specific command set is constructed,and design the SCPI command processor,implementation on the interpretation of commands and responses.Through testing,the instrument driver software designed and implemented in this paper can realize user interface control of 13 hardware acquisition boards,PCIe bus data transmission speed up to 344MB/s,remote upper computer can realize program control of the oscillographic recorder through a variety of buses,supporting 217 SCPI instructions.
Keywords/Search Tags:Scope Coder, Underlying Driver, PCIe bus, DMA, SCPI
PDF Full Text Request
Related items