Font Size: a A A

Design Of Pulse Generator Software Based On Test Drive Development

Posted on:2021-01-08Degree:MasterType:Thesis
Country:ChinaCandidate:Y Y WuFull Text:PDF
GTID:2428330620464217Subject:Engineering
Abstract/Summary:PDF Full Text Request
The pulse generator is a digital signal source that can generate standard pulses,and it is widely used in the field of modern electronic measurement technology.With the development of electronic technology,people's requirements for pulse generators are getting higher and higher.Not only do they hope to have excellent human-computer interaction capabilities,but also have higher technical indicators to meet the everincreasing technical requirements.Therefore,the design of the pulse generator software has also become the focus of attention.So this article discusses the software design of the pulse generator in detail.This topic adopts Test-Driven Development(TDD)technology as the best practice of extreme programming to develop the software of the pulse generator,which effectively solves the difficulties encountered when using the traditional development mode to design the pulse generator software,Such as waterfall mode.The software is based on an embedded Linux operating system,uses a cross-platform C++ graphical user interface application development framework Qt as a development tool,and adopts a "layered modular" design concept to divide the software into a human-computer interaction layer,a network transmission layer,and parameter management Layer and driver call layer.Each level can be divided into multiple functional modules,and finally the software system of the pulse generator is divided into human-computer interaction module,network transmission module,parameter management module,keyboard message processing module,and driver calling module.In the process of software development,this article analyzes the requirements of software functions in detail,and follows the steps of test-driven development to design each functional module independently.In the process of code writing,first design test cases for functional modules and write tests based on the test cases Code,and then write functional code for the purpose of passing the test.After the test is passed,refactor the code to eliminate duplicate design,determine the correct function and optimize the code,and then write the code for the next test case until the design of the entire functional module is completed.This cycle finally completes the functional design of the entire software system.This article analyzes the impact of test-driven development technology on software design from four aspects: code quality,software testing,developer mentality,and user experience,and uses a software testability evaluation method to test the software.Evaluation,the results show that the software testability is good.The technology can effectively improve the software testability and code quality.Test-driven development techniques can have a positive impact on the software design of pulse generators.
Keywords/Search Tags:pulse generator, test-driven development, software design, Qt applications
PDF Full Text Request
Related items