CN110456656B - EMTDC (electro-magnetic transient DC) simulation device, EMTDC simulation system and simulation method thereof - Google Patents

EMTDC (electro-magnetic transient DC) simulation device, EMTDC simulation system and simulation method thereof Download PDF

Info

Publication number
CN110456656B
CN110456656B CN201910611930.3A CN201910611930A CN110456656B CN 110456656 B CN110456656 B CN 110456656B CN 201910611930 A CN201910611930 A CN 201910611930A CN 110456656 B CN110456656 B CN 110456656B
Authority
CN
China
Prior art keywords
shared memory
data
emtdc
read
simulation
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
CN201910611930.3A
Other languages
Chinese (zh)
Other versions
CN110456656A (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.)
Xuji Group Co Ltd
State Grid Jiangsu Electric Power Co Ltd
XJ Electric Co Ltd
Original Assignee
Xuji Group Co Ltd
State Grid Jiangsu Electric Power Co Ltd
XJ Electric 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 Xuji Group Co Ltd, State Grid Jiangsu Electric Power Co Ltd, XJ Electric Co Ltd filed Critical Xuji Group Co Ltd
Priority to CN201910611930.3A priority Critical patent/CN110456656B/en
Publication of CN110456656A publication Critical patent/CN110456656A/en
Application granted granted Critical
Publication of CN110456656B publication Critical patent/CN110456656B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • G05B17/00Systems involving the use of models or simulators of said systems
    • G05B17/02Systems involving the use of models or simulators of said systems electric
    • 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)
  • Power Sources (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention relates to an EMTDC (electromagnetic transient DC/DC) simulation device, an EMTDC simulation system and a simulation method thereof, belonging to the technical field of off-line simulation of a power system, wherein the method comprises the following steps: the man-machine interface device sends data to an Ethernet interface of the EMTDC simulation device through the Ethernet; the front-end program analyzes the data of the Ethernet interface after detecting the data, occupies the shared memory after the shared memory is released, and writes the analyzed data into the shared memory; the read-write module periodically judges the read-write mark and reads and writes the data in the shared memory; and when the prepositive program detects that the shared memory contains data and the shared memory is released, reading the data in the shared memory, packaging the data into a preset protocol message, sending the preset protocol message to the Ethernet interface, and sending the preset protocol message to the man-machine interface device through the Ethernet. The method greatly saves the labor cost, reduces the simulation error, improves the simulation speed and realizes the panoramic simulation of the secondary system on the engineering site.

Description

EMTDC (electro-magnetic transient DC) simulation device, EMTDC simulation system and simulation method thereof
Technical Field
The invention relates to an EMTDC (electro-magnetic transient DC) simulation device, an EMTDC simulation system and a simulation method thereof, and belongs to the technical field of off-line simulation of power systems.
Background
PSCAD/EMTDC is a specialized simulation tool in electromagnetic transient analysis of power systems. PSCAD is a user simulation interface, EMTDC is a simulation device, and the simulation device has accurate and rich power system application models, convenient data input modes and strong data analysis capability, is a useful tool for power system analysis and engineering research, and has wide application in the world. In the field of direct current transmission, in order to research system characteristics, a detailed offline simulation model is often required to be established by using PSCAD/EMTDC software.
In the direct current transmission project, it is usually necessary to manually build a simulation human-machine interface device in an EMTDC simulation device by using a model library of the EMTDC simulation device, as shown in fig. 1. The disadvantages of this approach are:
1. the EMTDC teaching machine is not suitable for being used by EMTDC beginners and engineering operators, and cannot be used for training and teaching engineering field operators. Even for skilled workers, great effort and time are required, and errors are very likely to occur.
2. A simulation human-computer interface device is built in the EMTDC simulation device in a simulation mode, so that the operation load of the EMTDC simulation device is increased, and the simulation speed is reduced.
3. The simulation man-machine interface device has great difference with the man-machine interface device on the engineering site, and the simulation effect is poor.
Therefore, the mode of manually building the simulation man-machine interface device by using the model library of the EMTDC simulation device is poor in simulation effect and inconvenient to use.
Disclosure of Invention
The invention aims to provide an EMTDC (electro-magnetic transient DC) simulation device, an EMTDC simulation system and a simulation method thereof, which are used for solving the problem of poor simulation effect in the prior art.
In order to achieve the above object, the present invention provides a simulation method of an EMTDC simulation system, which comprises the following steps:
the man-machine interface device sends data to an Ethernet interface of the EMTDC simulation device through the Ethernet;
the front-end program analyzes the data of the Ethernet interface after detecting the data, occupies the shared memory after the shared memory is released, and writes the analyzed data into the shared memory;
the read-write module periodically judges the read-write mark; if the mark is a write mark, the shared memory is occupied after the shared memory is released, the data to be sent is written into the shared memory, and the shared memory is released after the writing is finished; if the read mark is the read mark, the shared memory is occupied after the shared memory is released, and data in the shared memory is read;
and when the prepositive program detects that the shared memory contains data and the shared memory is released, reading the data in the shared memory, packaging the data into a preset protocol message, sending the preset protocol message to the Ethernet interface, and sending the preset protocol message to the man-machine interface device through the Ethernet.
According to the method, the EMTDC simulation device adopts a shared memory mechanism, the communication between the actual human-computer interface device and the EMTDC simulation device is realized by combining the read-write module and the front-end program, the actual human-computer interface device is used for controlling the EMTDC simulation device, a control background does not need to be manually built on the EMTDC simulation device, the labor cost is greatly saved, the simulation error is reduced, and the simulation speed is improved.
Further, whether the shared memory is released or not is judged by detecting the shared memory occupation semaphore; and waiting when not released.
The problem that mutual exclusion exists between reading and writing of the shared memory by the reading and writing module and the front-end program is solved by using the semaphore, reading and writing are not distinguished, whether the semaphore is occupied or not is judged before the reading and writing operation is carried out, and the semaphore is released to complete the reading and writing operation of a certain area after the reading and writing operation is completed.
Furthermore, in the initialization process, the read-write module opens a shared memory mapping object to obtain a corresponding handle; if the shared memory mapping object does not exist, creating a shared memory mapping object and acquiring a corresponding handle; the handle is used for mapping to a predetermined spatial address in the shared memory.
In the process of initializing the read-write module program, a space is reserved in the shared memory to obtain a handle, and conditions are provided for the operation of the program on the shared memory.
In addition, an EMTDC simulation system is also provided, which comprises a human-computer interface device and an EMTDC simulation device, wherein the human-computer interface device is connected with the EMTDC simulation device through an Ethernet, the EMTDC simulation device comprises a processor and a memory, and the processor is used for executing a program instruction stored in the memory so as to realize a read-write module and a front program;
the read-write module is used for: periodically judging the read-write mark of the read-write module; if the shared memory is a write mark, judging whether the shared memory is occupied, if the shared memory is not occupied, occupying the shared memory, writing the data to be sent into the shared memory, and releasing the shared memory after the writing is finished; if the shared memory is a read mark, judging whether the shared memory is occupied, if the shared memory is not occupied, occupying the shared memory, and reading data in the shared memory;
the pre-program is used for: after the data of the Ethernet interface is detected, analyzing, occupying the shared memory after the shared memory is released, and writing the analyzed data into the shared memory; and when detecting that the shared memory has data and the shared memory is released, reading the data in the shared memory, packaging the data into a predetermined protocol message, sending the predetermined protocol message to the Ethernet interface, and sending the predetermined protocol message to the man-machine interface device through the Ethernet.
According to the system, the EMTDC simulation device adopts a shared memory mechanism, the actual communication between the human-computer interface device and the EMTDC simulation device is realized by combining the read-write module and the front program, the EMTDC simulation device is controlled by using the actual human-computer interface device, a control background does not need to be manually built on the EMTDC simulation device, the labor cost is greatly saved, the simulation error is reduced, and the simulation speed is increased.
Further, the human-computer interface device is used for analyzing the received protocol message and displaying an analysis result.
The receiving and displaying of the data sent by the EMTDC simulation device by the human-computer interface device are realized.
Further, whether the shared memory is released or not is judged by detecting the shared memory occupation semaphore; and waiting when not released.
The problem that the reading and writing of the read-write module and the front-end program to the shared memory are mutually exclusive is solved by using the semaphore, reading and writing are not distinguished, whether the semaphore is occupied or not is judged before the reading and writing operation is carried out, and the semaphore is released to complete the reading and writing operation of a certain area after the reading and writing operation is completed.
Furthermore, in the initialization process, the read-write module opens a shared memory mapping object to obtain a corresponding handle; if the shared memory mapping object does not exist, creating a shared memory mapping object and acquiring a corresponding handle; the handle is used for mapping to a predetermined spatial address in the shared memory.
In the process of initializing the read-write module program, a space is reserved in the shared memory to obtain a handle, and conditions are provided for the operation of the program on the shared memory.
In addition, an EMTDC simulation device is also provided, which includes a processor and a memory, wherein the processor is used for executing program instructions stored in the memory to implement a read-write module and a pre-program;
the read-write module is used for: periodically judging the read-write mark of the read-write module; if the shared memory is a write mark, judging whether the shared memory is occupied, if the shared memory is not occupied, occupying the shared memory, writing the data to be sent into the shared memory, and releasing the shared memory after the writing is finished; if the shared memory is a read mark, judging whether the shared memory is occupied, if the shared memory is not occupied, occupying the shared memory, and reading data in the shared memory;
the pre-program is used for: after the data of the Ethernet interface is detected, analyzing, occupying the shared memory after the shared memory is released, and writing the analyzed data into the shared memory; and when detecting that the shared memory contains data and the shared memory is released, reading the data in the shared memory, packaging the data into a preset protocol message, sending the preset protocol message to the Ethernet interface, and sending the preset protocol message to the man-machine interface device through the Ethernet.
The EMTDC simulation device adopts a shared memory mechanism, realizes the communication between an actual human-computer interface device and the EMTDC simulation device by combining the read-write module and the front program and combining the Ethernet, controls the EMTDC simulation device by using the actual human-computer interface device, does not need to manually build a control background on the EMTDC simulation device, greatly saves the labor cost, reduces the simulation error and improves the simulation speed.
Further, whether the shared memory is released or not is judged by detecting the shared memory occupation semaphore; and waiting when not released.
The problem that the reading and writing of the read-write module and the front-end program to the shared memory are mutually exclusive is solved by using the semaphore, reading and writing are not distinguished, whether the semaphore is occupied or not is judged before the reading and writing operation is carried out, and the semaphore is released to complete the reading and writing operation of a certain area after the reading and writing operation is completed.
Furthermore, in the initialization process, the read-write module opens a shared memory mapping object to obtain a corresponding handle; if the shared memory mapping object does not exist, creating a shared memory mapping object and acquiring a corresponding handle; the handle is used for mapping to a predetermined spatial address in the shared memory.
In the process of initializing the read-write module program, a space is reserved in the shared memory to obtain a handle, and conditions are provided for the operation of the program on the shared memory.
Drawings
FIG. 1 is a system block diagram of an EMTDC simulation apparatus in the prior art;
FIG. 2 is a system block diagram of the EMTDC simulation system of the present invention;
FIG. 3 is a block diagram of the EMTDC simulation apparatus according to the present invention;
FIG. 4 is a flowchart of the read/write module according to the present invention.
Detailed Description
EMTDC simulation System embodiment:
the embodiment provides an EMTDC simulation system (hereinafter referred to as a simulation system), which includes a human-computer interface device and an EMTDC simulation device as shown in fig. 2, where the human-computer interface device and the EMTDC simulation device are connected through an ethernet. The EMTDC simulation apparatus includes a processor and a memory, and the processor is used for executing program instructions stored in the memory to realize a read-write module and a pre-program.
The invention has the main concept that the prior EMTDC simulation device is built with a simulation human-computer interface device in the EMTDC simulation device, and simulation is carried out based on the EMTDC simulation device. The simulation system of the invention is based on the simulation of an actual human-computer interface device (i.e. a field operator control device) and the EMTDC simulation device of the invention as shown in fig. 3, the EMTDC simulation device of the invention designs a read-write module HMI _ ShrM _ RW (hereinafter referred to as a read-write module) and a front-end program fesmaiid.exe (hereinafter referred to as a front-end program), and designs an interface program objmgr.exe on the human-computer interface device, thereby realizing the data transmission between the human-computer interface device and the EMTDC simulation device through the ethernet.
In an actual engineering field, a field operator issues an instruction to an actual control protection device through an actual man-machine interface device, performs data interaction with the actual control protection device through the Ethernet, and can receive state information of the actual control protection device.
In the simulation process, the EMTDC simulation device simulates an actual control protection device, and interaction with an actual human-computer interface device is realized by establishing a read-write module and a front program in the EMTDC simulation device.
The read-write module and the front program refer to a program process. The difference lies in that the read-write module is built through a model library carried by the EMTDC, and the front-end program is an independent process. The shared memory name is: HMI _ pShareMem, the parameters of the read-write module include: a read-write flag RW, a shared memory space size Nbyte, a fixed execution period Ndiv, and the like. In the embodiment, the read-write module is very convenient to build through the self-contained model library of the EMTDC simulation device, and codes do not need to be written to form an independent process.
The working process of the simulation system is as follows:
1) the actual human interface device sends data to the ethernet interface of the EMTDC emulation device via ethernet.
2) And the front-end program analyzes the data after detecting the data of the Ethernet interface, occupies the shared memory after the shared memory is released, and writes the analyzed data into the shared memory.
3) As shown in fig. 4, the read/write module is used for executing the program, and periodically determines the read/write flag RW;
the method specifically comprises the following steps: firstly, judging whether the simulation running Time Time is at the Time point of a fixed execution period Ndiv of the read-write module (namely whether the simulation running Time Time reaches a judgment period), if the simulation running Time Time reaches the judgment period, judging a read-write mark RW of the read-write module, and if the simulation running Time Time is the read mark (namely RW is 0), occupying a shared memory after the shared memory is released, and reading data in the shared memory; if the signal quantity is the write flag (namely, RW is equal to 1), judging whether the signal quantity HMI _ hsemaphere is occupied, and if the signal quantity HMI _ hsemaphere is occupied (namely, HMI _ hsemaphere is equal to 1), waiting; if the semaphore HMI _ hsemaphere is not occupied (i.e. HMI _ hsemaphere is 0), writing the data to be sent into the shared memory, and releasing the shared memory after the writing is finished; and the read-write module finishes executing and cancels the mapping of the address space of the process.
The release here refers to the occupied semaphore being released, and not to the memory data being cleared; if the shared memory is not released, it needs to wait until the sent data can not be written into the shared memory after the shared memory is released.
The read-write mark RW of the read-write module is related to a front-end program and a sending program in the EMTDC engine, when the front-end program receives data from the human-computer interface device, the read-write mark RW is set to 0, and the read-write module reads the data from the shared memory to the EMTDC engine; when the sending program needs to send data, the read-write flag RW is set to 1, and the read-write module writes the data to be sent into the shared memory for the calling of the front-end program.
4) The front-end program detects that data exists in the shared memory and the shared memory is released, reads the data in the shared memory, packages the data into IEC104 protocol messages (the IEC104 is defined by the protocols of the simulation device and the human-computer interface device, and selects corresponding protocol messages if other protocols are adopted), sends the protocol messages to the Ethernet interface, and sends the protocol messages to the actual human-computer interface device through the Ethernet.
5) According to the actual human-computer interface device, an interface program objMgr.exe analyzes an IEC104 protocol message sent by an EMTDC simulation device, and generated analog quantity and switching value information are displayed on a human-computer interface.
The read-write module further executes an initialization process shown in fig. 4:
judging whether the read-write module is in an initialization state, if so: opening a shared memory mapping object of a named HMI _ ShareMemName to obtain a corresponding handle HMI _ hMapFile; if the shared memory mapping object does not exist, creating a shared memory mapping object, and acquiring a corresponding handle HMI _ hMapFile; and returning if the creation and the opening both fail.
And after the handle HMI _ hMapFile is successfully acquired, acquiring a preset space address HMI _ pShareMem mapped in the shared memory according to the handle HMI _ hMapFile, opening a named semaphore HMI _ hSemaphore, creating the semaphore HMI _ hSemaphore if the semaphore HMI _ hSemaphore does not exist, returning if the creation and the opening fail, and after the initialization is completed, starting the program execution by the read-write module.
The EMTDC simulation system provided by the embodiment can simulate extra-high voltage direct current transmission and can also simulate other general direct current transmission, and the EMTDC simulation system is wide in application range and high in practicability.
The embodiment of the simulation method of the EMTDC simulation system comprises the following steps:
the simulation method of the EMTDC simulation system provided in this embodiment includes the following steps:
the man-machine interface device sends data to an Ethernet interface of the EMTDC simulation device through the Ethernet;
and the front-end program analyzes the data after detecting the data of the Ethernet interface, occupies the shared memory after the shared memory is released, and writes the analyzed data into the shared memory.
The read-write module periodically judges the read-write mark; if the mark is a write mark, the shared memory is occupied after the shared memory is released, the data to be sent is written into the shared memory, and the shared memory is released after the writing is finished; if the read mark is the read mark, the shared memory is occupied after the shared memory is released, and data in the shared memory is read;
and when the prepositive program detects that the shared memory contains data and the shared memory is released, reading the data in the shared memory, packaging the data into a preset protocol message, sending the preset protocol message to the Ethernet interface, and sending the preset protocol message to the man-machine interface device through the Ethernet.
The implementation process of the simulation method of the EMTDC simulation system is described in the above embodiment of the EMTDC simulation system, and is not described herein again.
EMTDC simulation apparatus embodiment:
the embodiment proposes that the EMTDC simulation apparatus shown in fig. 3 includes a processor and a memory, where the processor is used to execute program instructions stored in the memory to implement a read/write module and a pre-program;
the read-write module is used for: periodically judging the read-write mark of the read-write module; if the shared memory is a write mark, judging whether the shared memory is occupied, if the shared memory is not occupied, occupying the shared memory, writing the data to be sent into the shared memory, and releasing the shared memory after the writing is finished; if the shared memory is a read mark, judging whether the shared memory is occupied, if not, occupying the shared memory and reading data in the shared memory;
the pre-program was used to: after the data of the Ethernet interface is detected, analyzing, occupying the shared memory after the shared memory is released, and writing the analyzed data into the shared memory; and when detecting that the shared memory contains data and the shared memory is released, reading the data in the shared memory, packaging the data into a preset protocol message, sending the preset protocol message to the Ethernet interface, and sending the preset protocol message to the man-machine interface device through the Ethernet.
The structural composition and the working process of the EMTDC simulation device are described in the above embodiment of the EMTDC simulation system, and are not described herein.

Claims (10)

1. A simulation method of an EMTDC simulation system is characterized by comprising the following steps:
the man-machine interface device sends data to an Ethernet interface of the EMTDC simulation device through the Ethernet;
the front-end program analyzes the data of the Ethernet interface after detecting the data, occupies the shared memory after the shared memory is released, and writes the analyzed data into the shared memory;
the read-write module periodically judges the read-write mark of the read-write module; the reading and writing mark is related to a front-end program and a sending program in the EMTDC engine, when the front-end program receives data from the human-computer interface device, the reading and writing module is set as the reading mark, and when the sending program in the EMTDC engine needs to send the data, the reading and writing module is set as the writing mark; if the mark is a write mark, the shared memory is occupied after the shared memory is released, data to be sent are written into the shared memory for calling of a front-end program, and the shared memory is released after the writing is finished; if the read mark is the read mark, the shared memory is occupied after the shared memory is released, the data in the shared memory is read, and the read data is sent to an EMTDC engine;
and when the prepositive program detects that the shared memory contains data and the shared memory is released, reading the data in the shared memory, packaging the data into a preset protocol message, sending the preset protocol message to the Ethernet interface, and sending the preset protocol message to the man-machine interface device through the Ethernet.
2. The simulation method of the EMTDC simulation system according to claim 1, wherein whether the shared memory is released is determined by detecting a shared memory occupancy semaphore; and waiting when not released.
3. The simulation method of the EMTDC simulation system according to claim 1 or 2, wherein the read-write module opens a shared memory mapped object during initialization to obtain a corresponding handle; if the shared memory mapping object does not exist, creating a shared memory mapping object and acquiring a corresponding handle; the handle is used for mapping to a predetermined spatial address in the shared memory.
4. An EMTDC simulation system comprises a human-computer interface device and an EMTDC simulation device, wherein the human-computer interface device is connected with the EMTDC simulation device through an Ethernet, and the EMTDC simulation system is characterized in that the EMTDC simulation device comprises a processor and a memory, and the processor is used for executing a program instruction stored in the memory so as to realize a read-write module and a front program;
the read-write module is used for: periodically judging the read-write mark of the read-write module; the reading and writing mark is related to a front-end program and a sending program in the EMTDC engine, when the front-end program receives data from the human-computer interface device, the reading and writing module is set as the reading mark, and when the sending program in the EMTDC engine needs to send the data, the reading and writing module is set as the writing mark; if the shared memory is a write mark, judging whether the shared memory is occupied, if the shared memory is not occupied, occupying the shared memory, writing data to be sent into the shared memory for calling a front-end program, and releasing the shared memory after the writing is finished; if the shared memory is a read mark, judging whether the shared memory is occupied, if the shared memory is not occupied, occupying the shared memory, reading data in the shared memory, and sending the read data to an EMTDC engine;
the pre-program is used for: after the data of the Ethernet interface is detected, analyzing, occupying the shared memory after the shared memory is released, and writing the analyzed data into the shared memory; and when detecting that the shared memory contains data and the shared memory is released, reading the data in the shared memory, packaging the data into a preset protocol message, sending the preset protocol message to the Ethernet interface, and sending the preset protocol message to the man-machine interface device through the Ethernet.
5. The EMTDC simulation system of claim 4, wherein the human interface device is configured to parse the received protocol message and display the parsing result.
6. The EMTDC simulation system of claim 4 or 5, wherein whether the shared memory is released is determined by detecting a shared memory occupancy semaphore; and waiting when not released.
7. The EMTDC simulation system of claim 4 or 5, wherein the read-write module opens a shared memory mapping object during initialization to obtain a corresponding handle; if the shared memory mapping object does not exist, creating a shared memory mapping object and acquiring a corresponding handle; the handle is used for mapping to a predetermined spatial address in the shared memory.
8. An EMTDC simulation apparatus, comprising a processor and a memory, wherein the processor is configured to execute program instructions stored in the memory to implement a read/write module and a pre-program;
the read-write module is used for: periodically judging the read-write mark of the read-write module; the reading and writing mark is related to a front-end program and a sending program in the EMTDC engine, when the front-end program receives data from the human-computer interface device, the reading and writing module is set as the reading mark, and when the sending program in the EMTDC engine needs to send the data, the reading and writing module is set as the writing mark; if the shared memory is a write mark, judging whether the shared memory is occupied, if the shared memory is not occupied, occupying the shared memory, writing data to be sent into the shared memory for calling a front-end program, and releasing the shared memory after the writing is finished; if the shared memory is a read mark, judging whether the shared memory is occupied, if the shared memory is not occupied, occupying the shared memory, reading data in the shared memory, and sending the read data to an EMTDC engine;
the pre-program is used for: after the data of the Ethernet interface is detected, analyzing, occupying the shared memory after the shared memory is released, and writing the analyzed data into the shared memory; and when detecting that the shared memory contains data and the shared memory is released, reading the data in the shared memory, packaging the data into a preset protocol message, sending the preset protocol message to the Ethernet interface, and sending the preset protocol message to the man-machine interface device through the Ethernet.
9. The EMTDC simulation device of claim 8, wherein whether the shared memory is released is determined by detecting a shared memory occupancy semaphore; and waiting when not released.
10. The EMTDC simulation device according to claim 8 or 9, wherein the read/write module opens a shared memory mapped object during initialization to obtain a corresponding handle; if the shared memory mapping object does not exist, creating a shared memory mapping object and acquiring a corresponding handle; the handle is used for mapping to a predetermined spatial address in the shared memory.
CN201910611930.3A 2019-07-08 2019-07-08 EMTDC (electro-magnetic transient DC) simulation device, EMTDC simulation system and simulation method thereof Active CN110456656B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910611930.3A CN110456656B (en) 2019-07-08 2019-07-08 EMTDC (electro-magnetic transient DC) simulation device, EMTDC simulation system and simulation method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910611930.3A CN110456656B (en) 2019-07-08 2019-07-08 EMTDC (electro-magnetic transient DC) simulation device, EMTDC simulation system and simulation method thereof

Publications (2)

Publication Number Publication Date
CN110456656A CN110456656A (en) 2019-11-15
CN110456656B true CN110456656B (en) 2022-08-16

Family

ID=68482328

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910611930.3A Active CN110456656B (en) 2019-07-08 2019-07-08 EMTDC (electro-magnetic transient DC) simulation device, EMTDC simulation system and simulation method thereof

Country Status (1)

Country Link
CN (1) CN110456656B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111797497B (en) * 2020-05-21 2024-05-17 中国电力科学研究院有限公司 Communication method and system for electromagnetic transient parallel simulation

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62184549A (en) * 1986-02-07 1987-08-12 Nec Corp Terminal equipment with shared memory occupying function
CN102426472A (en) * 2011-08-19 2012-04-25 徐华中 Hardware-in-the-loop generator and use method thereof
US8176022B1 (en) * 2006-08-26 2012-05-08 Radames Garcia Locking protocol using dynamic locks and dynamic shared memory
CN103150220A (en) * 2011-12-07 2013-06-12 腾讯科技(深圳)有限公司 Method and system for interprocess communications
CN103888197A (en) * 2012-12-20 2014-06-25 北欧半导体公司 Radio frequency communication simulation
CN106909752A (en) * 2017-03-15 2017-06-30 中国铁道科学研究院通信信号研究所 The analogue system of high-speed railway computer interlock system external interface test

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62184549A (en) * 1986-02-07 1987-08-12 Nec Corp Terminal equipment with shared memory occupying function
US8176022B1 (en) * 2006-08-26 2012-05-08 Radames Garcia Locking protocol using dynamic locks and dynamic shared memory
CN102426472A (en) * 2011-08-19 2012-04-25 徐华中 Hardware-in-the-loop generator and use method thereof
CN103150220A (en) * 2011-12-07 2013-06-12 腾讯科技(深圳)有限公司 Method and system for interprocess communications
CN103888197A (en) * 2012-12-20 2014-06-25 北欧半导体公司 Radio frequency communication simulation
CN106909752A (en) * 2017-03-15 2017-06-30 中国铁道科学研究院通信信号研究所 The analogue system of high-speed railway computer interlock system external interface test

Also Published As

Publication number Publication date
CN110456656A (en) 2019-11-15

Similar Documents

Publication Publication Date Title
EP1310844B1 (en) Simulation device
CN109807903B (en) Robot control method, device, equipment and medium
JPS6017539A (en) Emulation system
US11822313B2 (en) Synchronization control device, synchronization control system, synchronization control method, and simulation device
CN108574580A (en) Real-time simulation communication system and method
CN110456656B (en) EMTDC (electro-magnetic transient DC) simulation device, EMTDC simulation system and simulation method thereof
CN102231079A (en) Method for testing vehicular electric control system based on real vehicle running state dynamic real-time playback
CN106850614B (en) Multifunctional digital network joint debugging device
CN109992554A (en) A kind of implementation method of the 1553B bus communication protocol described based on general Schema structure
US20160300000A1 (en) System construction support apparatus
CN113253704B (en) Simulation test method, device and system for vehicle ECU and electronic equipment
CN115277882A (en) CAN message database establishing method and device, vehicle-mounted electronic equipment and storage medium
US20160171132A1 (en) Simulation device and simulation program
CN102902207B (en) Method, device and system for integrated turntable control based on Matlab/VC
US8170696B2 (en) Process control simulator and process control simulating method
CN112506152A (en) Coal mining machine and controller and control method thereof
CN112233208B (en) Robot state processing method, apparatus, computing device and storage medium
CN113609052A (en) Chip simulation system based on FPGA and microprocessor and implementation method
JP2012194632A (en) Debug device
EP3633471B1 (en) Program development support device, program development support system, program development support method, and program development support program
US20240302810A1 (en) Programmable controller, programmable controller system, and recording medium
JPH0938876A (en) Simulation device
JP2009244952A (en) Motion controller, simulation method, and simulation program
CN116189503A (en) Open type numerical control simulation training system
CN114416593A (en) Vehicle-mounted MCU debugging method based on Ethernet

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