Unlock instant, AI-driven research and patent intelligence for your innovation.

Test method and device for embedded control algorithm

An embedded control and test method technology, applied in the test field, can solve the problems of late intervention in test work, increase the cost of repairing problems, and restrict the correctness and accuracy of control algorithms, so as to improve test efficiency, reduce repair costs, and reduce work volume effect

Active Publication Date: 2018-01-19
BEIJING RUNKE GENERAL TECH
View PDF2 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] In the later stage of system-level testing, on the one hand, the dependence of the tested control algorithm on hardware is greatly increased, such as the accuracy and stability of actuators and sensors, which restrict the correctness and accuracy of the control algorithm's operating results. Accuracy; on the other hand, due to the late intervention of the test work, the system-level test of the control algorithm needs to be carried out in the middle and late stages of project development, thus increasing the cost of repairing problems

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Test method and device for embedded control algorithm
  • Test method and device for embedded control algorithm
  • Test method and device for embedded control algorithm

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0023] figure 1 It is a flow chart of an embedded control algorithm testing method provided by Embodiment 1 of the present invention. The method can be executed by an embedded control algorithm testing device, and the device can be realized by software that can run on the MATLAB platform. see figure 1 The testing method of the embedded control algorithm provided by the present embodiment specifically includes the following steps:

[0024] Step 110, create a system test project to load the embedded system model, obtain at least one test case corresponding to the embedded system model, test judgment criteria and preset test data items to be saved.

[0025] Simulink, one of the most important components of MATLAB, is a multi-domain simulation and model-based design tool for dynamic and embedded systems. The system model created in Simulink can be composed of many different modules connected together in a set connection mode, and the module can be used as the basic unit of the s...

Embodiment 2

[0035] figure 2 It is a flow chart of an embedded control algorithm testing method provided by Embodiment 2 of the present invention. On the basis of the above-mentioned embodiments, this embodiment further adds the steps of test result analysis and regression testing. see figure 2 The testing method of the embedded control algorithm provided by the present embodiment specifically includes the following steps:

[0036] Step 210, create a system test project to load the embedded system model, obtain at least one test case corresponding to the embedded system model, test judgment criteria and preset test data items that need to be saved; wherein, the embedded system model is The model corresponding to the embedded system composed of user-defined S-function modules and standard modules created in Simulink, a visual simulation tool of MATLAB; the user-defined S-function module includes the system function S-function in MATLAB, which will The S-Function control module encapsula...

Embodiment 3

[0051] image 3 It is a schematic flowchart of a testing method for an embedded control algorithm provided by Embodiment 3 of the present invention. This embodiment can provide a preferred example based on the foregoing embodiments. see image 3 , the testing method of the embedded control algorithm that the present embodiment provides comprises the following steps:

[0052] Step 310, using the C MEXS file template included in the S-Function in MATLAB to call the embedded control algorithm used to store the controller in the embedded system to generate a target C MEXS file corresponding to the embedded control algorithm , the file includes the source file of the embedded control algorithm, the settings of the input, output, the relationship between the output and the input, the initial state and the global variable, and is stored under the setting folder with the extension name .c.

[0053] In this embodiment, in the C MEX S file template, #include "xxxx.c" is used to decla...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The embodiment of the invention discloses a testing method and device for an embedded control algorithm. The method includes: creating a system test project to load an embedded system model, and obtaining at least one corresponding test case, test judgment criteria and test data items to be saved; performing a simulation test on the embedded system model by running the system test project; The embedded system model is the model corresponding to the embedded system composed of user-defined S-Function modules and standard modules created in Simulink of MATLAB; the user-defined S-Function module includes the S-Function in MATLAB, which will The S-Function control module obtained by encapsulating the embedded control algorithm. The embodiment of the present invention can realize the automatic test of the embedded control algorithm, improve the test efficiency, ensure the accuracy of the test, and reduce the problem repair cost.

Description

technical field [0001] The embodiments of the present invention relate to the technical field of testing, in particular to a testing method and device for an embedded control algorithm. Background technique [0002] Embedded system, as one of the most popular fields at present, is developing at a rapid pace. Its application fields cover industrial control, communication, instruments, meters, automobiles, ships, aviation, aerospace, military equipment, consumer electronics, etc. At the same time, embedded control devices are becoming more and more intelligent, informatized, networked, and precise, which makes the control algorithms in them more and more complex, and the difficulty of testing these control algorithms also increases. Regression testing is less efficient. [0003] At present, the more common testing methods for embedded control algorithms are usually: first, use the technical means of white-box testing to conduct function-level unit tests on the control algorit...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F11/36
Inventor 钟贞陈义林
Owner BEIJING RUNKE GENERAL TECH