CN106681167A - Model-independent universal record/playback system and model-independent universal record/playback method - Google Patents

Model-independent universal record/playback system and model-independent universal record/playback method Download PDF

Info

Publication number
CN106681167A
CN106681167A CN201510753860.7A CN201510753860A CN106681167A CN 106681167 A CN106681167 A CN 106681167A CN 201510753860 A CN201510753860 A CN 201510753860A CN 106681167 A CN106681167 A CN 106681167A
Authority
CN
China
Prior art keywords
record
simulation model
data
playback
model
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.)
Granted
Application number
CN201510753860.7A
Other languages
Chinese (zh)
Other versions
CN106681167B (en
Inventor
谢宝娣
蔡继红
陈秋瑞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Simulation Center
Original Assignee
Beijing Simulation Center
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Simulation Center filed Critical Beijing Simulation Center
Priority to CN201510753860.7A priority Critical patent/CN106681167B/en
Publication of CN106681167A publication Critical patent/CN106681167A/en
Application granted granted Critical
Publication of CN106681167B publication Critical patent/CN106681167B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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

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 discloses a model-independent universal record/playback system and a model-independent universal record/playback method. The system comprises a universal main framework module and at least one record and playback channel module corresponding to simulation models. The universal main framework module is used for creating and uninstalling the record and playback channel modules and managing the record and playback of simulation data of the corresponding simulation models by the record and playback channel modules. The record and playback channel modules are used for recording and playing back the simulation data of the corresponding simulation models. According to the technical scheme of the invention, the record and playback of the simulation models is completed through multiple record and playback channel processes which are loosely coupled, and the special record and playback of one kind of simulation model does not affect the other simulation models. Moreover, the establishment of the record and playback channel processes is automatic and accurate, there is no need for manual code adjustment, and the reliability and stability are improved significantly.

Description

Unrelated general record/the playback system of model and method
Technical field
The present invention relates to digital simulation technique field.More particularly, to the general note that a kind of model is unrelated Record/playback system and method.
Background technology
There is various interactive standards specifications and architecture, such as HLA standards (IEEE in Digital Simulation experiment Std 1516, IEEE Standard for Modeling), TENA systems (Test and Training Enabling Architecture).As emulation demand is in scale, scope and pro forma expansion and upgrading, and examine Considering the factors such as resource reuse, time cost affects, many in Digital Simulation to play back tool software simulation to record Resource, reduces cost.
In Digital Simulation experiment, the features such as model protocol has complicated, changeable, disunity.At present, remember Record playback method for designing is realized relying on model protocol, and model protocol is slightly adjusted can be caused to recording playback Harmful effect, causes misregistration data, playback wrong data, finally has a strong impact on the result of digital simulation, Therefore, in order to adapt to new model protocol, manpower manual modification, adjustment record back method, work are needed When making trouble, it is complexity, error-prone.
Accordingly, it is desirable to provide a kind of unrelated general record/playback system of model and method.
The content of the invention
It is an object of the invention to provide a kind of unrelated general record/playback system of model and method, solve In Digital Simulation, due to record playback software and simulation model close coupling, not general, simulation model adjustment Or modification, recording playback software can not automatically regenerate adaptation, cause simulation result incorrect or even imitative True node is delayed the problem of machine.
To reach above-mentioned purpose, the present invention adopts following technical proposals:
A kind of unrelated general record/playback system of model, including:
Conventional main frame module and at least one record playback channels module corresponding with simulation model,
Conventional main frame module, creates and unloads record playback channels module, and manages record playback channels The record playback of the emulation data of the module simulation model corresponding to the record playback channels module;
Record playback channels module, performs the record playback of the emulation data of corresponding simulation model.
Preferably, the conventional main frame module management record playback channels module is to recording playback channels mould The record playback of the emulation data of the corresponding simulation model of block includes scheduling, loading, starts and stop note Record playback channels module is returned to the record for recording the emulation data of the corresponding simulation model of playback channels module Put.
Preferably, the process of the conventional main frame module creation record playback channels module includes:
Simulation model parses part, completes the parsing of simulation model, reads the name of corresponding simulation model Claim and attributive character, and store mark;
Simulation model Data Serialization part, by the emulation data of corresponding simulation model by its field, Type once reads and is stored in continuous caching, and conversion emulation data are caching;
Simulation model data unserializing part, by the emulation of the corresponding simulation model in continuous caching Data once read, constructive simulation model data, and conversion caching is emulation data;
Simulation Application runs support section, and affiliated record playback channels module is imitative as adding using role True process, and the support of transmission of the realization to data in magnetic disk after emulating data unserializing part and processing, Realize receiving the emulation data and through the simulation model data sequence to affiliated record playback channels module The support that rowization part is stored on disk after processing.
A kind of unrelated general record/back method of model, the method comprises the steps:
When Digital Simulation starts, the record playback channels process of simulation model is created;
Start the record playback channels process, carry out the record playback of the emulation data of simulation model;
At the end of Digital Simulation, the record playback channels process is closed, terminate the record of emulation data Playback.
Preferably, the record playback channels process for creating simulation model further includes following sub-step:
The parsing of simulation model is completed, the title and attributive character of corresponding simulation model is read, and is deposited Storage mark;
The emulation data of corresponding simulation model are once read by its field, type and are stored in continuous In caching, conversion emulation data are caching;
The emulation data of the corresponding simulation model in continuous caching are once read, constructive simulation model Data, conversion caching is emulation data;
Affiliated record playback channels module is added into simulation process as using role, and is realized to disk number According to the support of the transmission after emulating data unserializing part and processing, realize logical to affiliated record playback Road module receives the emulation data and is stored in after the simulation model Data Serialization part is processed Support on disk.
Preferably, the record playback of the emulation data for carrying out simulation model further includes following sub-step Suddenly:
Open and issue operation, select the data for having recorded and send frame frequency, playback emulation data;
Subscription operation is opened, form and the position of record data, record emulation data are selected.
Preferably, the method also includes step:
If Digital Simulation no longer needs the emulation data for recording playback simulation model, the simulation model is unloaded Record playback channels process.
Beneficial effects of the present invention are as follows:
The record playback of simulation model is complete by multiple record playback channels processes in technical scheme of the present invention Into loose coupling between record playback channels process, the special record playback of certain class simulation model is not interfered with Other simulation models;The foundation of record playback channels process, automatically, accurately, it is not necessary to which manpower adjusts generation Code, is lifted notable in terms of reliability and stability.
At present, the scale of Digital Simulation and scope expanding day, for rare, high cost emulation money Source, the simulation resource that a kind of method of needs can be accurate, stable, reduces cost, technology of the present invention Scheme exactly towards the solution of this demand, has broad application prospects.
Description of the drawings
The specific embodiment of the present invention is described in further detail below in conjunction with the accompanying drawings.
Fig. 1 illustrates the schematic diagram of the unrelated general record/playback system of model.
Fig. 2 illustrates the signal that record playback channels process is created in the unrelated general record/back method of model Figure.
Specific embodiment
In order to be illustrated more clearly that the present invention, the present invention is done into one with reference to preferred embodiments and drawings The explanation of step.Similar part is indicated with identical reference in accompanying drawing.Those skilled in the art It should be appreciated that following specifically described content is illustrative and be not restrictive, should not be limited with this Protection scope of the present invention.
Embodiment 1
As shown in figure 1, the unrelated general record/playback system of the model of the present embodiment offer, including:
Conventional main frame module and at least one record playback channels module corresponding with simulation model,
Conventional main frame module, creates and unloads record playback channels module, and manages record playback channels The record playback of the emulation data of the module simulation model corresponding to the record playback channels module;
Record playback channels module, performs the record playback of the emulation data of corresponding simulation model.
A conventional main frame module can control to manage multiple in the unrelated general record/playback system of model Record playback channels module.
The substantially function of conventional main frame module and record playback channels module is described as follows:
Conventional main frame module, as general record playback main line, be responsible for create, scheduling, loading, Start, stop, unloading records playback channels module.Conventional main frame module is user's control record playback Interface, user can pass through conventional main frame module start/stop control record playback channels module operation.
Record playback channels module, is in logic that modulus of conversion is read in an independent storage based on packet Block, is physically an independent dynamic link library, by conventional main frame module creation, scheduling, loading And unloading.Record playback channels module, supports the functions such as startup, stopping.One record playback channels mould Block completes the storage of the emulation data of a class simulation model and reads, the multimodal data of Digital Simulation network Record playback is realized by corresponding multiple record playback channels module joints.
The detailed functions of conventional main frame module and record playback channels module are described as follows,
Conventional main frame module:
If emulation data need the existing corresponding record playback channels module of the simulation model of record playback, Then conventional main frame module selects to start record playback channels module;If emulation data need record playback There is no corresponding record playback channels module in simulation model, then conventional main frame module needs to select this to imitate True mode, creates associated record playback channels module, then restarts the record playback channels mould Block;
Wherein
The process of conventional main frame module creation record playback channels module is made up of four parts, that is, emulate Model analyzing part, simulation model Data Serialization part, simulation model data unserializing part and imitative True application operation support section:
Simulation model parses part, and this part is the inlet module for creating record playback channels module, by this Module completes the parsing of simulation model, the title of reading object model, emulation attributive character, including type, Name etc., and store mark.Simulation model parses part, for supporting other three parts, that is, emulates Model data serializing part, simulation model data unserializing part and Simulation Application operation support section.
Simulation model Data Serialization part, this part is to parse part based on simulation model, according to emulation Simulation model data are once read and are stored in continuous caching by model by its field, type, and conversion is imitative The buffer pointers and big brief biography are run support section by true mode data in caching in Simulation Application.
Simulation model data unserializing part, this part is to parse part based on simulation model, according to imitative True mode once reads the data in continuous caching, constructive simulation model data, and conversion caching is emulation Data, and the emulation data are passed in Simulation Application operation support section.
Simulation Application runs support section, and this part is the through part for recording playback channels process, including Simulation running environment, simulation model publish/subscribe etc. are operated.Simulation running environment causes to record playback channels Module adds simulation process as using role;Simulation model issues operation and causes data in magnetic disk through emulation Model data unserializing part is sent after processing;Simulation model subscription operation causes record playback logical Road process is able to receive simulation model data and is stored in after simulation model Data Serialization part is processed On disk.
Selected according to user's simulation model, conventional main frame Module Generation aforementioned four part simultaneously generates Project file, compiling link generates dynamic link library.
Start opened record playback channels process, you can return with the record for carrying out corresponding simulation model Put.
When digital network emulation terminates, conventional main frame module closes related record playback channels module, Terminate corresponding Data logger grid playback.
If network simulation no longer needs record to play back certain class simulation model, relative recording playback channels are unloaded Module.
Record playback channels module by conventional main frame module creation, scheduling, loading, display, startup, Stop and unload.
Record playback channels module performs the process of the record playback of the emulation data of corresponding simulation model For:
Open and issue operation, user selects the data for having recorded and sends frame frequency, you can playback Simulation Application Data;
Subscription operation is opened, user selects the form of record data and position, you can start recording emulation should Use data.
Record playback channels module is received after the ceasing and desisting order of conventional main frame module, then no longer received by imitating The incoming simulation model data in true mode data unserializing part simultaneously stop sending, meanwhile, stop subscribing to And no longer incoming simulation model Data Serialization part.
Record playback channels process is finally terminated by the unloading of general framework master control process.
Embodiment 2
Unrelated general record/the back method of model that the present embodiment is provided, comprises the steps:
When Digital Simulation starts, the record playback channels process of simulation model is created;
Start record playback channels process, carry out the record playback of the emulation data of simulation model;
At the end of Digital Simulation, record playback channels process is closed, terminate the record playback of emulation data.
Wherein
This method provides a main interface, records for creating, dispatching, load, start, stop, unloading Record playback channels process.User starts/stops control record playback channels process by main interface.
Record playback channels process, is in logic that an independent storage reading based on packet is converted Journey, is physically an independent dynamic link library, is created by main interface, dispatches, is loaded, is unloaded. Record playback channels process, supports the functions such as startup, stopping.One record playback channels process completes one The storage of the emulation data of class simulation model is read, the record playback of the multimodal data of Digital Simulation network It is to be realized by corresponding a plurality of record playback channels combine processes.
As shown in Fig. 2 step " when Digital Simulation starts, creates the record playback channels of simulation model The detailed process of process " is:
If emulation data need the existing corresponding record playback channels process of the simulation model of record playback, Then select to start record playback channels module;If emulation data need the simulation model of record playback not exist Corresponding record playback channels process, then need to select the simulation model, creates associated record and returns Passage process is put, then restarts the record playback channels process;
Create record playback channels process to be made up of four parts, respectively create:Simulation model analysis unit Point, simulation model Data Serialization part, simulation model data unserializing part and Simulation Application operation Support section.
Simulation model parses part, and this part is the inlet module for creating record playback channels process, by this Module completes the parsing of simulation model, the title of reading object model, emulation attributive character, including type, Name etc., and store mark.Simulation model parses part, for supporting other three parts, that is, emulates Model data serializing part, simulation model data unserializing part and Simulation Application operation support section.
Simulation model Data Serialization part, this part is to parse part based on simulation model, according to emulation Simulation model data are once read and are stored in continuous caching by model by its field, type, convert mould The buffer pointers and big brief biography are run support section by type data in caching in Simulation Application.
Simulation model data unserializing part, this part is to parse part based on simulation model, according to imitative True mode once reads the data in continuous caching, constructive simulation model data, and conversion caching is emulation Model, and the simulation model data are passed in Simulation Application operation support section.
Simulation Application runs support section, and this part is the through part for recording playback channels process, including Simulation running environment, simulation model publish/subscribe etc. are operated.Simulation running environment causes to record playback channels Process adds simulation process as using role;Simulation model issues operation and causes data in magnetic disk through emulation Model data unserializing part is sent after processing;Simulation model subscription operation causes record playback logical Road process is able to receive simulation model data and is stored in after simulation model Data Serialization part is processed On disk.
Selected according to user's simulation model, General Main interface auto-generating aforementioned four part simultaneously generates engineering File, compiling link generates dynamic link library.
After " when starting in Digital Simulation, creating the record playback channels process of simulation model ",
Start record playback channels process, you can play back with the record for carrying out corresponding simulation model.
When digital network emulation terminates, related record playback channels process is closed, terminate corresponding emulation Data record is played back.
If network simulation no longer needs record to play back certain class simulation model, relative recording playback channels are unloaded Process.
Step " starts record playback channels process, carry out the record playback of the emulation data of simulation model " Detailed process be:
Open and issue after operation, user selects the data for having recorded and sends frame frequency, you can playback emulation should Use data.
After opening subscription operation, user selects the form of record data and position, you can start recording is emulated Application data.
Record playback channels process is received after the ceasing and desisting order of general framework master control process, then no longer receive by The incoming simulation model data in simulation model data unserializing part simultaneously stop sending, meanwhile, stop ordering Read and no longer incoming simulation model Data Serialization part.
Obviously, the above embodiment of the present invention is only intended to clearly illustrate example of the present invention, and It is not the restriction to embodiments of the present invention, for those of ordinary skill in the field, Can also make other changes in different forms on the basis of described above, here cannot be to all Embodiment be exhaustive, it is every to belong to the obvious change that technical scheme is extended out Change or change the row still in protection scope of the present invention.

Claims (7)

1. the unrelated general record/playback system of a kind of model, it is characterised in that include:
Conventional main frame module and at least one record playback channels module corresponding with simulation model,
Conventional main frame module, creates and unloads record playback channels module, and manages record playback channels Module is played back to the record for recording the emulation data of the corresponding simulation model of playback channels module;
Record playback channels module, performs the record playback of the emulation data of corresponding simulation model.
2. the unrelated general record/playback system of model according to claim 1, it is characterised in that To recording, playback channels module is corresponding to imitate the conventional main frame module management record playback channels module The record playback of the emulation data of true mode includes scheduling, loading, starts and stop recording playback channels mould Block is played back to the record for recording the emulation data of the corresponding simulation model of playback channels module.
3. the unrelated general record/playback system of model according to claim 1, it is characterised in that The process of the conventional main frame module creation record playback channels module includes:
Simulation model parses part, completes the parsing of simulation model, reads the name of corresponding simulation model Claim and attributive character, and store mark;
Simulation model Data Serialization part, by the emulation data of corresponding simulation model by its field, Type once reads and is stored in continuous caching, and conversion emulation data are caching;
Simulation model data unserializing part, by the emulation of the corresponding simulation model in continuous caching Data once read, constructive simulation model data, and conversion caching is emulation data;
Simulation Application runs support section, and affiliated record playback channels module is imitative as adding using role True process, and the support of transmission of the realization to data in magnetic disk after emulating data unserializing part and processing, Realize receiving the emulation data and through the simulation model data sequence to affiliated record playback channels module The support that rowization part is stored on disk after processing.
4. the unrelated general record/back method of a kind of model, it is characterised in that the method includes following step Suddenly:
When Digital Simulation starts, the record playback channels process of simulation model is created;
Start the record playback channels process, carry out the record playback of the emulation data of simulation model;
At the end of Digital Simulation, the record playback channels process is closed, terminate the record of emulation data Playback.
5. the unrelated general record/back method of model according to claim 4, it is characterised in that The record playback channels process for creating simulation model further includes following sub-step:
The parsing of simulation model is completed, the title and attributive character of corresponding simulation model is read, and is deposited Storage mark;
The emulation data of corresponding simulation model are once read by its field, type and are stored in continuous In caching, conversion emulation data are caching;
The emulation data of the corresponding simulation model in continuous caching are once read, constructive simulation model Data, conversion caching is emulation data;
Affiliated record playback channels module is added into simulation process as using role, and is realized to disk number According to the support of the transmission after emulating data unserializing part and processing, realize logical to affiliated record playback Road module receives the emulation data and is stored in after the simulation model Data Serialization part is processed Support on disk.
6. the unrelated general record/back method of model according to claim 4, it is characterised in that The record playback of the emulation data for carrying out simulation model further includes following sub-step:
Open and issue operation, select the data for having recorded and send frame frequency, playback emulation data;
Subscription operation is opened, form and the position of record data, record emulation data are selected.
7. the unrelated general record/back method of model according to claim 4, it is characterised in that The method also includes step:
If Digital Simulation no longer needs the emulation data for recording playback simulation model, the simulation model is unloaded Record playback channels process.
CN201510753860.7A 2015-11-09 2015-11-09 The unrelated general record playback system of model and method Active CN106681167B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510753860.7A CN106681167B (en) 2015-11-09 2015-11-09 The unrelated general record playback system of model and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510753860.7A CN106681167B (en) 2015-11-09 2015-11-09 The unrelated general record playback system of model and method

Publications (2)

Publication Number Publication Date
CN106681167A true CN106681167A (en) 2017-05-17
CN106681167B CN106681167B (en) 2019-08-20

Family

ID=58863169

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510753860.7A Active CN106681167B (en) 2015-11-09 2015-11-09 The unrelated general record playback system of model and method

Country Status (1)

Country Link
CN (1) CN106681167B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111586259A (en) * 2020-04-03 2020-08-25 北京仿真中心 Image simulation method, image computer and target simulator

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1804804A (en) * 2005-11-23 2006-07-19 中国航天科技集团公司第一研究院 HLA-based distributed interactive simulation platform and implementation method thereof
US7412371B2 (en) * 2004-06-08 2008-08-12 Northrop Grumman Corporation Time synchronized playback and control of dissimilar data files
CN103544351A (en) * 2013-10-25 2014-01-29 北京世纪高通科技有限公司 Method and device for adjusting parameters of simulation model

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7412371B2 (en) * 2004-06-08 2008-08-12 Northrop Grumman Corporation Time synchronized playback and control of dissimilar data files
CN1804804A (en) * 2005-11-23 2006-07-19 中国航天科技集团公司第一研究院 HLA-based distributed interactive simulation platform and implementation method thereof
CN103544351A (en) * 2013-10-25 2014-01-29 北京世纪高通科技有限公司 Method and device for adjusting parameters of simulation model

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
YI HAN,ET AL.: "Space-based Laser Active Imaging Simulation System Based on HLA", 《INTERNATIONAL SYMPOSIUM ON PHOTOELECTRIC DETECTION AND IMAGING 2013》 *
张新宇等: "HLA数据回放及其可通用性问题研究", 《国防科技大学学报》 *
杨祥忠等: "对象序列化技术在HLA仿真数据处理中的应用", 《系统仿真技术》 *
陈宏等: "基于HLA的仿真系统的记录与回放", 《系统仿真学报》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111586259A (en) * 2020-04-03 2020-08-25 北京仿真中心 Image simulation method, image computer and target simulator
CN111586259B (en) * 2020-04-03 2022-09-23 北京仿真中心 Image simulation method, image computer and target simulator

Also Published As

Publication number Publication date
CN106681167B (en) 2019-08-20

Similar Documents

Publication Publication Date Title
CN113221318B (en) DDS-based system-level simulation test environment construction method
CN109062777B (en) General automatic test system of track traffic signal equipment
CN100588204C (en) A kind of real-time viewing platform of communication network simulation tool and its implementation
CN103905834B (en) The method and device of audio data coding form conversion
WO2002082810A1 (en) Video reproduction apparatus for digital video content, video reproduction method, video reproduction program, and package medium
CN108564966A (en) The method and its equipment of tone testing, the device with store function
CN105912474A (en) Game online debugging method and system as well as edit server
CN101174237B (en) Automatic test method, system and test device
CN102480467A (en) SOC (System on a Chip) software and hardware collaborative simulation verification method based on network communication protocol
CN103927777A (en) Organization and control method of three-dimensional animation process based on Mealy finite state automatas
CN106484464A (en) Tuner chip driving method and electronic equipment
CN104935936A (en) Entropy decoder authentication method based on UVM and device
CN104317957A (en) Open platform and system for processing reports and report processing method
CN104536734A (en) System and method for managing general game sound effects
CN106354515A (en) SystemC code generation system based on model
CN106681167B (en) The unrelated general record playback system of model and method
CN100417075C (en) Interface test method
CN110109658A (en) A kind of ROS code generator and code generating method based on formalized model
CN106682249A (en) Model-independent general-purpose publish/subscribe interface testing system and model-independent general-purpose publish/subscribe interface testing method
CN113868778B (en) Simulation scene management method and device
CN112363409B (en) Operating condition backtracking and rehearsing system of nuclear power plant security level instrument control simulation system
CN111274750B (en) FPGA simulation verification system and method based on visual modeling
CN106685811A (en) Protocol-based universal gateway and implementation method thereof
CN101115048A (en) 3C TV program database administration method
CN103905455A (en) Communication protocol platform and access method thereof

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