Simulation data processing method and simulation system based on Simulink model

By introducing the IO interface layer and dynamic configuration mechanism in the Simulink model, the problem of model modification difficulties when hardware interface changes is solved, the flexibility and development efficiency of the simulation system are improved, and more efficient hardware interaction and real-time performance are achieved.

CN119166138APending Publication Date: 2024-12-20CHANGSHA KELIANG TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411293148.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-14
Publication Date
2024-12-20

AI Technical Summary

Technical Problem

The existing Simulink semi-physical simulation technology requires a significant modification of the model structure when the hardware interface is changed, resulting in poor model flexibility and difficulty in adapting to rapidly changing hardware environments.

Method used

The IO interface layer is introduced, and by obtaining and converting Simulink model data, applying preset communication protocols to package and sending them to hardware devices, decoupling the model and hardware interface, and dynamically update configuration information when the hardware interface changes to avoid modifying the model structure.

Benefits of technology

It improves the flexibility and development efficiency of the Simulink model, reduces system compilation time, improves real-time performance and the reliability of simulation systems, promotes collaborative development and simplifies the debugging process of complex systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119166138A_ABST
    Figure CN119166138A_ABST
Patent Text Reader

Abstract

The invention relates to a simulation data processing method based on a Simulink model and a simulation system based on the Simulink model. The method comprises the steps that an IO interface layer obtains Simulink model data; the IO interface layer is arranged between the Simulink model and a hardware interface of the hardware equipment; the IO interface layer converts the Simulink model data into a target format to obtain model data in the target format; the IO interface layer packages the model data in the target format according to a format specified by a preset communication protocol by applying the preset communication protocol to obtain a model data packet; and the IO interface layer sends the model data packet to hardware equipment. Through the IO interface layer, the Simulink model can be more focused on implementation of system logic and control strategies, and communication details of a bottom layer do not need to be concerned. By means of the design of the interface layer, decoupling of the model and a hardware interface can be achieved, and therefore the flexibility of the Simulink model is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of simulation control technology, and in particular to a simulation data processing method and a simulation system based on a Simulink model. Background Art

[0002] Simulink is a graphical programming environment for multi-domain simulation and model-based design. Simulink semi-physical simulation is a technology that combines software simulation models with actual hardware. It is widely used in the development of complex systems such as aerospace, automobiles, and robots. In traditional Simulink semi-physical simulation, S-Function packaging technology is used to encapsulate hardware interfaces into modules that can be recognized by Simulink.

[0003] The existing Simulink semi-physical simulation technology often requires a major modification of the model structure when the hardware interface changes, which makes it difficult to adapt to the rapidly changing hardware environment, and therefore suffers from poor model flexibility. Summary of the invention

[0004] Based on this, it is necessary to provide a simulation data processing method based on a Simulink model and a simulation system based on a Simulink model, which can improve the flexibility of the Simulink model, in order to address the above technical problems.

[0005] In a first aspect, the present application provides a method for processing simulation data based on a Simulink model. The method comprises:

[0006] The IO interface layer obtains Simulink model data; the IO interface layer is arranged between the Simulink model and the hardware interface of the hardware device;

[0007] The IO interface layer converts the Simulink model data into a target format to obtain model data in the target format;

[0008] The IO interface layer applies a preset communication protocol to package the model data in the target format according to the format specified by the preset communication protocol to obtain a model data packet;

[0009] The IO interface layer sends the model data packet to the hardware device.

[0010] In one embodiment, the method further comprises:

[0011] The IO interface layer obtains hardware data;

[0012] The IO interface layer converts the hardware data into a target format to obtain hardware data in the target format;

[0013] The IO interface layer applies a preset communication protocol to package the hardware data in the target format according to the format specified by the preset communication protocol to obtain a hardware data packet;

[0014] The IO interface layer sends the hardware data packet to the Simulink model.

[0015] In one embodiment, the method further comprises:

[0016] When the configuration information of the hardware interface is monitored to change while running the Simulink model, the updated configuration information of the hardware interface is parsed from the configuration information and applied; the configuration information of the hardware interface includes IO mapping and hardware interface parameters.

[0017] In one embodiment, the method further comprises:

[0018] In response to a hardware interface change instruction, locating a target hardware interface of the Simulink model;

[0019] Obtaining IO mapping and hardware interface parameters of the target hardware interface;

[0020] Configuration information of the target hardware interface is generated according to the IO mapping and hardware interface parameters of the target hardware interface.

[0021] In one embodiment, the method further comprises:

[0022] After applying the updated configuration information of the hardware interface, the Simulink model is loaded, and simulation is performed based on the Simulink model to obtain simulation results.

[0023] In a second aspect, the present application further provides a simulation system based on a Simulink model, comprising a Simulink model and a hardware device; an IO interface layer is set between the Simulink model and the hardware interface of the hardware device;

[0024] The IO interface layer is used to obtain Simulink model data; convert the Simulink model data into a target format to obtain model data in the target format; apply a preset communication protocol to package the model data in the target format according to the format specified by the preset communication protocol to obtain a model data packet; and send the model data packet to the hardware device.

[0025] In one of the embodiments, the IO interface layer also uses the IO interface layer to obtain hardware data; the IO interface layer converts the hardware data into a target format to obtain hardware data in the target format; the IO interface layer applies a preset communication protocol to package the hardware data in the target format according to the format specified by the preset communication protocol to obtain a hardware data packet; the IO interface layer sends the hardware data packet to the Simulink model.

[0026] In one of the embodiments, the Simulink model is also used to parse and apply updated configuration information of the hardware interface from the configuration information when a change is detected in the configuration information of the hardware interface while running the Simulink model; the configuration information of the hardware interface includes IO mapping and hardware interface parameters.

[0027] In one of the embodiments, the Simulink model is used to locate the target hardware interface of the Simulink model in response to a hardware interface change instruction; obtain the IO mapping and hardware interface parameters of the target hardware interface; and generate configuration information of the target hardware interface based on the IO mapping and hardware interface parameters of the target hardware interface.

[0028] In one of the embodiments, the Simulink model is also used to be loaded and simulated after applying the updated configuration information of the hardware interface to obtain a simulation result.

[0029] In the above-mentioned simulation data processing method and simulation system based on Simulink model, the IO interface layer is a bridge for interaction between Simulink model and external data source or hardware device. It encapsulates the specific implementation details of communication with hardware and provides a unified interface for the model to send and receive data. Through the IO interface layer, the Simulink model can focus more on the implementation of system logic and control strategy without worrying about the underlying communication details. The design of this interface layer can realize the decoupling of the model and the hardware interface, thereby improving the flexibility of the Simulink model. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] Figure 1 is an application environment diagram of a simulation data processing method based on a Simulink model in one embodiment;

[0031] Figure 2 A schematic diagram of a framework of a simulation system based on a Simulink model in an embodiment;

[0032] Figure 3 1 is a flow chart of a simulation data processing method based on a Simulink model in one embodiment;

[0033] Figure 4 is a flow chart of a simulation data processing method based on a Simulink model in another embodiment;

[0034] Figure 5 Schematic diagram of a flow chart of a simulation data processing method based on a Simulink model in another embodiment;

[0035] Figure 6 It is a flowchart of a simulation data processing method based on a Simulink model in yet another embodiment. DETAILED DESCRIPTION

[0036] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0037] A simulation data processing method based on Simulink model, its application environment is as follows Figure 1 As shown, it includes a simulation terminal 101 and a hardware device 102 that is in communication with the simulation terminal 101. The simulation terminal is used to run the Simulink model, and the system architecture can realize hardware-in-the-loop simulation. The application environment can be applied to multiple fields, especially those industries that rely on model design, simulation testing and system control. The following are some possible application areas:

[0038] 1) Automation and control engineering

[0039] Industrial Automation: In the design and testing of production lines and robot control systems, control strategies need to be frequently adjusted and optimized.

[0040] Process control: Process control systems used in industries such as chemical and food processing require highly accurate model simulation.

[0041] 2) Aerospace

[0042] Aircraft design: In the design and testing of aircraft control systems, the accuracy of the model and the real-time performance of the test are crucial.

[0043] Satellite simulation: used to simulate the communication between ground station and satellite, and to test signal processing and communication strategies.

[0044] 3) Automobile industry

[0045] Automotive electronics: In the development and testing of automotive electronic control units (ECUs), rapid iteration of models and simulations are the norm.

[0046] Autonomous driving system: The development and simulation testing of autonomous driving algorithms requires an efficient simulation environment to support complex algorithm verification.

[0047] 4) Electronics and semiconductor fields

[0048] Circuit design simulation: Design verification of electronic circuits and semiconductor devices requires accurate models and fast simulation capabilities.

[0049] Embedded Systems: Used for the development of embedded controllers, which are commonly used in products such as consumer electronics and medical devices.

[0050] 5) Energy industry

[0051] Smart Grid: Simulate the operation and response of the grid in the design of control and management systems for smart grids.

[0052] Renewable energy systems: Simulation of wind and solar power generation systems to optimize energy capture and conversion efficiency.

[0053] 6) Education and research

[0054] Academic research: used for research and teaching in areas such as control theory and machine learning in universities and research institutions.

[0055] Training and Simulation: Provide engineers and students with a hands-on simulation environment for skills training and education.

[0056] 7) Medical and health field

[0057] Medical equipment: used for the design and testing of control systems for medical equipment, such as ventilators, pacemakers, etc.

[0058] Bioengineering simulation: Simulate the dynamic behavior of biological systems for drug development and bioengineering design.

[0059] 8) Service and consulting areas

[0060] Simulation software development: Develop simulation software and tools to provide customized simulation solutions for each of the above fields.

[0061] Technical consulting: Provide technical consulting services to enterprises to help them integrate and optimize the technical solutions for this application.

[0062] The simulation terminal is a terminal that uses the Simulink model, which may be, but is not limited to, various personal computers, laptops, smart phones, and tablet computers.

[0063] In one embodiment, Figure 2As shown, a simulation data processing method based on a Simulink model is provided, which is applied to a simulation system based on a Simulink model. The architecture of the system is as follows Figure 3 As shown in Figure 1, an independent IO interface layer is introduced between the Simulink model and the hardware interface. The IO interface layer is a bridge for interaction between the Simulink model and external data sources or hardware devices.

[0064] like Figure 3 As shown, a simulation data processing method based on a Simulink model can be implemented based on the IO interface layer, and the method includes:

[0065] Step 302: The IO interface layer obtains Simulink model data.

[0066] Step 304: The IO interface layer converts the Simulink model data into a target format to obtain model data in the target format.

[0067] Format conversion can solve compatibility issues between different systems or devices, allowing data to be applied to different hardware devices.

[0068] Step 306: The IO interface layer applies a preset communication protocol to package the model data in the target format according to the format specified by the preset communication protocol to obtain a model data packet.

[0069] Specifically, applying the communication protocol includes setting communication parameters (such as IP address, port number, baud rate, etc.), defining the data frame format, etc., so that the data can follow the established rules and format during transmission. After applying the communication protocol, the data to be transmitted is packaged according to the format specified by the protocol.

[0070] Step 308: The IO interface layer sends the model data packet to the hardware device.

[0071] The IO interface layer sends the packaged data packets to the hardware device. It is understandable that after receiving the data packet, the hardware device first performs an unpacking operation, that is, parses the header information and data content in the data packet according to the provisions of the communication protocol. Then, the format conversion is performed as needed, and finally, the parsed and converted data is handed over to the upper-layer application for processing.

[0072] In this embodiment, the IO interface layer is a bridge for interaction between the Simulink model and external data sources or hardware devices. It encapsulates the specific implementation details of communicating with the hardware and provides a unified interface for the model to send and receive data. Through the IO interface layer, the Simulink model can focus more on the implementation of system logic and control strategies without having to worry about the underlying communication details. The design of this interface layer can achieve the decoupling of the model from the hardware interface, thereby improving the flexibility of the Simulink model.

[0073] In another embodiment, Figure 4 As shown, the IO interface layer also implements the following methods:

[0074] Step 402: The IO interface layer obtains hardware data.

[0075] Step 404: The IO interface layer converts the hardware data into a target format to obtain hardware data in the target format.

[0076] Step 406: The IO interface layer applies a preset communication protocol to package the hardware data in the target format according to a format specified by the preset communication protocol to obtain a hardware data packet.

[0077] Step 408: The IO interface layer sends the hardware data packet to the Simulink model.

[0078] In this embodiment, the IO interface layer processes the hardware data sent by the hardware device into a hardware data packet, and then sends it to the Simulink model.

[0079] It is understandable that after receiving the data packet, the Simulink model first performs an unpacking operation, that is, parses the header information and data content in the data packet according to the provisions of the communication protocol, then performs format conversion as needed, and then processes the parsed and converted data.

[0080] pass Figure 3 and Figure 4 , it can be seen that in this embodiment, by introducing an independent IO interface layer between the Simulink model and the hardware interface, the model data sent by the Simulink model to the hardware device, and the hardware data sent by the hardware device to the Simulink model, are all sent to the opposite side after format conversion, application of communication protocol and data packaging at the IO interface layer. In this way, the IO interface layer model provides a unified interface to send and receive data, which encapsulates the specific implementation details of communicating with the hardware. The Simulink model can focus more on the implementation of system logic and control strategies without having to worry about the underlying communication details. The design of this interface layer can achieve the decoupling of the model and the hardware interface, thereby improving the flexibility of the Simulink model.

[0081] In the prior art, parameter adjustment and configuration update usually require model modification or recompilation, which makes it impossible to achieve dynamic adjustment at runtime, limiting the real-time adaptability of the system.

[0082] To address this problem, in this embodiment, the simulation data processing method based on the Simulink model also includes: when it is monitored that the configuration information of the hardware interface changes while running the Simulink model, the updated configuration information of the hardware interface is parsed from the configuration information and applied; the configuration information of the hardware interface includes IO mapping and hardware interface parameters.

[0083] Among them, hardware interface configuration is a key step in connecting the Simulink model with external hardware devices (such as sensors, actuators, etc.). It defines the communication protocol, parameter settings, and data transmission methods between the Simulink model and the hardware to ensure accurate data transmission and correct control of the equipment during the simulation process.

[0084] The hardware interface parameters include the data type, name, sampling rate and other parameters of the hardware interface.

[0085] Specifically, IO mapping is the process of matching the signals (such as input and output signals) in the Simulink model with the IO ports of the actual hardware device. It ensures that the signals in the simulation model can be accurately mapped to the corresponding ports of the hardware device, thereby realizing bidirectional data transmission.

[0086] In this embodiment, when the Simulink model is run, the configuration information of the hardware interface can be dynamically parsed to obtain updated interface configuration information and apply it.

[0087] Specifically, Figure 5 As shown, dynamic configuration is achieved through the following methods:

[0088] Step 502: In response to a hardware interface change instruction, locate a target hardware interface of the Simulink model.

[0089] Specifically, open the Simulink model and locate the interface that needs to be modified.

[0090] Step 504: Obtain the IO mapping and hardware interface parameters of the target hardware interface.

[0091] Specifically, open the interface properties dialog box, in which you can modify the interface name, data type, dimension and other parameters, as well as the configuration of the input / output port (Inport / Outport).

[0092] Step 506: Generate configuration information of the target hardware interface according to the IO mapping and hardware interface parameters of the target hardware interface.

[0093] In the prior art, when the Simulink model uses S-Function to encapsulate the hardware interface, each time the model is changed, the S-Function code needs to be rewritten, which increases the development workload. After the model is changed, RTW needs to be used to regenerate the code and compile the entire system. This process usually takes several minutes, affecting development efficiency. When the hardware interface changes, the model structure often needs to be significantly modified, which makes it difficult to adapt to the rapidly changing hardware environment.

[0094] In this embodiment, Figure 6 As shown, the process of changing the hardware interface of this application includes:

[0095] Step 602: In response to a hardware interface change instruction, locate a target hardware interface of the Simulink model.

[0096] Step 604: Obtain the IO mapping and hardware interface parameters of the target hardware interface.

[0097] Step 606: Generate configuration information of the target hardware interface according to the IO mapping and hardware interface parameters of the target hardware interface.

[0098] Step 608: When the configuration information of the hardware interface is detected to have changed while the Simulink model is running, the updated configuration information of the hardware interface is parsed from the configuration information and applied.

[0099] Step 610: After applying the updated configuration information of the hardware interface, load the Simulink model, and perform simulation based on the Simulink model to obtain simulation results.

[0100] By introducing the IO interface layer and dynamic configuration mechanism, there is no need to modify the Simulink model when the hardware interface changes. This directly solves the problem of frequent model modifications in traditional methods and greatly reduces development time. For example, in traditional methods, each hardware interface change may take 1-2 days to modify and verify the model. Using the method of this application, only the configuration file needs to be updated, which can shorten this process to a few hours.

[0101] The simulation data processing method based on the Simulink model of the present application has the following effects:

[0102] 1. Improve development efficiency

[0103] This application introduces an IO interface layer and a dynamic configuration mechanism, so that there is no need to modify the Simulink model when the hardware interface changes. This directly solves the problem of frequent model modifications in traditional methods and greatly reduces development time. For example, in traditional methods, each hardware interface change may take 1-2 days to modify and verify the model. Using the method of this application, only the configuration file needs to be updated, which can shorten this process to a few hours.

[0104] 2. Reduce system compilation time

[0105] Since the model structure remains unchanged, this application avoids frequent system recompilation. In traditional methods, each compilation after a model modification may take 1-2 minutes. For large projects, the cumulative time savings may reach hours or even days.

[0106] 3. System flexibility

[0107] The design of dynamic configuration mechanism and standardized interface layer enables the system to quickly adapt to different hardware platforms. This flexibility enables the same simulation model to be quickly deployed in different hardware environments, greatly improving the reusability of the system.

[0108] 4. Improve real-time performance

[0109] Through the optimized IO interface layer and the lightweight standardized interface layer, this application improves the interaction efficiency between the simulation system and the hardware. Experimental data shows that compared with the traditional method, the data exchange delay can be reduced by 20%-30%, thus better meeting the needs of real-time simulation.

[0110] 5. Promote collaborative development

[0111] The decoupling of the model and hardware interface allows model developers and hardware engineers to work in parallel. This collaborative development model can shorten the project cycle by about 25% and significantly improve team efficiency.

[0112] 6. Simplify the debugging process of complex systems

[0113] The graphical parameter adjustment interface introduced in this application greatly simplifies the online parameter adjustment process of complex systems. Users can intuitively adjust parameters and observe system responses in real time, which is difficult to achieve with traditional methods. Practice has shown that this can shorten the debugging time by about 40%.

[0114] 7. Improve the reliability of the simulation system

[0115] Since the frequency of manual model modification is reduced, the present application reduces the risk of system failures caused by human errors. According to project statistics, after using this method, the system failure rate caused by model errors is reduced by about 50%.

[0116] In summary, this application effectively solves the efficiency, flexibility and reliability issues in traditional Simulink semi-physical simulation through an innovative IO Interface framework. It not only significantly improves development efficiency, but also enhances the adaptability and scalability of the system, providing an efficient and reliable solution for the simulation development of complex systems. These improvements are of great significance to product development and testing in high-tech fields such as aerospace, automotive electronics, etc., which can accelerate the innovation cycle, improve product quality, and ultimately enhance the competitiveness of enterprises.

[0117] The simulation data processing method based on Simulink model in this application solves the problems of model modification difficulty, long compilation time, poor flexibility and so on in the prior art, and significantly improves the development efficiency and applicability of semi-physical simulation system. Through this solution, an efficient, flexible and reliable semi-physical simulation solution can be provided for the development of complex systems in the fields of aerospace, automobile, robotics, etc.

[0118] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0119] Based on the same inventive concept, the embodiment of the present application further provides a simulation system based on a Simulink model, characterized in that it includes a Simulink model and a hardware device; an IO interface layer is set between the Simulink model and the hardware interface of the hardware device;

[0120] The IO interface layer is used to obtain Simulink model data; convert the Simulink model data into a target format to obtain model data in the target format; apply a preset communication protocol to package the model data in the target format according to the format specified by the preset communication protocol to obtain a model data packet; and send the model data packet to the hardware device.

[0121] In one of the embodiments, the IO interface layer also uses the IO interface layer to obtain hardware data; the IO interface layer converts the hardware data into a target format to obtain hardware data in the target format; the IO interface layer applies a preset communication protocol to package the hardware data in the target format according to the format specified by the preset communication protocol to obtain a hardware data packet; the IO interface layer sends the hardware data packet to the Simulink model.

[0122] In one of the embodiments, the Simulink model is also used to parse and apply updated configuration information of the hardware interface from the configuration information when a change is detected in the configuration information of the hardware interface while running the Simulink model; the configuration information of the hardware interface includes IO mapping and hardware interface parameters.

[0123] In one of the embodiments, the Simulink model is used to locate the target hardware interface of the Simulink model in response to a hardware interface change instruction; obtain the IO mapping and hardware interface parameters of the target hardware interface; and generate configuration information of the target hardware interface based on the IO mapping and hardware interface parameters of the target hardware interface.

[0124] In one of the embodiments, the Simulink model is also used to be loaded and simulated after applying the updated configuration information of the hardware interface to obtain a simulation result.

[0125] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0126] The technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0127] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A simulation data processing method based on Simulink model, characterized in that: The method comprises: The IO interface layer obtains Simulink model data; the IO interface layer is arranged between the Simulink model and the hardware interface of the hardware device; The IO interface layer converts the Simulink model data into a target format to obtain model data in the target format; The IO interface layer applies a preset communication protocol to package the model data in the target format according to the format specified by the preset communication protocol to obtain a model data packet; The IO interface layer sends the model data packet to the hardware device.

2. The simulation data processing method based on the Simulink model according to claim 1, characterized in that: The method further comprises: The IO interface layer obtains hardware data; The IO interface layer converts the hardware data into a target format to obtain hardware data in the target format; The IO interface layer applies a preset communication protocol to package the hardware data in the target format according to the format specified by the preset communication protocol to obtain a hardware data packet; The IO interface layer sends the hardware data packet to the Simulink model.

3. The simulation data processing method based on the Simulink model according to claim 1 or 2, characterized in that: The method further comprises: When the configuration information of the hardware interface is monitored to change while running the Simulink model, the updated configuration information of the hardware interface is parsed from the configuration information and applied; the configuration information of the hardware interface includes IO mapping and hardware interface parameters.

4. The simulation data processing method based on the Simulink model according to claim 3, characterized in that: The method further comprises: In response to a hardware interface change instruction, locating a target hardware interface of the Simulink model; Obtaining IO mapping and hardware interface parameters of the target hardware interface; Configuration information of the target hardware interface is generated according to the IO mapping and hardware interface parameters of the target hardware interface.

5. The method for processing simulation data based on Simulink model according to claim 4, characterized in that: The method further comprises: After applying the updated configuration information of the hardware interface, the Simulink model is loaded, and simulation is performed based on the Simulink model to obtain simulation results.

6. A simulation system based on a Simulink model, characterized in that: Comprising a Simulink model and a hardware device; an IO interface layer is set between the Simulink model and the hardware interface of the hardware device; The IO interface layer is used to obtain Simulink model data; convert the Simulink model data into a target format to obtain model data in the target format; Applying a preset communication protocol, the model data in the target format is packaged in a format specified by the preset communication protocol to obtain a model data packet; and the model data packet is sent to the hardware device.

7. The simulation system based on the Simulink model according to claim 6, characterized in that: The IO interface layer also uses the IO interface layer to obtain hardware data; The IO interface layer converts the hardware data into a target format to obtain hardware data in the target format; The IO interface layer applies a preset communication protocol to package the hardware data in the target format according to the format specified by the preset communication protocol to obtain a hardware data packet; The IO interface layer sends the hardware data packet to the Simulink model.

8. The simulation system based on Simulink model according to claim 6 or 7, characterized in that: The Simulink model is also used to parse and apply the updated configuration information of the hardware interface from the configuration information when the configuration information of the hardware interface is monitored to change during the operation of the Simulink model; the configuration information of the hardware interface includes IO mapping and hardware interface parameters.

9. The simulation system based on the Simulink model according to claim 8, characterized in that: The Simulink model is used to locate the target hardware interface of the Simulink model in response to a hardware interface change instruction; obtain the IO mapping and hardware interface parameters of the target hardware interface; and generate configuration information of the target hardware interface according to the IO mapping and hardware interface parameters of the target hardware interface.

10. The simulation system based on Simulink model according to claim 9, characterized in that: The Simulink model is also used to be loaded and simulated after applying the updated configuration information of the hardware interface to obtain simulation results.