CN106598601B - Instrument module program compiling method based on wireless test platform - Google Patents

Instrument module program compiling method based on wireless test platform Download PDF

Info

Publication number
CN106598601B
CN106598601B CN201611163567.6A CN201611163567A CN106598601B CN 106598601 B CN106598601 B CN 106598601B CN 201611163567 A CN201611163567 A CN 201611163567A CN 106598601 B CN106598601 B CN 106598601B
Authority
CN
China
Prior art keywords
instrument
module
test platform
program
control
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201611163567.6A
Other languages
Chinese (zh)
Other versions
CN106598601A (en
Inventor
闻敏刚
黄亮
王宏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Taicang T&W Electronics Co Ltd
Original Assignee
Taicang T&W Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Taicang T&W Electronics Co Ltd filed Critical Taicang T&W Electronics Co Ltd
Priority to CN201611163567.6A priority Critical patent/CN106598601B/en
Publication of CN106598601A publication Critical patent/CN106598601A/en
Application granted granted Critical
Publication of CN106598601B publication Critical patent/CN106598601B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/362Software debugging
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3664Environments for testing or debugging software
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Human Computer Interaction (AREA)
  • Stored Programmes (AREA)

Abstract

The invention relates to the field of wireless test platform software development, in particular to an instrument module program compiling method based on a wireless test platform, which comprises the following steps: dividing an instrument module of a program to be compiled into an instrument graphical interface and configuration submodule and an instrument control submodule; independently compiling and debugging the sub-modules; developing a specific instrument model control module, creating a Windows control and console program, loading the specific instrument model control module for debugging, and debugging the initialization and measurement functions of an instrument; placing and connecting the GDI module and the specific instrument model control module to a test platform; and carrying out test verification. And completing the writing of the instrument module program. The invention separates different instruments completely independently through modularization, avoids the occurrence of conditions such as file conflict of instrument libraries, is more beneficial to the production and use scenes with more instrument types, and meets the requirements of lightweight development and agile development.

Description

Instrument module program compiling method based on wireless test platform
Technical Field
The invention relates to the field of wireless test platform software development, in particular to an instrument module program compiling method based on a wireless test platform.
Background
Under the background of the era of high-end manufacturing, the application of producing a wireless test platform is more and more extensive, and the wireless test platform replaces the traditional product, a test instrument and a set of test program modes. Moreover, increasingly, the common functional requirements among some products are integrated into the testing platform, and the functional requirements of the testing program which is developed before can be supported by realizing one-time development through platform updating.
The wireless product test needs to use various functional test instruments, and these instruments are often provided by different manufacturers, and the program interfaces, calling modes and the like of the instruments are different. How to simply add new instruments to a platform and flexibly use different testing instruments for testing needs to design a flexible and useful instrument module.
Disclosure of Invention
The invention aims to provide an instrument module program compiling method based on a wireless test platform, and solves the problem.
In order to solve the problems, the technical scheme adopted by the invention is as follows:
an instrument module program compiling method based on a wireless test platform comprises the following steps:
the method comprises the following steps that firstly, an instrument module of a program to be compiled is divided into an instrument graphical interface and configuration submodule and an instrument control submodule, wherein the instrument graphical interface and configuration submodule comprises an interface display module, an instrument selection module and an instrument personalized configuration module on a test platform, and the instrument control submodule comprises a control module, an initialization module and a measurement module;
step two, a GDI module of an instrument is developed, firstly, a software code engineering template file of the GDI module of the instrument is obtained, a picture file which is vacant in the engineering is filled in for interface display, personalized setting is filled according to the requirement of the instrument, and an instrument control module of the development instrument is connected with an instrument control submodule of the instrument module of a program to be compiled to finish independent compiling and debugging;
developing a specific instrument model control module, creating a Windows control and console program, loading the specific instrument model control module for debugging, and debugging the initialization and measurement functions of the instrument;
placing the GDI module and the specific instrument model control module into and connecting the GDI module and the specific instrument model control module to a test platform;
step four, the test platform identifies the program function in the instrument module, automatically scans the file folder under the corresponding path, tests and verifies, if the GDI file with the same name as the file folder is found, the standard GDI interface is loaded and called, and the information of the instrument module is displayed on the test platform; and if the instrument control module file with the same name as the folder is found, loading and calling an instrument control standard interface to control the instrument when the instrument is initialized, and writing the instrument module program.
The instrument graphic interface and the configuration submodule are used as intermediate layers, an instrument selection function interface is provided, interface display and instrument personalized configuration in a GDI module of a specific instrument model are called through a standardized interface, the instrument control submodule is also used as an intermediate layer, and a control module of the specific instrument model is loaded through a standard interface, so that functions of instrument initialization, measurement and the like are realized.
The Windows operation and control console program creation method is used when an instrument control submodule is developed and is used for loading the instrument control submodule to debug, mainly because the instrument control submodule is complex, the debugging workload is large, and the relation with an interface is not large, under the condition that the interface part is not made, a simple Windows operation and control console program can be independently written to perform function debugging, and can be separately developed with an interface development engineer, so that the efficiency is obviously improved.
Adopt the produced beneficial effect of above-mentioned technical scheme to lie in:
compared with the traditional test module and instrument interface, the design method of instrument control integration is more beneficial to the production and use scenes with more instrument types.
And 2, through modularized separation, different instruments are completely independent, and the situations such as file conflicts of instrument libraries are avoided.
And 3, each instrument only needs to complete the development of two modules and can be independently developed, the code amount involved in the development is small, the development difficulty is small, and the requirements of light-weight development and agile development are met.
Drawings
FIG. 1 is a block diagram of the system of the present invention.
FIG. 2 is a flow chart illustrating operation of one embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Fig. 1 shows an embodiment of an instrument module programming method based on a wireless test platform according to the present invention: an instrument module program compiling method based on a wireless test platform comprises the following steps:
the method comprises the following steps that firstly, an instrument module of a program to be compiled is divided into an instrument graphical interface and configuration submodule and an instrument control submodule, wherein the instrument graphical interface and configuration submodule comprises an interface display module, an instrument selection module and an instrument personalized configuration module on a test platform, and the instrument control submodule comprises a control module, an initialization module and a measurement module;
step two, a GDI module of an instrument is developed, firstly, a software code engineering template file of the GDI module of the instrument is obtained, a picture file which is vacant in the engineering is filled in for interface display, personalized setting is filled according to the requirement of the instrument, and an instrument control module of the development instrument is connected with an instrument control submodule of the instrument module of a program to be compiled to finish independent compiling and debugging;
developing a specific instrument model control module, creating a Windows control and console program, loading the specific instrument model control module for debugging, and debugging the initialization and measurement functions of the instrument;
placing the GDI module and the specific instrument model control module into and connecting the GDI module and the specific instrument model control module to a test platform;
step four, the test platform identifies the program function in the instrument module, automatically scans the file folder under the corresponding path, tests and verifies, if the GDI file with the same name as the file folder is found, the standard GDI interface is loaded and called, and the information of the instrument module is displayed on the test platform; and if the instrument control module file with the same name as the folder is found, loading and calling an instrument control standard interface to control the instrument when the instrument is initialized, and writing the instrument module program.
FIG. 2 shows a specific operation flow of adding the IQflex instrument by using the present invention:
(1) and under the path of the instrument module, an IQflex folder is created, so that the IQflex GDI module can be conveniently developed and used in the subsequent joint debugging process.
(2) And creating a simple console program for calling the dynamic library file of the IQflex instrument to debug the function.
(3) The engineer A is responsible for developing the IQflex GDI module, realizing functions of an instrument interface, instrument selection, instrument personalized setting and the like, and saving parameters of the personalized setting as a local file so as to be convenient for the subsequent initialization and measurement of the instrument control module.
(4) The engineer B is responsible for developing the IQflex control module, is familiar with knowing the related interfaces of instrument control, adds the files needed by the related instrument control, develops and realizes the initialization of the instrument, the reading and configuration functions of the local file of the personalized parameter, the measurement of the instrument under the standard instrument interface and the return function of the test result.
(5) Engineer a provides the IQflex GDI file to joint engineer C. And the engineer B provides the generated IQflex control module and the corresponding file required by instrument control to the joint debugging engineer C. And the engineer C puts the files provided by the other two persons into the IQflex folder, directly calls the test platform, selects the IQflex instrument and performs test verification.
(6) And (5) completing the functional test verification of the instrument, and completing the addition of the IQflex instrument.
The invention keeps the instrument interface uniform through the instrument module, the test platform does not need to develop related interfaces again due to instrument change, and the switching of the test instrument can be realized only through simple configuration; each instrument is separated in a modularized mode, the development code amount is small, multiple persons can develop synchronously, and the development efficiency is high.
Compared with a few test programs with single instrument models or types, the whole instrument module is integrated, the modification is complicated, a new instrument is added, the time is consumed, and the requirement on development engineers is high. The modularization and the template have the advantages that the place and the difficulty involved in modification are greatly reduced, even a primary engineer can easily complete the development of the GDI module, and other functional modules cannot be influenced even if errors occur after the modules are independent.
The development difficulty of the specific instrument control module is relatively high, and the instrument control sub-module middle layer is loaded and called in a standardized interface mode. The development engineer only needs to consider the realization function and output by using a standard interface, and does not need to consider other functions, and a simple Windows operation and console program debugging can be established.
The GDI has the advantages that a new instrument is added, the graphical interface of the instrument and the configuration sub-module codes are not required to be changed, and the identification is successful, so that the option of the new instrument can be provided on the instrument selection interface.
To summarize, 1, the development speed is accelerated. 2. The development difficulty is reduced. 3. Automatic instrument recognition.
Although the invention has been described herein with reference to a number of illustrative embodiments thereof, it should be understood that numerous other modifications and embodiments can be devised by those skilled in the art that will fall within the spirit and scope of the principles of this disclosure. More specifically, various variations and modifications are possible in the component parts and/or arrangements of the subject combination arrangement within the scope of the disclosure, the drawings and the appended claims. In addition to variations and modifications in the component parts and/or arrangements, other uses will also be apparent to those skilled in the art.

Claims (1)

1. A method for compiling instrument module programs based on a wireless test platform is characterized by comprising the following steps:
the method comprises the following steps that firstly, an instrument module of a program to be compiled is divided into an instrument graphical interface and configuration submodule and an instrument control submodule, wherein the instrument graphical interface and configuration submodule comprises an interface display module, an instrument selection module and an instrument personalized configuration module on a test platform, and the instrument control submodule comprises a control module, an initialization module and a measurement module;
step two, a GDI module of an instrument is developed, firstly, a software code engineering template file of the GDI module of the instrument is obtained, a picture file which is vacant in the engineering is filled in for interface display, personalized setting is filled according to the requirement of the instrument, and an instrument control module of the development instrument is connected with an instrument control submodule of the instrument module of a program to be compiled to finish independent compiling and debugging;
developing a specific instrument model control module, creating a Windows control and console program, loading the specific instrument model control module for debugging, and debugging the initialization and measurement functions of the instrument;
placing the GDI module and the specific instrument model control module into and connecting the GDI module and the specific instrument model control module to a test platform;
step five, the test platform identifies the program function in the instrument module, automatically scans the file folder under the corresponding path, tests and verifies, if the GDI file with the same name as the file folder is found, the standard GDI interface is loaded and called, and the information of the instrument module is displayed on the test platform; and if the instrument control module file with the same name as the folder is found, loading and calling an instrument control standard interface to control the instrument when the instrument is initialized, and writing the instrument module program.
CN201611163567.6A 2016-12-15 2016-12-15 Instrument module program compiling method based on wireless test platform Active CN106598601B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611163567.6A CN106598601B (en) 2016-12-15 2016-12-15 Instrument module program compiling method based on wireless test platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611163567.6A CN106598601B (en) 2016-12-15 2016-12-15 Instrument module program compiling method based on wireless test platform

Publications (2)

Publication Number Publication Date
CN106598601A CN106598601A (en) 2017-04-26
CN106598601B true CN106598601B (en) 2020-02-07

Family

ID=58801748

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611163567.6A Active CN106598601B (en) 2016-12-15 2016-12-15 Instrument module program compiling method based on wireless test platform

Country Status (1)

Country Link
CN (1) CN106598601B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109994008A (en) * 2017-12-30 2019-07-09 无锡虹业自动化工程有限公司 A kind of information processing mechanism of experience system
CN108959094B (en) * 2018-07-11 2022-04-12 苏州因曼吉科技有限公司 Method for defining and applying test program based on data structure

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101799764B (en) * 2009-12-31 2013-01-02 成都芯通科技股份有限公司 Realization method of instrument module common port
CN103713281B (en) * 2013-12-12 2016-06-08 中国人民解放军海军工程大学 Based on radar signal unit performance test and the fault diagnosis system of general-utility test platform

Also Published As

Publication number Publication date
CN106598601A (en) 2017-04-26

Similar Documents

Publication Publication Date Title
CN103064403B (en) A kind of ECU hardware-in-loop simulation automated testing method and system
CN100573535C (en) Simulation system and being used to is simulated the computer-implemented method with the access control system
CN107704386B (en) Unit testing method and device of business process, computer equipment and storage medium
US10423571B2 (en) Method for configuring a real or virtual electronic control unit
KR100808257B1 (en) Apparatus and Method for prototype development of embedded system
CN112270149A (en) Verification platform automation integration method and system, electronic equipment and storage medium
CN111274142B (en) Software communication system architecture conformance test modeling method based on extended finite state machine
CN111176984A (en) Signal-oriented automatic test implementation method
CN106598601B (en) Instrument module program compiling method based on wireless test platform
US20040177345A1 (en) Method for generating computer software for embedded systems
CN114168114A (en) Operator registration method, device and equipment
CN116629172A (en) Method, device, equipment and medium for automatically generating and integrating modules in chip design
CN116737117A (en) Model development method based on Autosar architecture
CN104063231A (en) Test resource rapid access method based on HIT-TENA
CN101231590A (en) IVR flow editor analytic model operated base on script and COM component
CN105868104B (en) A kind of cross-platform graphic user interface automatic test approach
CN111752623B (en) Display configuration method, device, electronic equipment and readable storage medium
CN102043628A (en) Method and system for developing on screen display (OSD) application software and multimedia terminal
CN117215574A (en) Low code development system and method integrating flow design and UI design
CN106682249B (en) Model-independent universal publish/subscribe interface test system and method
US10488835B2 (en) Method for configuring a tester equipped for testing an electronic control unit
US20120131548A1 (en) Aeronautical Software Application Development Workbench Comprising a Structured Functional Description Language
CN113553251A (en) Mock testing method applied to software testing
CN111123084A (en) TCL language-based digital circuit rapid test method
CN111580789A (en) Function block framework generation

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant