Real-time simulation online automatic analysis system
The real-time simulation online automatic analysis system uses a real-time simulator with high-speed and low-speed data buses to achieve automatic judgment and analysis, which solves the problem of low efficiency of offline analysis in real-time simulation testing, realizes synchronous online judgment during execution, and improves analysis efficiency and the reliability of the control system.
Patent Information
- Application Number
- CN202410650284.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-23
- Publication Date
- 2025-11-25
AI Technical Summary
Existing technologies lack a system for synchronously and online judging the execution effect during real-time simulation testing, resulting in low efficiency of offline analysis and an inability to determine in a timely manner whether test cases need to be modified to repeat the function items.
A real-time simulation online automatic analysis system is provided, including a human-computer interaction workstation, a real-time simulator, a test object and a module development workstation. The real-time simulator realizes the automatic judgment and analysis function of software simulation test. High-speed and low-speed data buses are used for inter-module communication. The real-time scheduling module realizes the synchronous operation of the automatic judgment and analysis model and generates a simulation test analysis report.
This enables synchronous online evaluation of execution results during real-time simulation, improving analysis efficiency and allowing for timely determination of whether test cases need modification. It solves the problem of low efficiency in offline analysis and ensures the high performance and reliability of the control system.
Smart Images

Figure CN121008495A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of simulation testing, and more specifically to a real-time simulation online automatic analysis system. Background Technology
[0002] Currently, in fields such as aerospace, high-speed rail, automotive, precision machinery, and industrial automation, real-time simulation of control systems has become an indispensable part of the control system development process. Employing a fully functional, stable, and highly confident real-time simulation system has become a fundamental requirement for the experimental environment at the control system level, essential for developing high-performance, high-quality, highly reliable, and technically controllable control systems.
[0003] In general engineering practice, offline data analysis is used to analyze and evaluate the effectiveness of real-time simulation tests. Many methods and tools exist for this, but how to conduct experiments during real-time test execution remains a challenge. Therefore, there is an urgent need to develop a system that performs data analysis synchronously with real-time simulation, capable of simultaneously determining the effectiveness of the execution online, providing simulation results, and determining whether test cases need to be modified and repeated after execution. Summary of the Invention
[0004] The following provides a brief overview of one or more aspects to offer a basic understanding of them. This overview is not an exhaustive summary of all conceived aspects, nor is it intended to identify key or decisive elements of all aspects, nor to define the scope of any or all aspects. Its sole purpose is to present some concepts of one or more aspects in a simplified form to prepare for the more detailed descriptions that follow.
[0005] The purpose of this invention is to solve the above-mentioned problems and provide a real-time simulation online automatic analysis system that can be used in the development of aero-engine control systems and can verify the system design. It can automatically judge and analyze the data during and after software-in-the-loop simulation.
[0006] The technical solution of this invention is as follows:
[0007] This invention provides a real-time simulation online automatic analysis system, comprising a human-computer interaction workstation, a real-time simulator, a test object, and a module development workstation; wherein,
[0008] Human-computer interaction workstations are used to provide a human-computer interaction environment for software simulation testing;
[0009] Real-time simulators are used to achieve automatic judgment and analysis functions in software simulation testing;
[0010] The model development workstation is used to develop simulation models required for real-time simulators;
[0011] The test object is used as a test object for automatic determination and analysis of test criteria by a real-time simulator.
[0012] According to an embodiment of the real-time simulation online automatic analysis system of the present invention, the human-computer interaction workstation includes a monitoring module, a human-computer interaction module, a test case injection module, and an analysis report generation module; wherein,
[0013] The monitoring module is used to monitor the operating status of the real-time simulator under different operating modes;
[0014] The human-computer interaction module is used to provide configuration ports and command ports for the real-time simulator in different operating modes.
[0015] The test case injection module is used to implement the test case injection function of the real-time simulator in different operating modes;
[0016] The analysis report generation module is used to generate simulation test analysis reports after the real-time simulator completes software simulation testing.
[0017] According to an embodiment of the real-time simulation online automatic analysis system of the present invention, the real-time simulator includes a gateway module, a controlled object model module, an automatic judgment and analysis model module, a driving and acquisition module, and a real-time scheduling module; wherein...
[0018] The gateway module is used to enable information exchange between the human-computer interaction station and the module development workstation and the control object model module;
[0019] The Control Object Model module provides a dynamic library or executable file for control object models for software simulation testing.
[0020] The automatic judgment and analysis model module is used to realize the automatic judgment and analysis function of the operating status of the controlled object model module;
[0021] The driver and acquisition module is used to simulate the physical signal acquisition and physical signal output functions of the controlled object model module during operation;
[0022] The real-time scheduling module is used to implement real-time scheduling of the gateway module, the control object model module, the automatic judgment and analysis model module, and the driver and acquisition module.
[0023] According to an embodiment of the real-time simulation online automatic analysis system of the present invention, the real-time simulator uses a high-speed data bus and a low-speed data bus for communication connections between modules; wherein,
[0024] The automatic judgment and analysis model module and the driving and acquisition module are respectively connected to the control object model module via a high-speed data bus;
[0025] The control object model module and the automatic judgment and analysis model module communicate with the gateway module via a low-speed data bus.
[0026] According to an embodiment of the real-time simulation online automatic analysis system of the present invention, the real-time simulator runs an automatic judgment and analysis model module in real time to perform real-time automatic judgment and analysis of software simulation tests; wherein, when performing real-time automatic judgment and analysis of software simulation tests, the automatic judgment and analysis model module synchronously runs the control object model in the control object model module, and obtains information of the controller model in the drive and acquisition module and the control object model in the control object model module through a high-speed data bus, and then completes the automatic judgment and analysis of software simulation tests under the scheduling drive of the real-time scheduling module.
[0027] According to an embodiment of the real-time simulation online automatic analysis system of the present invention, the gateway module is further used to realize the communication connection between the automatic judgment and analysis model module and the analysis report generation module in the human-computer interaction workstation; wherein, after the automatic judgment and analysis model module completes the automatic judgment and analysis of the operating status of the control object model module, it sends the judgment result to the analysis report generation module of the human-computer interaction workstation through the gateway module, and then generates the corresponding simulation test analysis report through the analysis report generation module.
[0028] According to an embodiment of the real-time simulation online automatic analysis system of the present invention, the module development workstation includes a graphical model development module, a code generation and compilation / linking module, and a real-time model download and update module; wherein...
[0029] The graphical model development module provides a graphical modeling environment for developing simulation models required for real-time simulators and sends the generated simulation model files to the code generation, compilation, and linking module.
[0030] The code generation and compilation / linking module is used to parse the received simulation model file and generate the corresponding model code, compilation / linking, and model dynamic library file or executable file;
[0031] The real-time model download and update module provides the function of real-time download and update of the simulation model's code and compilation link.
[0032] According to an embodiment of the real-time simulation online automatic analysis system of the present invention, the module development workstation develops corresponding simulation models according to the requirements of each module in the real-time simulator, and provides the simulation model dynamic library or executable file to the outside world; wherein, the simulation module includes the control object model required by the control object model module, the automatic judgment and analysis model required by the automatic judgment and analysis model module, and the controller model required by the drive and acquisition module.
[0033] The present invention also provides a computer-readable medium storing computer program code that, when executed by a processor, implements the method described above.
[0034] The present invention also provides an automatic analysis device for software-in-the-loop simulation, comprising:
[0035] Memory, used to store instructions that can be executed by a processor; and
[0036] A processor is used to execute memory instructions to implement the methods described above.
[0037] Compared with existing technologies, this invention offers the following advantages: For automated analysis of software-in-the-loop simulation, this invention utilizes a model development workstation to develop the simulation model required by the real-time simulator. Then, the real-time simulator is used to achieve automated judgment and analysis of software simulation testing. Compared to closed-loop simulation where a controlled object model and a controller model are run in a computer (i.e., a simulation computer) to form a control loop, this invention directly runs the digital model of the controlled object in a computer (i.e., a real-time simulation computer) and simulates the real dynamic characteristics of the controlled object. It tests and verifies various functions in the controller from a real-time scale and at the level of physical and electrical signals. Through this invention, the execution effect can be judged synchronously online during execution, simulation execution conclusions can be given, and it can be determined whether the test cases need to be modified and the functional items tested again after execution, solving the inefficiency problem of offline analysis in finding and solving problems. Attached Figure Description
[0038] The above-described features and advantages of the present invention will be better understood after reading the following detailed description of embodiments of the present disclosure in conjunction with the accompanying drawings. In the drawings, components are not necessarily drawn to scale, and components having similar related characteristics or features may have the same or similar reference numerals.
[0039] Figure 1 This is a system architecture diagram illustrating an embodiment of the real-time simulation online automatic analysis system of the present invention. Detailed Implementation
[0040] The present invention will now be described in detail with reference to the accompanying drawings and specific embodiments. It should be noted that the aspects described below with reference to the accompanying drawings and specific embodiments are merely exemplary and should not be construed as limiting the scope of protection of the present invention in any way.
[0041] This document discloses a real-time simulation online automatic analysis system. Figure 1 This is a system architecture diagram illustrating an embodiment of the real-time simulation online automatic analysis system of the present invention. Figure 1As shown, in this embodiment, the real-time simulation online automatic analysis system includes a human-computer interaction workstation (1), a real-time simulator (2), a test object (3), and a module development workstation (4). The human-computer interaction workstation (1) provides a human-computer interaction environment for software simulation testing. The real-time simulator (2) is used to implement automatic judgment and analysis functions for software simulation testing. The model development workstation is used to develop the simulation model required by the real-time simulator (2). The test object (3) serves as the test object for automatic judgment and analysis of experimental criteria by the real-time simulator.
[0042] Specifically, in this embodiment, the human-computer interaction workstation (1) includes a monitoring module (1.1), a human-computer interaction module (1.2), a test case injection module (1.3), and an analysis report generation module (1.4). The monitoring module (1.1) monitors the operating status of the real-time simulator (2) under different operating modes. The human-computer interaction module (1.2) provides the configuration and command ports of the real-time simulator (2) under different operating modes, thereby enabling the configuration and command control of the real-time simulator (2) under different operating modes. The test case injection module (1.3) implements the test case injection function of the real-time simulator (2) under different operating modes. The analysis report generation module (1.4) generates a simulation test analysis report after the real-time simulator (2) completes software simulation testing.
[0043] Furthermore, in this embodiment, the real-time simulator (2) includes a gateway module (2.1), a control object model module (2.2), an automatic judgment and analysis model module (2.3), a drive and acquisition module (2.4), and a real-time scheduling module (2.5). Among them, the gateway module (2.1) is used to realize the information interaction between the human-computer interaction station and the module development workstation (4) and the control object model module (2.2), thereby realizing the functions of sending and receiving configuration, loading, and control information of the human-computer interaction workstation (1) and the model development workstation (2). The control object model module (2.2) is a dynamic library (DLL, SO, etc.) or executable file (EXE, etc.) for the control object model used in software simulation testing. After the model development workstation (4) has developed the control object model, it is downloaded to the control object model module (2.2) of the real-time simulator (2) to simulate the function of the controlled object. The automatic judgment and analysis model module (2.3) is a dynamic library (DLL, SO, etc.) or executable file (EXE, etc.) for the automatic judgment and analysis model used in software simulation testing. After the model development workstation (4) has developed the automatic judgment and analysis model, it is downloaded to the control object model module (2.2) of the real-time simulator (2) to simulate the function of the controlled object. After defining and analyzing the model, it is downloaded to the automatic judgment and analysis model module (2.3) of the real-time simulator (2) to realize the automatic judgment and analysis of the runtime functions, performance and fault status of the control object model module (2.2). The drive and acquisition module (2.4) is used to simulate the physical signal acquisition and physical signal output functions of the control object model module (2.2) during runtime. The real-time scheduling module (2.5) is used to realize the real-time scheduling of the gateway module (2.1), the control object model module (2.2), the automatic judgment and analysis model module (2.3) and the drive and acquisition module (2.4).
[0044] Furthermore, in this embodiment, for the model information interaction and signal acquisition and driving between the models in the real-time simulator (2), a high-speed data bus and a low-speed data bus are used to connect the modules. Specifically, a high-speed data bus is used for communication between the automatic judgment and analysis model module (2.3) and the control object model module (2.2), and between the driving and acquisition module (2.4) and the control object model module (2.2). The high-speed data bus is used to complete the signal transmission and reception of the constructed control closed-loop signal flow, with a refresh rate of 1000Hz to 5000Hz. A low-speed data bus is used for communication between the control object model module (2.2) and the gateway module (2.1), and between the automatic judgment and analysis model module (2.3) and the gateway module (2.1). The low-speed data bus is used to complete functions such as executable model configuration and loading, model operation monitoring, manual operation drive signal transmission and reception, and test case drive signal transmission and reception, with a refresh rate of approximately 10Hz to 100Hz.
[0045] In this embodiment, the real-time simulator (2) executes the analysis logic of the test simulation test criteria in real time by running the automatic judgment and analysis model module (2.3). When the automatic judgment and analysis model module (2.3) performs real-time automatic judgment and analysis of the software simulation test, the control object model module (2.2) sends a control drive signal to the test object (3) through the drive and acquisition module (2.4). After receiving the signal, the test object (3) returns a control feedback signal to the drive and acquisition module (2.4). After receiving the control feedback signal, the drive and acquisition module (2.4) transmits the control feedback signal to the control object model module (2.2) through the high-speed data bus, and then completes the automatic judgment and analysis of the software simulation test under the scheduling drive of the real-time scheduling module (2.5).
[0046] In addition, in this embodiment, the gateway module (2.1) is also used to realize the communication connection between the automatic judgment and analysis model module (2.3) and the analysis report generation module (1.4) in the human-computer interaction workstation (1), thereby generating the corresponding simulation test analysis report. Specifically, after the automatic judgment and analysis model module (2.3) completes the automatic judgment and analysis of the running status of the control object model module (2.2), it sends the judgment result to the analysis report generation module (1.4) of the human-computer interaction workstation (1) through the gateway module (2.1). Driven by the "test completed" event issued by the automatic judgment and analysis model module (2.3), the analysis report generation module (1.4) generates the corresponding simulation test analysis report.
[0047] Furthermore, in this embodiment, the module development workstation (4) includes a graphical model development module (4.1), a code generation and compilation / linking module (4.2), and a real-time model download and update module (4.3), which are used to complete the graphical development of the simulation model, code generation, and compilation / linking of model files. The graphical model development module (4.1) provides a graphical modeling environment for developing the simulation model required for the real-time simulator (2) and sends the generated simulation model file to the code generation and compilation / linking module. The code generation and compilation / linking module (4.2) parses the received simulation model file and generates the corresponding model code, compilation / linking, and model dynamic library file or executable file. The real-time model download and update module (4.3) sends the simulation model dynamic library or executable model file and receives model update information, and sends the model update information to the graphical model development module (4.1), thereby realizing the real-time download and update of the simulation model's model code and compilation / linking.
[0048] Specifically, in this embodiment, when developing the simulation model, the module development workstation (4) develops the corresponding simulation model according to the requirements of each module in the real-time simulator (2), and provides the model dynamic library (so, dll, etc.) or executable file (exe, etc.) of the simulation model to the outside world. Among them, the simulation module includes the control object model required by the control object model module (2.2), the automatic judgment and analysis model required by the automatic judgment and analysis model module (2.3), and the controller model required by the drive and acquisition module (2.4).
[0049] In this embodiment, the module development workstation (4) conducts a model development process based on the graphical modeling environment in the graphical model development module (4.1) when developing the simulation model. It completes the model file (mdl, etc.) corresponding to the control object model module (2.2) for automatic determination of simulation test execution criteria, and generates the model files (mdl, etc.) corresponding to the automatic determination and analysis model module (2.3) and the drive and acquisition module (2.4) for closed-loop control test simulation. In addition, in this embodiment, the graphical model development module (4.1) can also provide a status information display function for successful model download.
[0050] This specification also provides a computer-readable medium storing computer program code that, when executed by a processor, implements the real-time simulation online automatic analysis system as described above.
[0051] This specification also provides a software-in-the-loop simulation automatic analysis apparatus, including a processor memory for storing instructions executable by a processor, and a processor for executing instructions in the instruction memory to implement the real-time simulation online automatic analysis system as described above.
[0052] The prior description of this disclosure is provided to enable any person skilled in the art to make or use this disclosure. Various modifications to this disclosure will be apparent to those skilled in the art, and the general principles defined herein may be applied to other variations without departing from the spirit or scope of this disclosure. Therefore, this disclosure is not intended to be limited to the examples and designs described herein, but should be accorded the widest scope consistent with the principles and novel features disclosed herein.
[0053] Those skilled in the art will further appreciate that the various illustrative logic blocks, modules, circuits, and algorithm steps described in conjunction with the embodiments disclosed herein can be implemented as electronic hardware, computer software, or a combination of both. To clearly illustrate this interchangeability between hardware and software, the various illustrative components, blocks, modules, circuits, and steps are described above in a generalized manner in terms of their functionality. Whether such functionality is implemented as hardware or software depends on the specific application and the design constraints imposed on the overall system. Those skilled in the art may implement the described functionality in different ways for each specific application, but such implementation decisions should not be construed as departing from the scope of the invention.
[0054] The various illustrative logic blocks, modules, and circuits described in conjunction with the embodiments disclosed herein can be implemented or performed using a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination thereof designed to perform the functions described herein. The general-purpose processor may be a microprocessor, but in alternatives, it may be any conventional processor, controller, microcontroller, or state machine. The processor may also be implemented as a combination of computing devices, such as a combination of a DSP and a microprocessor, multiple microprocessors, one or more microprocessors cooperating with a DSP core, or any other such configuration.
[0055] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of both. The software module may reside in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art. An exemplary storage medium is coupled to a processor such that the processor can read and write information to / from the storage medium. In an alternative, the storage medium may be integrated into the processor. The processor and storage medium may reside in an ASIC. The ASIC may reside in a user terminal. In an alternative, the processor and storage medium may reside as discrete components in the user terminal.
[0056] In one or more exemplary embodiments, the described functionality may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software as a computer program product, the functionality may be stored or transmitted as one or more instructions or code on or through a computer-readable medium. A computer-readable medium includes both computer storage media and communication media, encompassing any medium that facilitates the transfer of a computer program from one location to another. A storage medium may be any available medium accessible to a computer. By way of example and not limitation, such a computer-readable medium may include RAM, ROM, EEPROM, CD-ROM or other optical disc storage, disk storage or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and is accessible to a computer. Any connection is also legitimately referred to as a computer-readable medium. For example, if the software is transmitted from a website, server, or other remote source using coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL), or wireless technologies such as infrared, radio, and microwave, then the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of a medium. As used in this article, disk and disc include compact discs (CDs), laser discs, optical discs, digital multi-purpose discs (DVDs), floppy disks, and Blu-ray discs. Disks typically reproduce data magnetically, while discs reproduce data optically using lasers. Combinations of these should also be included within the scope of computer-readable media.
Claims
1. A real-time simulation online automatic analysis system, characterized in that, This includes human-computer interaction workstations, real-time simulators, test objects, and module development workstations; among them, Human-computer interaction workstations are used to provide a human-computer interaction environment for software simulation testing; Real-time simulators are used to achieve automatic judgment and analysis functions in software simulation testing; The model development workstation is used to develop simulation models required for real-time simulators; The test object is used as a test object for automatic determination and analysis of test criteria by a real-time simulator.
2. The real-time simulation online automatic analysis system according to claim 1, characterized in that, The human-computer interaction workstation includes a monitoring module, a human-computer interaction module, a test case injection module, and an analysis report generation module; wherein... The monitoring module is used to monitor the operating status of the real-time simulator under different operating modes; The human-computer interaction module is used to provide configuration ports and command ports for the real-time simulator in different operating modes. The test case injection module is used to implement the test case injection function of the real-time simulator in different operating modes; The analysis report generation module is used to generate simulation test analysis reports after the real-time simulator completes software simulation testing.
3. The real-time simulation online automatic analysis system according to claim 1, characterized in that, The real-time simulator includes a gateway module, a controlled object model module, an automatic judgment and analysis model module, a driver and acquisition module, and a real-time scheduling module; wherein... The gateway module is used to enable information exchange between the human-computer interaction station and the module development workstation and the control object model module; The Control Object Model module provides a dynamic library or executable file for control object models for software simulation testing. The automatic judgment and analysis model module is used to realize the automatic judgment and analysis function of the operating status of the controlled object model module; The driver and acquisition module is used to simulate the physical signal acquisition and physical signal output functions of the controlled object model module during operation; The real-time scheduling module is used to implement real-time scheduling of the gateway module, the control object model module, the automatic judgment and analysis model module, and the driver and acquisition module.
4. The real-time simulation online automatic analysis system according to claim 3, characterized in that, The real-time simulator uses a high-speed data bus and a low-speed data bus for communication between modules; wherein... The automatic judgment and analysis model module and the driving and acquisition module are respectively connected to the control object model module via a high-speed data bus; The control object model module and the automatic judgment and analysis model module communicate with the gateway module via a low-speed data bus.
5. The real-time simulation online automatic analysis system according to claim 3, characterized in that, The real-time simulator runs the automatic judgment and analysis model module in real time to perform real-time automatic judgment and analysis of software simulation tests. When performing real-time automatic judgment and analysis of software simulation tests, the automatic judgment and analysis model module synchronously runs the control object model in the control object model module, and obtains information of the controller model in the drive and acquisition module and the control object model in the control object model module through the high-speed data bus. Then, under the scheduling drive of the real-time scheduling module, it completes the automatic judgment and analysis of software simulation tests.
6. The real-time simulation online automatic analysis system according to claim 3, characterized in that, The gateway module is also used to realize the communication connection between the automatic judgment and analysis model module and the analysis report generation module in the human-computer interaction workstation; wherein, after the automatic judgment and analysis model module completes the automatic judgment and analysis of the operating status of the control object model module, it sends the judgment result to the analysis report generation module of the human-computer interaction workstation through the gateway module, and then generates the corresponding simulation test analysis report through the analysis report generation module.
7. The real-time simulation online automatic analysis system according to claim 1, characterized in that, The module development workstation includes a graphical model development module, a code generation and compilation / linking module, and a real-time model download and update module; among which... The graphical model development module provides a graphical modeling environment for developing simulation models required for real-time simulators and sends the generated simulation model files to the code generation, compilation, and linking module. The code generation and compilation / linking module is used to parse the received simulation model file and generate the corresponding model code, compilation / linking, and model dynamic library file or executable file; The real-time model download and update module provides the function of real-time download and update of the simulation model's code and compilation link.
8. The real-time simulation online automatic analysis system according to claim 1, characterized in that, The module development workstation develops corresponding simulation models according to the requirements of each module in the real-time simulator, and provides the simulation model dynamic library or executable file to the outside world; among them, the simulation module includes the control object model required by the control object model module, the automatic judgment and analysis model required by the automatic judgment and analysis model module, and the controller model required by the drive and acquisition module.
9. A computer-readable medium storing computer program code, characterized in that, The computer program code, when executed by a processor, implements the method as described in any one of claims 1-8.
10. An automatic analysis device for software-in-the-loop simulation, characterized in that, include: Memory is used to store instructions that can be executed by the processor; as well as A processor for executing the instructions to implement the method as described in any one of claims 1-8.