CN111444053B - Variable excitation method and device of electronic system - Google Patents

Variable excitation method and device of electronic system Download PDF

Info

Publication number
CN111444053B
CN111444053B CN202010232001.4A CN202010232001A CN111444053B CN 111444053 B CN111444053 B CN 111444053B CN 202010232001 A CN202010232001 A CN 202010232001A CN 111444053 B CN111444053 B CN 111444053B
Authority
CN
China
Prior art keywords
variable
interaction
model
target
data source
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
CN202010232001.4A
Other languages
Chinese (zh)
Other versions
CN111444053A (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.)
Beijing Runke General Technology Co Ltd
Original Assignee
Beijing Runke General Technology 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 Beijing Runke General Technology Co Ltd filed Critical Beijing Runke General Technology Co Ltd
Priority to CN202010232001.4A priority Critical patent/CN111444053B/en
Publication of CN111444053A publication Critical patent/CN111444053A/en
Application granted granted Critical
Publication of CN111444053B publication Critical patent/CN111444053B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2247Verification or detection of system hardware configuration
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/26Functional testing
    • G06F11/261Functional testing by simulating additional hardware, e.g. fault simulation

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention provides a variable excitation method and a variable excitation device of an electronic system, which are used for packaging a variable interaction library through a shared memory technology, and can perform communication interaction based on the variable interaction library when each subsystem model is simulated in real time. In the simulation verification stage, the data source of the interaction variable can be adjusted through the first identification in the data structure of the interaction variable, so that dynamic variable excitation is realized, when the variable is excited, the output of the original simulation model of the interaction variable is invalid, and the output of the original simulation model can be recovered after the variable excitation is finished, so that the model logic can be rapidly and dynamically verified.

Description

Variable excitation method and device of electronic system
Technical Field
The invention relates to the technical field of electronic system simulation verification, in particular to a variable excitation method and device of an electronic system.
Background
When an electronic system is researched and developed, all subsystems of the electronic system are independently developed, and a mathematical model is designed and then verified. And after the model verification of each subsystem is completed, entering a full-digital combined real-time simulation verification stage.
In order to verify the model logic, in the dynamic simulation process, a user needs to adjust the real-time values of certain interaction variables among the models by modifying the models according to the state during simulation, and then recovers the models after verification is completed to continue the previous simulation test.
However, when the electronic system is combined with real-time simulation verification, the number of involved interactive variables reaches thousands, the model is repeatedly modified, and the workload is large and the time is long.
Disclosure of Invention
In view of the above, the present invention provides a method and an apparatus for variable excitation of an electronic system. The technical scheme is as follows:
a variable excitation method of an electronic system is provided with a shared memory, a variable interaction library of the electronic system is packaged in the shared memory, the variable interaction library comprises a data structure of interaction variables among subsystem models in the electronic system, the data structure of the interaction variables at least comprises a first identification of a data source for representing the interaction variables and variable values of the interaction variables, and the variable interaction library is a basis of communication interaction of the subsystem models in the electronic system, and the variable excitation method comprises the following steps:
determining a data structure of a target interaction variable between a first subsystem model and a second subsystem model in the variable interaction library, wherein the target interaction variable is an output variable of the first subsystem model and an input variable of the second subsystem model;
identifying a data source characterized by a first identification of the target interaction variable;
if the data source represented by the first identification of the target interaction variable is an excitation data source, updating the value of the target excitation data source corresponding to the target interaction variable as the variable value of the target interaction variable into the variable interaction library;
and if the data source represented by the first identification of the target interaction variable is a simulation model data source, updating the output numerical value of the first sub-system model aiming at the target interaction variable as the variable value of the target interaction variable into the variable interaction library.
Optionally, the variable excitation method further includes:
if the data source represented by the first identification of the target interaction variable is an excitation data source, controlling the first subsystem model to be in an output stop state;
and if the data source represented by the first identifier of the target interaction variable is a simulation model data source, controlling the first sub-system model to be in an output starting state, and executing the step of updating the output numerical value of the first sub-system model aiming at the target interaction variable as the variable value of the target interaction variable into the variable interaction library.
Optionally, the data structure of the interaction variable further includes a second identifier characterizing the update times of the interaction variable, and the variable excitation method further includes:
acquiring two second identifications, which are read when the second subsystem model is in continuous two-time communication interaction with the first subsystem model and aim at the target interaction variable, wherein the second identifications are read once when the second subsystem model is in communication interaction with the first subsystem model each time;
and monitoring the updated state of the target interaction variable in the variable interaction library by comparing the two second identifications read by the second subsystem model.
Optionally, the variable excitation method further includes:
and under the condition that the output of the first sub-system model is abnormal, acquiring a pre-recorded numerical value aiming at the target interaction variable, and updating the recorded numerical value of the target interaction variable into the variable interaction library as the variable value of the target interaction variable.
Optionally, the determining, in the variable interaction library, a data structure of a target interaction variable between the first subsystem model and the second subsystem model includes:
and determining the data structure of the target interaction variable in the variable interaction library through the target memory offset address of the target interaction variable.
A variable excitation device of an electronic system, wherein a shared memory is arranged in the electronic system, a variable interaction library of the electronic system is packaged in the shared memory, the variable interaction library comprises a data structure of interaction variables among subsystem models in the electronic system, the data structure of the interaction variables at least comprises a first identification of a data source for representing the interaction variables and variable values of the interaction variables, and the variable interaction library is a basis of communication interaction of the subsystem models in the electronic system, and the variable excitation device comprises:
the determining module is used for determining a data structure of a target interaction variable between a first subsystem model and a second subsystem model in the variable interaction library, wherein the target interaction variable is an output variable of the first subsystem model and an input variable of the second subsystem model;
the identification module is used for identifying a data source represented by the first identification of the target interaction variable;
the updating module is used for updating the value of the target excitation data source corresponding to the target interaction variable into the variable interaction library as the variable value of the target interaction variable if the data source represented by the first identifier of the target interaction variable is the excitation data source; and if the data source represented by the first identification of the target interaction variable is a simulation model data source, updating the output numerical value of the first sub-system model aiming at the target interaction variable as the variable value of the target interaction variable into the variable interaction library.
Optionally, the update module is further configured to:
if the data source represented by the first identification of the target interaction variable is an excitation data source, controlling the first subsystem model to be in an output stop state; and if the data source represented by the first identifier of the target interaction variable is a simulation model data source, controlling the first sub-system model to be in an output starting state, and executing the step of updating the output numerical value of the first sub-system model aiming at the target interaction variable as the variable value of the target interaction variable into the variable interaction library.
Optionally, the data structure of the interaction variable further includes a second identifier indicating the update times of the interaction variable, and the update module is further configured to:
acquiring two second identifications, which are read when the second subsystem model is in continuous two-time communication interaction with the first subsystem model and aim at the target interaction variable, wherein the second identifications are read once when the second subsystem model is in communication interaction with the first subsystem model each time; and monitoring the updated state of the target interaction variable in the variable interaction library by comparing the two second identifications read by the second subsystem model.
Optionally, the apparatus further comprises:
and the unified loading module is used for acquiring a pre-recorded numerical value aiming at the target interaction variable under the condition that the output of the first sub-system model is abnormal, and updating the recorded numerical value of the target interaction variable into the variable interaction library as the variable value of the target interaction variable.
Optionally, the interactive variable has a unique memory offset address in the shared memory, and the determining module is specifically configured to:
and determining the data structure of the target interaction variable in the variable interaction library through the target memory offset address of the target interaction variable.
According to the variable excitation method and device of the electronic system, the variable interaction library is packaged through the shared memory technology, and communication interaction can be carried out based on the variable interaction library when each subsystem model is simulated in real time. In the simulation verification stage, the data source of the interaction variable can be adjusted through the first identification in the data structure of the interaction variable, so that dynamic variable excitation is realized, when the variable is excited, the output of the original simulation model of the interaction variable is invalid, and the output of the original simulation model can be recovered after the variable excitation is finished, so that the model logic can be rapidly and dynamically verified.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the prior art descriptions will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a flow chart of a method for variable excitation of an electronic system according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of an aircraft electronic system according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of another architecture of an aircraft electronic system according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of another architecture of an aircraft electronic system according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a variable excitation device of an electronic system according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the present invention, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of another identical element in a process, method, article, or apparatus that comprises the element.
At present, when an electronic system is researched and developed, all subsystems of the electronic system are independently developed, and a mathematical model is designed and then verified. And after the model verification of each subsystem is completed, entering a full-digital combined real-time simulation verification stage.
When the all-digital combined real-time simulation verification is carried out, due to real-time simulation, the subsystem models need to exchange simulation data quickly and in real time, and at the present stage, communication is carried out mostly based on an Ethernet or an optical fiber reflection memory card.
In order to verify the model logic, in the dynamic simulation process, a user needs to adjust the real-time values of certain interaction variables among the models by modifying the models according to the state during simulation, and then recovers the models after verification is completed to continue the previous simulation test. However, when the electronic system is combined with real-time simulation verification, the number of involved interactive variables reaches thousands, the model is repeatedly modified, and the workload is large and the time is long.
For example, in order to locate a first subsystem model with a problem in logic, a second subsystem model serving as a data source of the first subsystem model needs to be modified to adjust values of some interaction variables between the two subsystem models, the second subsystem model is restored after the first subsystem model is verified, and the repeated modification of the model increases the workload and increases the working time. Further, if the logic of the first sub-system model is abnormal and the data source of the third sub-system model is the first sub-system model, the simulation can be continued until the logic of the first sub-system model is recovered to be normal, the model verification enters a stagnation stage, the model verification and the model verification wait each other, the system verification time is delayed, and the design and verification period of the whole system is prolonged.
In order to solve the above problems, an embodiment of the present invention provides a variable excitation method for an electronic system, where a shared memory is disposed in the electronic system, and a variable interaction library of the electronic system is encapsulated in the shared memory, where the variable interaction library includes a data structure of interaction variables between subsystem models in the electronic system, the data structure of the interaction variables at least includes a first identifier representing a data source of the interaction variables and variable values of the interaction variables, and the variable interaction library is a basis for communication interaction of the subsystem models in the electronic system.
In the embodiment of the invention, a user is supported to use a shared memory technology to package the variable interaction library, a shared memory is established in the electronic system, and a corresponding memory space is allocated to each interaction variable in the variable interaction library in the shared memory. To identify the location of each interactive variable in the shared memory, a unique memory offset address may be assigned to each interactive variable as a unique identifier.
Furthermore, communication interaction can be carried out on the basis of the variable interaction library during real-time simulation of all subsystem models in the electronic system. The following takes an aeronautical and electric system altimeter model and a flight control system flight control computer model as an example:
and the altimeter model of the avionic system inputs the altitude data into the flight control computer model of the flight control system. In the simulation verification stage, if the data source of the interaction variable height of the avionics system altimeter model and the flight control system flight control computer model is set as a simulation model data source, namely the avionics system altimeter model, the avionics system altimeter model can write real-time height data into the memory space of the interaction variable height, and the flight control system flight control computer model can read the real-time height data from the memory space of the interaction variable height.
And if the data source of the interaction variable height of the avionics system altimeter model and the flight control system flight control computer model is set as an excitation data source, the avionics system altimeter model cannot write real-time altitude data into the memory space of the interaction variable height, the target excitation data source specified by a user can write the real-time altitude data into the memory space of the interaction variable height, and the flight control system flight control computer model can read the real-time altitude data from the memory space of the interaction variable height.
It should be noted that, in the embodiment of the present invention, the data structure of the interaction variable characterizes the data source of the interaction variable by a first identifier, and the value of the first identifier is the shaping data, such as characterizing the simulation model data source by the identifier "0" and characterizing the excitation data source by the identifier "1". The user dynamically adjusts the data source of the interaction variable by setting a unique value for the first identifier, namely, only one of the identifier "0" and the identifier "1" exists.
Of course, different priorities may also be set for different data sources, and in the embodiment of the present invention, the priority of the excitation data source is higher than that of the simulation model data source. That is, the first identifier of the interaction variable may have both the identifier "0" and the identifier "1", but since the excitation data source has a higher priority, the data source characterized by the first identifier can only be the excitation data source if the identifier "0" and the identifier "1" are present at the same time. If the user wants to set the simulation model data source, the identifier "1" in the first identifier needs to be removed, and only the identifier "0" is reserved to realize the specified simulation model data source. Of course, a specific stimulus data source may also be implemented if only the identification "1" is present.
In addition, according to the idea provided by the present invention, the user may also set other data sources for the interaction variable, and the first identifier used to characterize the other data sources may adopt a value different from the simulation model data source and the excitation data source, for example, the identifier "2" is used to characterize the other data sources with higher priority, which is not limited in this embodiment of the present invention.
Referring to a method flowchart of a variable excitation method of an electronic system shown in fig. 1, a variable excitation method of an electronic system provided by an embodiment of the present invention includes the following steps:
and S10, determining a data structure of a target interaction variable between the first subsystem model and the second subsystem model in the variable interaction library, wherein the target interaction variable is an output variable of the first subsystem model and an input variable of the second subsystem model.
In the embodiment of the present invention, the first subsystem model is taken as an avionics system altimeter model, and the second subsystem model is taken as a flight control computer model of a flight control system. The height data of the avionic system altimeter model is input into the flight control computer model of the flight control system, so that the interactive variable height is a target interactive variable between the first subsystem model and the second subsystem model.
The position of the interactive variable 'height' in the shared memory can be located by traversing the variable interactive library, so that a data structure of the interactive variable 'height' is determined, and the data structure comprises a first identification of the interactive variable 'height' and a variable value.
Of course, if a unique memory offset address has been previously allocated in the shared memory for the interaction variable as the unique identifier, the data structure of the interaction variable "height" may be directly determined in the variable interaction library based directly on the target memory offset address of the interaction variable "height".
And S20, identifying the data source characterized by the first identification of the target interaction variable.
In the embodiment of the invention, aiming at different application scenes, a user can adaptively adjust the value of the first identifier of the target interaction variable. As described above, the simulation model data source may be characterized by a single identification of "0" and the excitation data source may be characterized by a single identification of "1". Different priorities are set for different data sources, the data source represented by the first identifier with the identifier '0' and the identifier '1' or with the identifier '1' is an excitation data source, and the data source represented by the first identifier with the identifier '0' is a simulation model data source.
The description is continued by taking the first sub-system model as an avionics system altimeter model and the second sub-system model as a flight control computer model of the flight control system as an example. The data source to which the user has set can be determined by identifying the value of the first identifier of the interaction variable "height".
And S30, if the data source represented by the first identification of the target interaction variable is an excitation data source, updating the value of the target excitation data source corresponding to the target interaction variable as the variable value of the target interaction variable into a variable interaction library.
In the embodiment of the invention, a user can set an excitation data source, namely a target excitation data source, for a target interaction variable in advance, and when the data source of the target interaction variable is set as the excitation data source, the variable value of the target interaction variable can be obtained from the target excitation data source with dynamic change data, so as to be updated into the data structure of the target interaction variable in the variable interaction library.
The description continues by taking the first subsystem model as an avionics system altimeter model and the second subsystem model as a flight control computer model of the flight control system as an example. If the data source of the interactive variable height set by the user is an excitation data source for outputting waveform data, the excitation data source can update the real-time dynamic waveform data to the data structure of the interactive variable height, namely, write the variable value of the interactive variable height. At this time, the flight control system flight control computer model can read real-time dynamic waveform data.
And S40, if the data source represented by the first identification of the target interaction variable is a simulation model data source, updating the output numerical value of the first sub-system model aiming at the target interaction variable into a variable interaction library as the variable value of the target interaction variable.
In the embodiment of the invention, when the data source of the target interaction variable is set as the data source of the simulation model, the variable value of the target interaction variable can be obtained from the first subsystem model, so as to be updated to the data structure of the target interaction variable in the variable interaction library.
The description is continued by taking the first sub-system model as an avionics system altimeter model and the second sub-system model as a flight control computer model of the flight control system as an example. If the data source of the interactive variable 'height' set by the user is the avionics system altimeter model, the avionics system altimeter model can update the real-time height data output by the avionics system altimeter model to the data structure of the interactive variable 'height', namely written into the variable value of the interactive variable 'height'. At this time, the flight control system flight control computer model can read real-time height data.
In some other embodiments, to reduce the data processing amount of the model, the variable excitation method provided in the embodiments of the present invention further includes the following steps:
if the data source represented by the first identification of the target interaction variable is an excitation data source, controlling the first subsystem model to be in an output stop state;
and if the data source represented by the first identifier of the target interaction variable is the simulation model data source, controlling the first subsystem model to be in an output starting state, and executing the step of updating the output numerical value of the first subsystem model aiming at the target interaction variable as the variable value of the target interaction variable into the variable interaction library in the step S40.
In the embodiment of the invention, the output state of the first subsystem model can be controlled in real time, namely the first subsystem model is controlled to stop outputting when the data source with the set target interaction variable is not the first subsystem model, and the first subsystem model is controlled to start outputting only when the data source with the set target interaction variable is the first subsystem model.
In other embodiments, in order to monitor the update of the variable interaction library, the data structure of the interaction variable in the embodiment of the present invention further includes a second identifier that represents the update times of the interaction variable, and accordingly, the variable excitation method provided in the embodiment of the present invention further includes the following steps:
acquiring two second identifications which are read when a second subsystem model and a first subsystem model are in continuous two-time communication interaction and aim at a target interaction variable, and reading the second identifications once when the second subsystem model is in communication interaction with the first subsystem model each time;
and monitoring the updated state of the target interaction variable in the variable interaction library by comparing the two second identifications read by the second subsystem model.
In the embodiment of the invention, the updating times represented by the second identifier in the data structure of the first subsystem model are increased once each time the target interaction variable of the first subsystem model is updated, and the second identifier is read once each time the second subsystem model is communicated and interacted. Therefore, normally, when the first subsystem model and the second subsystem model perform two consecutive communication interactions, the second subsystem model reads 1 more updates than the first subsystem model.
On the basis, the embodiment of the invention can determine whether the speed of the first subsystem model updating the target interaction variable in the variable interaction library is faster, slower or normal by comparing the two second identifications read by the second subsystem model. Specifically, if the second sub-system model reads the update times which are more than 1 greater than the first sub-system model, it indicates that the first sub-system model updates the target interactive variable at a higher speed, and conversely, if the second sub-system model reads the update times which are equal to the first sub-system model, it indicates that the first sub-system model updates the target interactive variable at a lower speed.
In other embodiments, in order to implement fast setting of the input of the model to a certain state, and thus ensure that when some models fail, other models can continue to perform simple logic verification, the embodiment of the present invention provides a function of uniformly loading parameters, and the variable excitation method provided by the embodiment of the present invention further includes the following steps:
and under the condition that the output of the first sub-system model is abnormal, acquiring a pre-recorded numerical value aiming at the target interaction variable, and updating the recorded numerical value of the target interaction variable into a variable interaction library as a variable value of the target interaction variable.
The description continues by taking the first subsystem model as an avionics system altimeter model and the second subsystem model as a flight control computer model of the flight control system as an example. The height 8000 m, longitude 43, latitude 52 and speed 140 m/s, the simulated airplane can obtain the height data only after flying for a period of time, and when the altimeter model of the avionic system outputting the height data fails, the height data can be directly loaded by the flight control computer model of the flight control system, so that the simulated airplane is directly in the state, and the research, development and verification processes of an airplane electronic system are accelerated.
In order to facilitate understanding of the present invention, the following description will proceed with the first sub-system model being an avionics system altimeter model and the second sub-system model being a flight control computer model of a flight control system.
See fig. 2 for an architectural schematic of an aircraft electronic system. The method comprises the steps that a variable interaction library in a shared memory is shared by an avionic system altimeter model and a flight control system flight control computer model, each memory offset address of the shared memory corresponds to a memory space of an interaction variable, and a data structure of the interaction variable in the memory space is a structure of double identification-variable values, wherein a first identification (namely identification 1) represents a data source of the interaction variable, and a second identification (namely identification 2) represents the updating times of the interaction variable. The data source of the flight control system flight control computer model is divided into a simulation model data source (namely an avionics system altimeter model) and an excitation data source.
And the altimeter model of the avionic system inputs the altitude data into the flight control computer model of the flight control system. After entering the flat flight stage, the altitude data output by the altimeter model of the avionic system basically keeps unchanged, and after finding that the logic of the flight control computer model of the flight control system has a problem, the changed altitude data needs to be input to the flight control computer model of the flight control system.
See fig. 3 for an architectural schematic of an aircraft electronic system. The first identifier of the interaction variable height of the avionics system altimeter model and the flight control system flight control computer model is set to 1, i.e. the data source is set as the stimulus data source. After the excitation data source reads the first mark '1', the real-time dynamic waveform data are written into the variable value of the interactive variable 'height', and the avionic system altimeter model stops outputting after reading the first mark '1'. At this time, the flight control computer model of the flight control system can read real-time dynamic waveform data.
See fig. 4 for an architectural diagram of an aircraft electronic system. After the logic of the flight control computer model is verified, the model needs to be restored to the previous simulation state, the first identifier of the interaction variable height of the avionic system altimeter model and the flight control computer model of the flight control system is set to be 0, namely the data source is set as a simulation model data source (namely the avionic system altimeter model). After the avionic system altimeter model reads the first identifier '0', the real-time altitude data is written into the variable value of the interactive variable 'altitude', and the excitation data source stops outputting after reading the first identifier '0'. At this time, the flight control system flight control computer model can read real-time height data.
In addition, when the flight control system flight control computer model reads the variable value of the interactive variable height every time, the second identification of the interactive variable height is also read, so that the updating times of the interactive variable height are obtained. If the two updating times which are continuously read are the same, the alarm variable data are updated too slowly, otherwise, if the updating times which are read for the second time are more than 1 more than the updating times which are read for the first time, the alarm variable data are updated too quickly.
According to the variable excitation method of the electronic system, the variable interaction library is packaged through the shared memory technology, and communication interaction can be carried out based on the variable interaction library when the subsystem models are simulated in real time. In the simulation verification stage, the data source of the interaction variable can be adjusted through the first identification in the data structure of the interaction variable, so that dynamic variable excitation is realized, when the variable is excited, the output of the original simulation model of the interaction variable is invalid, and the output of the original simulation model can be recovered after the variable excitation is finished, so that the model logic can be rapidly and dynamically verified.
Based on the variable excitation method of the electronic system provided by the embodiment, the embodiment of the invention provides a device for executing the variable excitation method of the electronic system, wherein a shared memory is arranged in the electronic system, a variable interaction library of the electronic system is packaged in the shared memory, the variable interaction library comprises a data structure of interaction variables among subsystem models in the electronic system, the data structure of the interaction variables at least comprises a first identifier of a data source for representing the interaction variables and variable values of the interaction variables, and the variable interaction library is the basis of communication interaction of the subsystem models in the electronic system. The schematic structural diagram of the device is shown in fig. 5, and the device comprises:
the determining module 10 is configured to determine a data structure of a target interaction variable between the first subsystem model and the second subsystem model in the variable interaction library, where the target interaction variable is an output variable of the first subsystem model and an input variable of the second subsystem model.
And the identification module 20 is used for identifying the data source characterized by the first identification of the target interaction variable.
The updating module 30 is configured to, if the data source represented by the first identifier of the target interaction variable is an excitation data source, update the value of the target excitation data source corresponding to the target interaction variable as a variable value of the target interaction variable into the variable interaction library; and if the data source represented by the first identification of the target interaction variable is a simulation model data source, updating the output numerical value of the first subsystem model aiming at the target interaction variable as the variable value of the target interaction variable into a variable interaction library.
Optionally, the updating module 30 is further configured to:
if the data source represented by the first identification of the target interaction variable is an excitation data source, controlling the first subsystem model to be in an output stop state; and if the data source represented by the first identification of the target interaction variable is a simulation model data source, controlling the first subsystem model to be in an output starting state, and executing the step of updating the output numerical value of the first subsystem model aiming at the target interaction variable as the variable value of the target interaction variable into the variable interaction library.
Optionally, the data structure of the interactive variable further includes a second identifier characterizing the update times of the interactive variable, and the update module 30 is further configured to:
acquiring two second identifications which are read when a second subsystem model and a first subsystem model are in continuous two-time communication interaction and aim at a target interaction variable, and reading the second identifications once when the second subsystem model is in communication interaction with the first subsystem model each time; and monitoring the updated state of the target interaction variable in the variable interaction library by comparing the two second identifications read by the second subsystem model.
Optionally, the variable excitation apparatus for an electronic system provided in an embodiment of the present invention further includes:
and the unified loading module is used for acquiring a pre-recorded numerical value aiming at the target interaction variable under the condition that the output of the first sub-system model is abnormal, and updating the recorded numerical value of the target interaction variable into the variable interaction library as the variable value of the target interaction variable.
Optionally, the interaction variable has a unique memory offset address in the shared memory, and the determining module 10 is specifically configured to:
determining a data structure of a target interaction variable in a variable interaction library through a target memory offset address of the target interaction variable
The variable excitation device of the electronic system provided by the embodiment of the invention encapsulates the variable interaction library through the shared memory technology, and can perform communication interaction based on the variable interaction library when each subsystem model is simulated in real time. In the simulation verification stage, the data source of the interaction variable can be adjusted through the first identification in the data structure of the interaction variable, so that dynamic variable excitation is realized, when the variable is excited, the output of the original simulation model of the interaction variable is invalid, and the output of the original simulation model can be recovered after the variable excitation is finished, so that the model logic can be rapidly and dynamically verified.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, the system or system embodiments are substantially similar to the method embodiments and therefore are described in a relatively simple manner, and reference may be made to some of the descriptions of the method embodiments for related points. The above-described system and system embodiments are only illustrative, wherein the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (10)

1. A variable excitation method of an electronic system is characterized in that a shared memory is arranged in the electronic system, a variable interaction library of the electronic system is packaged in the shared memory, the variable interaction library comprises a data structure of interaction variables among subsystem models in the electronic system, the data structure of the interaction variables at least comprises a first identification of a data source for representing the interaction variables and variable values of the interaction variables, and the variable interaction library is a basis of communication interaction of the subsystem models in the electronic system, and the variable excitation method comprises the following steps:
determining a data structure of a target interaction variable between a first subsystem model and a second subsystem model in the variable interaction library, wherein the target interaction variable is an output variable of the first subsystem model and an input variable of the second subsystem model;
identifying a data source characterized by a first identification of the target interaction variable;
if the data source represented by the first identifier of the target interaction variable is an excitation data source, updating the value of the target excitation data source corresponding to the target interaction variable into the variable interaction library as the variable value of the target interaction variable;
and if the data source represented by the first identification of the target interaction variable is a simulation model data source, updating the output numerical value of the first sub-system model aiming at the target interaction variable as the variable value of the target interaction variable into the variable interaction library.
2. The method of claim 1, wherein the variable excitation method further comprises:
if the data source represented by the first identification of the target interaction variable is an excitation data source, controlling the first subsystem model to be in an output stop state;
and if the data source represented by the first identifier of the target interaction variable is a simulation model data source, controlling the first subsystem model to be in an output starting state, and executing the step of updating the output numerical value of the first subsystem model aiming at the target interaction variable as the variable value of the target interaction variable into the variable interaction library.
3. The method of claim 1, wherein the data structure of the interaction variable further contains a second identifier characterizing a number of updates of the interaction variable, and wherein the variable actuation method further comprises:
acquiring two second identifications, which are read when the second subsystem model is in continuous two-time communication interaction with the first subsystem model and aim at the target interaction variable, wherein the second identifications are read once when the second subsystem model is in communication interaction with the first subsystem model each time;
and monitoring the updated state of the target interaction variable in the variable interaction library by comparing the two second identifications read by the second subsystem model.
4. The method of claim 1, wherein the variable excitation method further comprises:
and under the condition that the output of the first sub-system model is abnormal, acquiring a pre-recorded numerical value aiming at the target interaction variable, and updating the recorded numerical value of the target interaction variable into the variable interaction library as the variable value of the target interaction variable.
5. The method of claim 1, wherein the interactive variable has a unique memory offset address in the shared memory, and wherein determining a data structure of a target interactive variable between a first subsystem model and a second subsystem model in the variable interaction library comprises:
and determining the data structure of the target interaction variable in the variable interaction library through the target memory offset address of the target interaction variable.
6. A variable excitation device of an electronic system, wherein a shared memory is disposed in the electronic system, a variable interaction library of the electronic system is packaged in the shared memory, the variable interaction library includes a data structure of an interaction variable between system models in the electronic system, the data structure of the interaction variable at least includes a first identifier representing a data source of the interaction variable and a variable value of the interaction variable, the variable interaction library is a basis of communication interaction between the system models in the electronic system, the variable excitation device includes:
the determining module is used for determining a data structure of a target interaction variable between a first branch system model and a second branch system model in the variable interaction library, wherein the target interaction variable is an output variable of the first branch system model and an input variable of the second branch system model;
the identification module is used for identifying a data source represented by the first identification of the target interaction variable;
the updating module is used for updating the value of the target excitation data source corresponding to the target interaction variable into the variable interaction library as the variable value of the target interaction variable if the data source represented by the first identifier of the target interaction variable is the excitation data source; and if the data source represented by the first identification of the target interaction variable is a simulation model data source, updating the output numerical value of the first sub-system model aiming at the target interaction variable as the variable value of the target interaction variable into the variable interaction library.
7. The apparatus of claim 6, wherein the update module is further configured to:
if the data source represented by the first identification of the target interaction variable is an excitation data source, controlling the first subsystem model to be in an output stop state; and if the data source represented by the first identifier of the target interaction variable is a simulation model data source, controlling the first sub-system model to be in an output starting state, and executing the step of updating the output numerical value of the first sub-system model aiming at the target interaction variable as the variable value of the target interaction variable into the variable interaction library.
8. The apparatus of claim 6, wherein the data structure of the interaction variable further comprises a second identifier indicating a number of updates to the interaction variable, and wherein the update module is further configured to:
acquiring two second identifications, which are read when the second subsystem model is in continuous two-time communication interaction with the first subsystem model and aim at the target interaction variable, wherein the second identifications are read once when the second subsystem model is in communication interaction with the first subsystem model each time; and monitoring the updated state of the target interaction variable in the variable interaction library by comparing the two second identifications read by the second subsystem model.
9. The apparatus of claim 6, further comprising:
and the unified loading module is used for acquiring a pre-recorded numerical value aiming at the target interaction variable under the condition that the output of the first sub-system model is abnormal, and updating the recorded numerical value of the target interaction variable into the variable interaction library as the variable value of the target interaction variable.
10. The apparatus of claim 6, wherein the interaction variable has a unique memory offset address in the shared memory, and wherein the determining module is specifically configured to:
and determining the data structure of the target interaction variable in the variable interaction library through the target memory offset address of the target interaction variable.
CN202010232001.4A 2020-03-27 2020-03-27 Variable excitation method and device of electronic system Active CN111444053B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010232001.4A CN111444053B (en) 2020-03-27 2020-03-27 Variable excitation method and device of electronic system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010232001.4A CN111444053B (en) 2020-03-27 2020-03-27 Variable excitation method and device of electronic system

Publications (2)

Publication Number Publication Date
CN111444053A CN111444053A (en) 2020-07-24
CN111444053B true CN111444053B (en) 2023-03-24

Family

ID=71654011

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010232001.4A Active CN111444053B (en) 2020-03-27 2020-03-27 Variable excitation method and device of electronic system

Country Status (1)

Country Link
CN (1) CN111444053B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103760439A (en) * 2013-09-24 2014-04-30 中国航空工业集团公司沈阳飞机设计研究所 Automatic test system of avionic system
CN104093172A (en) * 2014-06-25 2014-10-08 中国科学院声学研究所 Terminal collaboration motivating method and device
KR20160077901A (en) * 2014-12-24 2016-07-04 한국항공우주산업 주식회사 The method for realtime simulation and the realtime simulation apparatus
CN109948213A (en) * 2019-03-11 2019-06-28 北京世冠金洋科技发展有限公司 A kind of synergy emulation method and device based on FMI standard

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102016119320A1 (en) * 2016-10-11 2018-04-12 Dspace Digital Signal Processing And Control Engineering Gmbh Method for configuring a real or virtual electronic control unit
US20190156357A1 (en) * 2017-11-22 2019-05-23 Staples, Inc. Advanced computational prediction models for heterogeneous data

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103760439A (en) * 2013-09-24 2014-04-30 中国航空工业集团公司沈阳飞机设计研究所 Automatic test system of avionic system
CN104093172A (en) * 2014-06-25 2014-10-08 中国科学院声学研究所 Terminal collaboration motivating method and device
KR20160077901A (en) * 2014-12-24 2016-07-04 한국항공우주산업 주식회사 The method for realtime simulation and the realtime simulation apparatus
CN109948213A (en) * 2019-03-11 2019-06-28 北京世冠金洋科技发展有限公司 A kind of synergy emulation method and device based on FMI standard

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
Shared-Memory parallelization of consistent particle method for violent wave impact problems;M.Luo 等;《Applied Ocean Research》;20171231;第69卷;第87-99页 *
基于共享内存机制的分布式飞行仿真研究;伍智锋 等;《计算机仿真》;20021230;第19卷(第6期);第18-21页 *
基于双层决策的装备订购多因素激励定价模型与算法;孙胜祥 等;《系统工程与电子技术》;20200221;第42卷(第6期);第1338-1347页 *

Also Published As

Publication number Publication date
CN111444053A (en) 2020-07-24

Similar Documents

Publication Publication Date Title
US11314907B2 (en) Simulation including multiple simulators
US5490266A (en) Process oriented logic simulation having stability checking
EP3042254B1 (en) Systems and methods for virtualizing a programmable logic controller
CN108829409A (en) A kind of distributed system quick deployment method and system
US20210081585A1 (en) Method for event-based simulation of a system
JP2008170998A (en) System and method for turbine control simulation
CN110825409B (en) Parameter management method, electronic device and computer storage medium
CN106873970A (en) The installation method and device of a kind of operating system
CN109032850A (en) Field device debugging system and field device adjustment method
WO2020137566A1 (en) Test environment determination device and test environment determination method
CN111444053B (en) Variable excitation method and device of electronic system
US20180123899A1 (en) Technology agnostic network simulation
US20180123900A1 (en) Scenario driven, technology agnostic network simulation
CN113741924B (en) Application deployment method, system and server
JPH0565892B2 (en)
CN109660310B (en) Clock synchronization method and device, computing equipment and computer storage medium
US20240054002A1 (en) Vehicle-mounted computer, computer execution method, and computer program
EP3936951B1 (en) Control device and software deployment method
EP4036780A1 (en) Electronic control unit timing emulation
CN116157774A (en) Method and system for providing engineering of industrial equipment in cloud computing environment
JP2021039728A (en) System and method for simulating field device in industrial plant
CN111984510B (en) Performance test method and device for dispatching system
JP2012113502A (en) Verification device for semiconductor integrated circuit
US20180323999A1 (en) Method for Configuring Control Units
CN105808318B (en) Information processing method and electronic equipment

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