CN114527733A - Simulation test method and device for electrical control system - Google Patents

Simulation test method and device for electrical control system Download PDF

Info

Publication number
CN114527733A
CN114527733A CN202210167884.4A CN202210167884A CN114527733A CN 114527733 A CN114527733 A CN 114527733A CN 202210167884 A CN202210167884 A CN 202210167884A CN 114527733 A CN114527733 A CN 114527733A
Authority
CN
China
Prior art keywords
target
target event
event
simulation
simulation test
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.)
Pending
Application number
CN202210167884.4A
Other languages
Chinese (zh)
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.)
Shanghai Electric Group Corp
Original Assignee
Shanghai Electric Group Corp
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 Shanghai Electric Group Corp filed Critical Shanghai Electric Group Corp
Priority to CN202210167884.4A priority Critical patent/CN114527733A/en
Publication of CN114527733A publication Critical patent/CN114527733A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B23/00Testing or monitoring of control systems or parts thereof
    • G05B23/02Electric testing or monitoring
    • G05B23/0205Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
    • G05B23/0208Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterized by the configuration of the monitoring system
    • G05B23/0213Modular or universal configuration of the monitoring system, e.g. monitoring system having modules that may be combined to build monitoring program; monitoring system that can be applied to legacy systems; adaptable monitoring system; using different communication protocols
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/24Pc safety
    • G05B2219/24065Real time diagnostics
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention provides a simulation test method and a simulation test device for an electrical control system. The method comprises the following steps: responding to a simulation test instruction of an electrical control system sent by a user, and determining a target state of the electrical control system corresponding to the simulation test instruction, wherein the target state comprises a target event identification; determining a target event corresponding to the target event identifier in the target state by using a corresponding relation between a preset event identifier and an event; and executing the target event through a pre-established simulation model corresponding to the target event to obtain a test result of the target event. Therefore, the target event needing to be subjected to the simulation test can be directly determined through the target state and directly tested, and multiple judgments are not needed. Therefore, the simulation test in the invention is simpler, and the simulation test efficiency of the electrical control system is improved.

Description

Simulation test method and device for electrical control system
Technical Field
The invention relates to the technical field of electrical control, in particular to a simulation test method and device of an electrical control system.
Background
With the continuous development of power electronic technology, the electrical control technology is widely applied in the application fields of micro-grids, motors and the like. The core of the electronic control technology is an electrical control system. Innovations and developments in related technologies for electrical control systems have made electronic control technology penetrate into various industries. The electrical control system has the disadvantages of more and more challenges, more and more complex system and variable operation conditions. The simulation technology and the test technology related to the electrical control system are receiving more and more attention. The efficient simulation test technology of the electrical control system can greatly reduce the physical test verification work and test resources and improve the development progress.
In the prior art, the flow of the simulation test method of the electrical control system is complex, and one state of the electrical control system needs to be judged for many times to determine which simulation test corresponding to a target event is to be executed, so that the efficiency of the simulation test is low.
Disclosure of Invention
The invention provides a simulation test method and a simulation test device for an electrical control system, which are used for improving the simulation test efficiency of the electrical control system.
A first aspect of the present invention provides a simulation test method of an electrical control system, the method comprising:
responding to a simulation test instruction of an electrical control system sent by a user, and determining a target state of the electrical control system corresponding to the simulation test instruction, wherein the target state comprises a target event identification;
determining a target event corresponding to the target event identifier in the target state by using a corresponding relation between a preset event identifier and an event;
and executing the target event through a pre-established simulation model corresponding to the target event to obtain a test result of the target event.
In this embodiment, after a target event is determined by a target event identifier in a target state, the target event is directly executed by a pre-established simulation model corresponding to the target event, so as to obtain a test result of the target event. Therefore, the method in the embodiment can directly determine the target event needing to be subjected to the simulation test through the target state and directly carry out the test, and does not need to carry out judgment for many times. Therefore, the simulation test in the embodiment is simpler, and the simulation test efficiency of the electrical control system is improved.
In one embodiment, the target state further includes a flag bit of a target event;
before the target event is executed through the pre-established simulation model corresponding to the target event to obtain the test result of the target event, the method further includes:
and determining that the flag bit of the target event is a first preset flag bit, wherein the first preset flag bit is used for identifying that the target event needs to be subjected to a simulation test.
In this embodiment, whether the target event needs to be subjected to the simulation test is determined by the flag bit of the target event, so that the accuracy of the simulation test is improved.
In one embodiment, the method further comprises:
and if the flag bit of the target event is determined to be a second preset flag bit, not responding to the simulation test instruction, wherein the second preset flag bit is used for identifying that the target event does not need to be subjected to simulation test.
In this embodiment, whether the target event needs to be subjected to the simulation test is determined by the flag bit of the target event, so that the accuracy of the simulation test is improved.
In one embodiment, if the target state includes a plurality of target event identifiers, and the target state further includes an execution sequence of each target event corresponding to each target event identifier;
the step of executing the target event through a pre-established simulation model corresponding to the target event to obtain a test result of the target event comprises the following steps:
and sequentially executing the target events through the pre-built simulation models corresponding to the target events according to the execution sequence of the target events, and sequentially obtaining the test result of the target events.
In this embodiment, according to the execution sequence of each target event, each target event is sequentially executed through each pre-built simulation model corresponding to each target event, and the test result of each target event is sequentially obtained. So as to further improve the efficiency of the simulation test.
In one embodiment, if the target state includes a plurality of target event identifiers, and the target state does not include an execution sequence of each target event corresponding to each target event identifier;
the step of executing the target event through a pre-established simulation model corresponding to the target event to obtain a test result of the target event comprises the following steps:
judging whether a preset execution sequence of each target event exists or not;
if yes, sequentially executing the target events through preset simulation models corresponding to the target events according to the preset execution sequence of the target events to obtain test results of the target events;
if not, simultaneously executing each target event through each pre-established simulation model corresponding to each target event to obtain the test result of each target event.
In this embodiment, when there is no execution sequence of each target event corresponding to each target event identifier in the target state, it is necessary to determine whether there is a preset execution sequence of each target event, and determine how to perform a simulation test on each target event according to a corresponding situation, so as to further improve the efficiency of the simulation test.
A second aspect of the present invention provides a simulation test apparatus for an electrical control system, the apparatus comprising:
the target state determining module is used for responding to a simulation test instruction of the electrical control system sent by a user and determining a target state of the electrical control system corresponding to the simulation test instruction, wherein the target state comprises a target event identifier;
the target event determining module is used for determining a target event corresponding to the target event identifier in the target state by utilizing the corresponding relation between the preset event identifier and the event;
and the test result determining module is used for executing the target event through a pre-established simulation model corresponding to the target event to obtain a test result of the target event.
In one embodiment, the target state further includes a flag bit of a target event; the device further comprises:
the first judgment module is used for executing the target event through a pre-established simulation model corresponding to the target event, and determining that a flag bit of the target event is a first preset flag bit before a test result of the target event is obtained, wherein the first preset flag bit is used for identifying that the target event needs to be subjected to simulation test.
In one embodiment, the apparatus further comprises:
and the second judgment module is used for not responding to the simulation test instruction if the flag bit of the target event is determined to be a second preset flag bit, wherein the second preset flag bit is used for marking that the target event does not need to be subjected to simulation test.
In one embodiment, if the target state includes a plurality of target event identifiers, and the target state further includes an execution sequence of each target event corresponding to each target event identifier;
the test result determining module is specifically configured to:
and sequentially executing the target events through the pre-built simulation models corresponding to the target events according to the execution sequence of the target events, and sequentially obtaining the test result of the target events.
In one embodiment, if the target state includes a plurality of target event identifiers, and the target state does not include an execution sequence of each target event corresponding to each target event identifier;
the test result determining module is specifically configured to:
judging whether a preset execution sequence of each target event exists or not;
if so, sequentially executing the target events through preset simulation models corresponding to the target events according to the preset execution sequence of the target events to obtain test results of the target events;
if not, simultaneously executing each target event through each pre-established simulation model corresponding to each target event to obtain the test result of each target event.
According to a third aspect of embodiments of the present invention, there is provided an electronic apparatus, including:
at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions for execution by the at least one processor; the instructions are executable by the at least one processor to enable the at least one processor to perform the method of the first aspect.
According to a fourth aspect provided by an embodiment of the present invention, there is provided a computer storage medium storing a computer program for executing the method according to the first aspect.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
FIG. 1 is a diagram illustrating an example of a suitable scenario in accordance with an embodiment of the present invention;
FIG. 2 is a schematic structural diagram illustrating a simulation test method for an electrical control system according to an embodiment of the present invention;
FIG. 3 is one of the flow diagrams of a simulation test method of an electrical control system according to one embodiment of the present invention;
FIG. 4 is a second schematic structural diagram of a simulation test method for an electrical control system according to an embodiment of the present invention;
FIG. 5 is a second flowchart of a simulation testing method for an electrical control system according to an embodiment of the present invention;
fig. 6 is a schematic flow chart of a simulation test performed on the control system of the energy storage converter according to an embodiment of the present invention;
FIG. 7 is a simulation test setup of an electrical control system according to one embodiment of the present invention;
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, 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 some, but not all, embodiments of the present invention. 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.
The term "and/or" in the embodiments of the present invention describes an association relationship of associated objects, and indicates that three relationships may exist, for example, a and/or B may indicate: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
The application scenario described in the embodiment of the present invention is for more clearly illustrating the technical solution of the embodiment of the present invention, and does not form a limitation on the technical solution provided in the embodiment of the present invention, and it can be known by a person skilled in the art that with the occurrence of a new application scenario, the technical solution provided in the embodiment of the present invention is also applicable to similar technical problems. In the description of the present invention, the term "plurality" means two or more unless otherwise specified.
In the prior art, a simulation test method of an electrical control system is complex, and one state of the electrical control system needs to be judged for many times to determine which simulation test corresponding to a target event is to be executed, so that the efficiency of the simulation test is low.
Therefore, the invention provides a simulation test method of an electrical control system, which comprises the steps of determining a target event through a target event identifier in a target state, and directly executing the target event through a pre-established simulation model corresponding to the target event to obtain a test result of the target event. Therefore, the method in the embodiment can directly determine the target event needing to be subjected to the simulation test through the target state and directly carry out the test, and does not need to carry out judgment for many times. Therefore, the simulation test in the embodiment is simpler, and the simulation test efficiency of the electrical control system is improved. The embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
As shown in fig. 1, an application scenario of the simulation test method for the electrical control system includes a terminal device 110 and a server 120, where in fig. 1, one terminal device 110 is taken as an example, and the number of terminal devices 110 is not limited in practice. The terminal device 110 may be a mobile phone, a tablet computer, a personal computer, and the like. The server 120 may be implemented by a single server or may be implemented by a plurality of servers. The server 120 may be implemented by a physical server or may be implemented by a virtual server.
In one possible application scenario, a user sends a simulation test instruction of an electrical control system to a server 120 through a terminal device 110, and the server 120 determines a target state of the electrical control system corresponding to the simulation test instruction sent by the user, wherein the target state includes a target event identifier; then, the server 120 determines a target event corresponding to the target event identifier in the target state by using a preset corresponding relationship between the event identifier and the event; finally, the server 120 executes the target event through a pre-established simulation model corresponding to the target event to obtain a test result of the target event, and sends the test result of the target event to the terminal device 110 for display.
Before describing the present invention in detail, a system structure of the simulation test of the electrical control system in the present invention is described, and as can be seen from fig. 2, a system structure of the simulation test of the electrical control system in the present invention includes a flow layer and an event execution layer. The state transition layer is used for determining a target event (including but not limited to initialization, power-on detection, normal operation and fault state) based on the target state, and then executing the determined target event through the event execution layer, so as to complete the simulation test of the electrical control system. The embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
As shown in fig. 3, a schematic flow chart of a simulation testing method of an electrical control system according to the present invention may include the following steps:
step 301: responding to a simulation test instruction of an electrical control system sent by a user, and determining a target state of the electrical control system corresponding to the simulation test instruction, wherein the target state comprises a target event identification;
it should be noted that the simulation control command in this embodiment includes a target state of the electrical control system, where the target state includes a target event identifier and a flag bit of a target event, and the target event identifier may be a letter, a number, a symbol, and the like.
Step 302: determining a target event corresponding to the target event identifier in the target state by using a corresponding relation between a preset event identifier and an event; the corresponding relationship between the event identifier and the event may be as shown in table 1:
event identification Event(s)
1 Event A
2 Event B
3 Event C
TABLE 1
Step 303: and executing the target event through a pre-established simulation model corresponding to the target event to obtain a test result of the target event.
The pre-built simulation model in the embodiment is built based on dynamic simulation simulink.
The target state in this embodiment may include one or more target event identifiers, and when the target state in this embodiment includes a plurality of target event identifiers, a test result of each target event may be obtained in the following two ways:
the first method is as follows: and if the target state comprises a plurality of target event identifications and each target event execution sequence corresponding to each target event identification is also included in the target state, sequentially executing each target event through each pre-built simulation model corresponding to each target event according to each target event execution sequence, and sequentially obtaining the test result of each target event.
For example, the target events determined based on the plurality of target event identifications include target event 1, target event 2, and target event 3. The execution sequence of each target event is as follows: target event 2, target event 3, target event 1. Executing the target event 2 through a pre-established simulation model corresponding to the target event 2 to obtain a test result of the target event 2. And then executing the target event 3 through a pre-established simulation model corresponding to the target event 3 to obtain a test result of the target event 3. And finally, executing the target event 1 through a pre-established simulation model corresponding to the target event 1 to obtain a test result of the target event 1.
The second method comprises the following steps: if the target state comprises a plurality of target event identifications and does not comprise the execution sequence of each target event corresponding to each target event identification, judging whether the preset execution sequence of each target event exists or not; if so, sequentially executing the target events through preset simulation models corresponding to the target events according to the preset execution sequence of the target events to obtain test results of the target events; if not, simultaneously executing each target event through each pre-established simulation model corresponding to each target event to obtain each target event test result.
For example, if there is a preset execution sequence of each target event, and the execution sequence of each target event is: target event 1, target event 3, target event 2. Executing the target event 1 through a pre-established simulation model corresponding to the target event 1 to obtain a test result of the target event 1. And then executing the target event 3 through a pre-established simulation model corresponding to the target event 3 to obtain a test result of the target event 3. And finally, executing the target event 2 through a pre-established simulation model corresponding to the target event 2 to obtain a test result of the target event 2.
If the preset execution sequence of each target event exists, simultaneously executing the target event 1, the target event 2 and the target event 3 through each preset simulation model corresponding to each target event (the target event 1, the target event 2 and the target event 3) to obtain the test results of the target event 1, the target event 2 and the target event 3.
It should be noted that, in this embodiment, each target event has a corresponding simulation model, as shown in fig. 4, 4 target events corresponding to the electrical control system are taken, and it can be seen from fig. 4 that each target event has a corresponding simulation model to perform a simulation test, where the simulation model corresponding to the target event 1 is simulation model 1, the simulation model corresponding to the target event 2 is simulation model 2, the simulation model corresponding to the target event 3 is simulation model 3, and the simulation model corresponding to the target event 4 is simulation model 4.
In order to ensure the accuracy of the simulation test, in an embodiment, before performing step 303, the flag bit of the target event is determined to be a first preset flag bit, where the first preset flag bit is used to identify that the target event needs to be subjected to the simulation test, and the flag bit of the target event is in the target state.
For example, taking a first preset flag bit as 1 as an example, if the flag bit of a target event 1 is 1, executing the target event 1 through a pre-built simulation model corresponding to the target event 1 to obtain a test result of the target event.
In an embodiment, if it is determined that the flag bit of the target event is a second preset flag bit, the simulation test instruction is not responded, wherein the second preset flag bit is used for identifying that the target event does not need to be subjected to the simulation test.
For example, taking the second preset flag bit as 0 as an example, if the flag of the target event 2 is 0, it is determined that the target event 2 does not need to perform the simulation test.
For further understanding of the technical solution of the present invention, the following detailed description with reference to fig. 5 may include the following steps:
step 501: responding to a simulation test instruction of an electrical control system sent by a user, and determining a target state of the electrical control system corresponding to the simulation test instruction, wherein the target state comprises a plurality of target event identifications and flag bits of a plurality of target events;
step 502: determining each target event corresponding to the target event identifications in the target state by using a preset corresponding relation between the event identifications and the events;
step 503: judging whether the target state further comprises a target event execution sequence corresponding to each target event identification, if so, executing step 504, and if not, executing step 505;
step 504: sequentially executing the target events through pre-built simulation models corresponding to the target events according to the execution sequence of the target events to sequentially obtain the test results of the target events;
step 505: judging whether a preset execution sequence of each target event exists or not; if yes, go to step 506, otherwise go to step 507;
step 506: sequentially executing the target events through preset simulation models corresponding to the target events according to the preset execution sequence of the target events to obtain test results of the target events;
step 507: and simultaneously executing each target event through each pre-established simulation model corresponding to each target event to obtain each target event test result.
In the following, the electrical control system is taken as an example of a control system of an energy storage converter to describe the present invention in detail:
as shown in fig. 6, the events included in the energy storage converter control system are: power-on detection, fault detection, constant voltage charge detection, constant voltage discharge detection, constant current charge detection, and constant current discharge detection.
For example, the target events are determined to be constant voltage charging detection and constant voltage discharging detection through a state transition layer, namely the constant voltage charging detection and the constant voltage discharging detection are determined to be triggered, the constant voltage charging detection is executed through a pre-established simulation model corresponding to the constant voltage charging detection, and a detection result of the constant voltage charging detection is obtained. And executing constant voltage discharge detection through a pre-established simulation model corresponding to the constant voltage discharge detection to obtain a test result of the target event and obtain a detection result of the constant voltage discharge detection.
Based on the same disclosure concept, the simulation test method of the electrical control system can also be realized by a simulation test device of the electrical control system. The effect of the simulation test device of the electrical control system is similar to that of the method, and is not repeated herein.
Fig. 7 is a schematic structural diagram of a simulation test apparatus of an electrical control system according to an embodiment of the present invention.
As shown in FIG. 7, a simulation test 700 of the electrical control system of the present invention may include a target state determination module 710, a target event determination module 720, and a test result determination module 730.
A target state determination module 710, configured to determine, in response to a simulation test instruction of an electrical control system sent by a user, a target state of the electrical control system corresponding to the simulation test instruction, where the target state includes a target event identifier;
a target event determining module 720, configured to determine a target event corresponding to the target event identifier in the target state by using a preset correspondence between event identifiers and events;
the test result determining module 730 is configured to execute the target event through a pre-established simulation model corresponding to the target event, so as to obtain a test result of the target event.
In one embodiment, the target state further includes a flag bit of a target event; the device further comprises:
the first determining module 740 is configured to determine that a flag bit of the target event is a first preset flag bit before the target event is executed by using a pre-established simulation model corresponding to the target event and a test result of the target event is obtained, where the first preset flag bit is used to identify that the target event needs to be subjected to a simulation test.
In one embodiment, the apparatus further comprises:
a second determining module 750, configured to not respond to the simulation test instruction if it is determined that the flag bit of the target event is a second preset flag bit, where the second preset flag bit is used to identify that the target event does not need to be subjected to a simulation test.
In one embodiment, if the target state includes a plurality of target event identifiers, and the target state further includes an execution sequence of each target event corresponding to each target event identifier;
the test result determining module 730 is specifically configured to:
and sequentially executing the target events through the pre-built simulation models corresponding to the target events according to the execution sequence of the target events, and sequentially obtaining the test result of the target events.
In one embodiment, if the target state includes a plurality of target event identifiers, and the target state does not include an execution sequence of each target event corresponding to each target event identifier;
the test result determining module 730 is specifically configured to:
judging whether a preset execution sequence of each target event exists or not;
if so, sequentially executing the target events through preset simulation models corresponding to the target events according to the preset execution sequence of the target events to obtain test results of the target events;
if not, simultaneously executing each target event through each pre-established simulation model corresponding to each target event to obtain the test result of each target event.
Having described a simulation test method and apparatus of an electrical control system according to an exemplary embodiment of the present invention, an electronic apparatus according to another exemplary embodiment of the present invention will be described next.
As will be appreciated by one skilled in the art, aspects of the present invention may be embodied as a system, method or program product. Thus, various aspects of the invention may be embodied in the form of: an entirely hardware embodiment, an entirely software embodiment (including firmware, microcode, etc.) or an embodiment combining hardware and software aspects that may all generally be referred to herein as a "circuit," module "or" system.
In some possible embodiments, an electronic device in accordance with the present invention may include at least one processor, and at least one computer storage medium. The computer storage medium has stored therein program code which, when executed by the processor, causes the processor to perform the steps of the simulation test method of an electrical control system according to various exemplary embodiments of the present invention described above in this specification. For example, the processor may perform steps 301-303 as shown in FIG. 3.
An electronic device 800 according to this embodiment of the invention is described below with reference to fig. 8. The electronic device 800 shown in fig. 8 is only an example and should not bring any limitations to the function and scope of use of the embodiments of the present invention.
As shown in fig. 8, the electronic device 800 is represented in the form of a general electronic device. The components of the electronic device 800 may include, but are not limited to: the at least one processor 801, the at least one computer storage medium 802, and the bus 803 that connects the various system components (including the computer storage medium 802 and the processor 801).
Bus 803 represents one or more of any of several types of bus structures, including a computer storage media bus or computer storage media controller, a peripheral bus, a processor, or a local bus using any of a variety of bus architectures.
The computer storage media 802 may include readable media in the form of volatile computer storage media, such as random access computer storage media (RAM)821 and/or cache storage media 822, and may further include read-only computer storage media (ROM) 823.
The computer storage media 802 may also include a program/utility 825 having a set (at least one) of program modules 824, such program modules 824 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
The electronic device 800 may also communicate with one or more external devices 804 (e.g., keyboard, pointing device, etc.), with one or more devices that enable a user to interact with the electronic device 800, and/or with any devices (e.g., router, modem, etc.) that enable the electronic device 800 to communicate with one or more other electronic devices. Such communication may occur through input/output (I/O) interfaces 805. Also, the electronic device 800 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the internet) via the network adapter 806. As shown, the network adapter 806 communicates with other modules for the electronic device 800 over the bus 803. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with electronic device 800, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
In some possible embodiments, the aspects of the simulation test method of an electrical control system provided by the present invention may also be implemented in the form of a program product comprising program code for causing a computer device to perform the steps of the simulation test method of an electrical control system according to various exemplary embodiments of the present invention described above in this specification when the program product is run on the computer device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable diskette, a hard disk, a random access computer storage media (RAM), a read-only computer storage media (ROM), an erasable programmable read-only computer storage media (EPROM or flash memory), an optical fiber, a portable compact disc read-only computer storage media (CD-ROM), an optical computer storage media piece, a magnetic computer storage media piece, or any suitable combination of the foregoing.
The program product for simulation testing of an electrical control system of an embodiment of the present invention may employ a portable compact disc read-only computer storage medium (CD-ROM) and include program code, and may be run on an electronic device. However, the program product of the present invention is not limited in this regard and, in the present document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A readable signal medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the consumer electronic device, partly on the consumer electronic device, as a stand-alone software package, partly on the consumer electronic device and partly on a remote electronic device, or entirely on the remote electronic device or server. In the case of remote electronic devices, the remote electronic devices may be connected to the consumer electronic device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external electronic device (for example, through the internet using an internet service provider).
It should be noted that although several modules of the apparatus are mentioned in the above detailed description, such division is merely exemplary and not mandatory. Indeed, the features and functions of two or more of the modules described above may be embodied in one module according to embodiments of the invention. Conversely, the features and functions of one module described above may be further divided into embodiments by a plurality of modules.
Moreover, while the operations of the method of the invention are depicted in the drawings in a particular order, this does not require or imply that the operations must be performed in this particular order, or that all of the illustrated operations must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, magnetic disk computer storage media, CD-ROMs, optical computer storage media, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable computer storage medium that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable computer storage medium produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (10)

1. A simulation test method of an electrical control system, the method comprising:
responding to a simulation test instruction of an electrical control system sent by a user, and determining a target state of the electrical control system corresponding to the simulation test instruction, wherein the target state comprises a target event identification;
determining a target event corresponding to the target event identifier in the target state by using a corresponding relation between a preset event identifier and an event;
and executing the target event through a pre-established simulation model corresponding to the target event to obtain a test result of the target event.
2. The method of claim 1, wherein the target state further comprises a flag bit of a target event;
before the target event is executed through the pre-established simulation model corresponding to the target event to obtain the test result of the target event, the method further includes:
and determining that the flag bit of the target event is a first preset flag bit, wherein the first preset flag bit is used for identifying that the target event needs to be subjected to a simulation test.
3. The method of claim 2, further comprising:
and if the flag bit of the target event is determined to be a second preset flag bit, not responding to the simulation test instruction, wherein the second preset flag bit is used for identifying that the target event does not need to be subjected to simulation test.
4. The method according to claim 1, wherein if the target state includes a plurality of target event identifiers, and the target state further includes a sequence of executing target events corresponding to the target event identifiers;
the step of executing the target event through a pre-established simulation model corresponding to the target event to obtain a test result of the target event comprises the following steps:
and sequentially executing the target events through the pre-built simulation models corresponding to the target events according to the execution sequence of the target events, and sequentially obtaining the test result of the target events.
5. The method according to claim 4, wherein if the target state comprises a plurality of target event identifications and the target state does not comprise execution sequences of the target events corresponding to the target event identifications;
the step of executing the target event through a pre-established simulation model corresponding to the target event to obtain a test result of the target event comprises the following steps:
judging whether a preset execution sequence of each target event exists or not;
if so, sequentially executing the target events through preset simulation models corresponding to the target events according to the preset execution sequence of the target events to obtain test results of the target events;
if not, simultaneously executing each target event through each pre-established simulation model corresponding to each target event to obtain the test result of each target event.
6. A simulation test apparatus of an electrical control system, the apparatus comprising:
the target state determining module is used for responding to a simulation test instruction of the electrical control system sent by a user and determining a target state of the electrical control system corresponding to the simulation test instruction, wherein the target state comprises a target event identifier;
the target event determining module is used for determining a target event corresponding to the target event identifier in the target state by utilizing the corresponding relation between the preset event identifier and the event;
and the test result determining module is used for executing the target event through a pre-established simulation model corresponding to the target event to obtain a test result of the target event.
7. The apparatus of claim 6, wherein the target state further comprises a flag bit of a target event; the device further comprises:
the first judgment module is used for executing the target event through a pre-established simulation model corresponding to the target event, and determining that a flag bit of the target event is a first preset flag bit before a test result of the target event is obtained, wherein the first preset flag bit is used for identifying that the target event needs to be subjected to simulation test.
8. The apparatus of claim 7, further comprising:
and the second judgment module is used for not responding to the simulation test instruction if the flag bit of the target event is determined to be a second preset flag bit, wherein the second preset flag bit is used for marking that the target event does not need to be subjected to simulation test.
9. An electronic device comprising at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions for execution by the at least one processor; the instructions are executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-5.
10. A computer storage medium, characterized in that the computer storage medium stores a computer program for performing the method according to any one of claims 1-5.
CN202210167884.4A 2022-02-23 2022-02-23 Simulation test method and device for electrical control system Pending CN114527733A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210167884.4A CN114527733A (en) 2022-02-23 2022-02-23 Simulation test method and device for electrical control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210167884.4A CN114527733A (en) 2022-02-23 2022-02-23 Simulation test method and device for electrical control system

Publications (1)

Publication Number Publication Date
CN114527733A true CN114527733A (en) 2022-05-24

Family

ID=81624998

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210167884.4A Pending CN114527733A (en) 2022-02-23 2022-02-23 Simulation test method and device for electrical control system

Country Status (1)

Country Link
CN (1) CN114527733A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU2007269045A1 (en) * 2006-07-07 2008-01-10 Edsa Micro Corporation Systems and methods for real-time dynamic simulation of uninterruptible power supply solutions and their control logic systems
CN103760895A (en) * 2014-01-26 2014-04-30 北京智行鸿远汽车技术有限公司 Hardware-in-loop test device and method for vehicle-mounted charger control device of new energy automobile
CN106934157A (en) * 2017-03-13 2017-07-07 国网江苏省电力公司电力科学研究院 Primary cut-out recognition methods based on SVMs and Dynamics Simulation
CN108110832A (en) * 2017-12-25 2018-06-01 上海电气集团股份有限公司 A kind of battery core control circuit, battery and control method
CN108463806A (en) * 2014-12-01 2018-08-28 摄取技术有限公司 Computer Architecture and method for changing data acquisition parameters based on prediction model
CN109918742A (en) * 2019-02-15 2019-06-21 湖南高至科技有限公司 A kind of data distribution and management method based on analogue system
CN111413951A (en) * 2020-04-01 2020-07-14 浙江中控技术股份有限公司 Control system test signal generation method and device and test platform
CN113219950A (en) * 2021-05-07 2021-08-06 中车青岛四方车辆研究所有限公司 Multifunctional virtual test platform for train

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU2007269045A1 (en) * 2006-07-07 2008-01-10 Edsa Micro Corporation Systems and methods for real-time dynamic simulation of uninterruptible power supply solutions and their control logic systems
CN103760895A (en) * 2014-01-26 2014-04-30 北京智行鸿远汽车技术有限公司 Hardware-in-loop test device and method for vehicle-mounted charger control device of new energy automobile
CN108463806A (en) * 2014-12-01 2018-08-28 摄取技术有限公司 Computer Architecture and method for changing data acquisition parameters based on prediction model
CN106934157A (en) * 2017-03-13 2017-07-07 国网江苏省电力公司电力科学研究院 Primary cut-out recognition methods based on SVMs and Dynamics Simulation
CN108110832A (en) * 2017-12-25 2018-06-01 上海电气集团股份有限公司 A kind of battery core control circuit, battery and control method
CN109918742A (en) * 2019-02-15 2019-06-21 湖南高至科技有限公司 A kind of data distribution and management method based on analogue system
CN111413951A (en) * 2020-04-01 2020-07-14 浙江中控技术股份有限公司 Control system test signal generation method and device and test platform
CN113219950A (en) * 2021-05-07 2021-08-06 中车青岛四方车辆研究所有限公司 Multifunctional virtual test platform for train

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
周泽伟;冯毅萍;吴玉成;荣冈;: "基于虚拟现实的流程工业过程模拟仿真系统", 计算机工程与应用, no. 10, pages 204 - 208 *
孙智超: "汽车生产线物流及电气仿真研究与应用", 中国优秀硕士学位论文全文数据库, no. 01 *
曹敏;沈鑫;周波;李萍;肖新华;: "智能变电站仿真评估实验平台设计与实现", 通讯世界, no. 05 *

Similar Documents

Publication Publication Date Title
CN105205003A (en) Automated testing method and device based on clustering system
CN114095567B (en) Data access request processing method and device, computer equipment and medium
CN112559635B (en) Service processing method, device, equipment and medium for Ethernet alliance chain node
CN112579446A (en) Interface testing method and device, electronic equipment and storage medium
CN110795162B (en) Method and device for generating container mirror image file
CN111522744A (en) Service testing method, device and computer readable storage medium
CN110955959A (en) Method and device for rapidly generating and calculating faults of power system in batches
CN113609027A (en) ARM cloud server testing method and device, electronic equipment and storage medium
CN113609008A (en) Test result analysis method and device and electronic equipment
CN106886477B (en) Method and device for setting monitoring threshold in cloud system
CN102541830B (en) Method and device for generating simulation report in simulation platform
CN111367799A (en) Method, device, medium and electronic equipment for positioning source code breakdown position
CN114527733A (en) Simulation test method and device for electrical control system
CN115481594B (en) Scoreboard implementation method, scoreboard, electronic equipment and storage medium
CN109669905A (en) A kind of hot removing method, system and the relevant apparatus of PCIE device
CN101971562B (en) Method, device and system for controlling automatic running process performance
CN114844176A (en) Battery charging and discharging power control method and device and electronic equipment
CN111522536A (en) Method for calling programming language and related equipment thereof
CN117009962B (en) Anomaly detection method, device, medium and equipment based on effective label
CN104699593A (en) Computer software diagnosis method based on UNIX operating system
CN117519996B (en) Data processing method, device, equipment and storage medium
CN108063679A (en) A kind of upgrade method and device of cloud management platform
CN114048229A (en) Identification generation method and device
CN115808553A (en) High-current testing method and system for battery, computer equipment and storage medium
CN114924895A (en) Memory detection method of system process 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