CN106681167B - The unrelated general record playback system of model and method - Google Patents

The unrelated general record playback system of model and method Download PDF

Info

Publication number
CN106681167B
CN106681167B CN201510753860.7A CN201510753860A CN106681167B CN 106681167 B CN106681167 B CN 106681167B CN 201510753860 A CN201510753860 A CN 201510753860A CN 106681167 B CN106681167 B CN 106681167B
Authority
CN
China
Prior art keywords
simulation model
record
data
record playback
module
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
CN201510753860.7A
Other languages
Chinese (zh)
Other versions
CN106681167A (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 present invention discloses a kind of unrelated general record/playback system of model and method, the system includes: conventional main frame module and at least one record playback channels module corresponding with simulation model, conventional main frame module, creation and unloading record playback channels module, and manage record playback channels module and the record of the emulation data of its corresponding simulation model is played back;Playback channels module is recorded, the record playback of the emulation data of corresponding simulation model is executed.The record playback of simulation model is completed by multiple record playback channels processes in technical solution of the present invention, records loose coupling between playback channels process, and the special record playback of certain class simulation model will not influence other simulation models;The foundation of playback channels process is recorded, it is automatic, accurate, manpower adjustment code is not needed, is promoted in terms of reliability and stability significant.

Description

The unrelated general record playback system of model and method
Technical field
The present invention relates to digital simulation technique fields.It is played back more particularly, to a kind of general record that model is unrelated and is System and method.
Background technique
There are a variety of interactive standards specifications and architectures, such as HLA standard (IEEE Std in Digital Simulation experiment 1516, IEEE Standard for Modeling), TENA system (Test and Training Enabling Architecture).With emulation demand in scale, range and formal expansion and upgrading, and consider resource reuse, The factors such as time cost influence, and mostly simulate resource in Digital Simulation with record playback tool software, reduce cost.
In Digital Simulation experiment, model protocol has the characteristics that complicated, changeable, disunity.Currently, record playback design side Method, which is realized, relies on model protocol, and model protocol, which slightly adjusts, can cause adverse effect to record playback, leads to misregistration number According to, playback wrong data, finally seriously affect the result of digital simulation, therefore, in order to adapt to new model protocol, need manpower hand Dynamic modification, adjustment record back method, work are time-consuming, complicated, error-prone.
Accordingly, it is desirable to provide a kind of general record playback system that model is unrelated and method.
Summary of the invention
The purpose of the present invention is to provide a kind of general record playback system that model is unrelated and methods, solve Digital Simulation In, due to record playback software and simulation model close coupling, not general, simulation model adjustment or modification, record playback software is not The problem of adaptation can be regenerated automatically, cause simulation result incorrect or even simulation node delay machine.
In order to achieve the above objectives, the present invention adopts the following technical solutions:
A kind of general record playback system that model is unrelated, comprising:
Conventional main frame module and at least one record playback channels module corresponding with simulation model,
Conventional main frame module, creation and unloading record playback channels module, and record playback channels module is managed to institute State the record playback of the emulation data of the corresponding simulation model of record playback channels module;
Playback channels module is recorded, the record playback of the emulation data of corresponding simulation model is executed.
Preferably, the conventional main frame module management record playback channels module is corresponding to record playback channels module Simulation model emulation data record playback include dispatch, load, start and stop record playback channels module to record The record of the emulation data of the corresponding simulation model of playback channels module plays back.
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 title and attribute of corresponding simulation model Feature, and store label;
Simulation model Data Serialization part, the emulation data of corresponding simulation model are primary by its field, type It reads and is stored in continuous caching, conversion emulation data are caching;
Simulation model data unserializing part, the emulation data of the corresponding simulation model in continuous caching are primary It reads, constructive simulation model data, conversion caching is emulation data;
Simulation Application runs support section, and simulation process is added using affiliated record playback channels module as using role, And realize to data in magnetic disk by the support that treated sends of emulation data unserializing part, it realizes and affiliated record is played back Channel module receives the emulation data and is stored on disk after the processing of simulation model Data Serialization part Support.
A kind of general record back method that model is unrelated, this method comprises the following steps:
When Digital Simulation starts, the record playback channels process of simulation model is created;
Start the record playback channels process, carries out the record playback of the emulation data of simulation model;
At the end of Digital Simulation, the record playback channels process is closed, terminates the record playback of emulation data.
Preferably, the record playback channels process of the creation simulation model further comprises following sub-step:
The parsing for completing simulation model, reads the title and attributive character of corresponding simulation model, and store label;
The emulation data of corresponding simulation model are once read by its field, type and are stored in continuous caching, Conversion emulation data are caching;
The emulation data of corresponding simulation model in continuous caching are once read, constructive simulation model data turns Change caching as emulation data;
Simulation process is added using affiliated record playback channels module as using role, and realizes to data in magnetic disk by imitative The support that treated sends of true data unserializing part, realizes and receives the emulation number to affiliated record playback channels module The support being stored in after being handled according to and by simulation model Data Serialization part on disk.
Preferably, the record playback of the emulation data for carrying out simulation model further comprises following sub-step:
Publication operation is opened, the data recorded are selected and sends frame frequency, playback emulation data;
Open subscription operation, the form of selection record data and position, record emulation data.
Preferably, this method further comprises the steps of:
If Digital Simulation no longer needs to record the emulation data of playback simulation model, the record for unloading the simulation model is returned Put channel process.
Beneficial effects of the present invention are as follows:
The record playback of simulation model is completed by multiple record playback channels processes in technical solution of the present invention, record The special record playback of loose coupling between playback channels process, certain class simulation model will not influence other simulation models;It records back The foundation of channel process is put, it is automatic, accurate, manpower adjustment code is not needed, is promoted in terms of reliability and stability significant.
Currently, the scale and range of Digital Simulation are growing, for rare, high-cost artificial resource, one is needed Kind of method can be accurate, stable simulation resource, reduce cost, technical solution of the present invention is exactly the solution towards this demand Scheme has broad application prospects.
Detailed description of the invention
Specific embodiments of the present invention will be described in further detail with reference to the accompanying drawing.
Fig. 1 shows the schematic diagram of the unrelated general record playback system of model.
Fig. 2 shows the schematic diagrames of creation record playback channels process in the unrelated general record back method of model.
Specific embodiment
In order to illustrate more clearly of the present invention, the present invention is done further below with reference to preferred embodiments and drawings It is bright.Similar component is indicated in attached drawing with identical appended drawing reference.It will be appreciated by those skilled in the art that institute is specific below The content of description is illustrative and be not restrictive, and should not be limited the scope of the invention with this.
Embodiment 1
As shown in Figure 1, the general record playback system that model provided in this embodiment is unrelated, comprising:
Conventional main frame module and at least one record playback channels module corresponding with simulation model,
Conventional main frame module, creation and unloading record playback channels module, and record playback channels module is managed to this Record the record playback of the emulation data of the corresponding simulation model of playback channels module;
Playback channels module is recorded, the record playback of the emulation data of corresponding simulation model is executed.
A conventional main frame module, which can control, in the unrelated general record playback system of model manages multiple record back Put channel module.
The substantially function of conventional main frame module and record playback channels module is described as follows:
Conventional main frame module is responsible for creating, dispatching, loading, starting, stopping, unloading as the main line of general record playback Record record playback channels module.Conventional main frame module is the interface of user's control record playback, and user can pass through general main frame The operation of frame module starting/stopping control record playback channels module.
Playback channels module is recorded, is that conversion module, physics are read in an independent storage based on data packet in logic On be an independent dynamic link library, by conventional main frame module creation, scheduling, load and unloading.Record playback channels mould Block supports the functions such as starting, stopping.The storage for the emulation data that one record playback channels module completes a kind of simulation model is read It takes, the record playback of the multimodal data of Digital Simulation network is realized by corresponding multiple record playback channels module joints 's.
The detailed functions of conventional main frame module and record playback channels module are described as follows,
Conventional main frame module:
If emulating the existing corresponding record playback channels module of simulation model that data need to record playback, general master Frame module selection starting record playback channels module;If emulating the simulation model that data need record to play back, there is no corresponding Playback channels module is recorded, then conventional main frame module needs to select the simulation model, and it is logical to create associated record playback Road module then restarts the record playback channels module;
Wherein
The process of conventional main frame module creation record playback channels module is made of four parts, i.e., simulation model parses Partially, simulation model Data Serialization part, simulation model data unserializing part and Simulation Application run support section:
Simulation model parses part, this part is the inlet module of creation record playback channels module, is completed by the module The parsing of simulation model, the title of reading object model, emulation attributive character, including type, name etc., and store label.It is imitative True mode parses part, for supporting other three parts, i.e. simulation model Data Serialization part, simulation model data inverted sequence Columnization part and Simulation Application run support section.
Simulation model Data Serialization part, this part are to parse part based on simulation model, will be imitated according to simulation model True mode data are once read by its field, type and are stored in continuous caching, convert simulation model data in caching, and will The buffer pointers and big brief biography are in Simulation Application operation support section.
Simulation model data unserializing part, this part are to parse part based on simulation model, will according to simulation model Data in continuous caching are once read, constructive simulation model data, and conversion caching is emulation data, and the emulation data are passed Support section is run in Simulation Application.
Simulation Application runs support section, this part is the through part for recording playback channels process, including simulation run The operation such as environment, simulation model publish/subscribe.Simulation running environment to record playback channels module as using role's addition Simulation process;Simulation model publication operation is so that data in magnetic disk is sent out after simulation model data unserializing part is handled It send;Simulation model subscription operation makes record playback channels process be able to receive simulation model data and passes through simulation model data Serializing part is stored on disk after handling.
It is selected according to user's simulation model, the aforementioned four part of conventional main frame Module Generation simultaneously generates engineering text Part, compiling link generate dynamic link library.
Start opened record playback channels process, it can carry out the record playback of corresponding simulation model.
When digital network emulation terminates, conventional main frame module closes relevant record playback channels module, terminates corresponding Data logger grid playback.
If network simulation, which no longer needs to record, plays back certain class simulation model, relative recording playback channels module is unloaded.
Playback channels module is recorded by conventional main frame module creation, scheduling, load, display, starting, stopping and unloading.
Record playback channels module executes the process of the record playback of the emulation data of corresponding simulation model are as follows:
Publication operation is opened, the data and send frame frequency that user's selection has recorded can play back Simulation Application data;
Subscription operation is opened, user selects form and the position of record data, can start recording Simulation Application data.
After record playback channels module receives the ceasing and desisting order of conventional main frame module, then no longer receive by simulation model number According to the incoming simulation model data in unserializing part and stop sending, meanwhile, stop subscribing to simultaneously no longer incoming simulation model number According to serializing part.
Record playback channels process is finally terminated by the unloading of general framework master control process.
Embodiment 2
The unrelated general record back method of model provided in this embodiment, includes the following steps:
When Digital Simulation starts, the record playback channels process of simulation model is created;
Starting record playback channels process carries out the record playback of the emulation data of simulation model;
At the end of Digital Simulation, record playback channels process is closed, terminates the record playback of emulation data.
Wherein
This method provides a main interface, for creating, dispatching, load, start, stop, unloading record playback channels mistake Journey.User passes through main interface starting/stopping control record playback channels process.
Playback channels process is recorded, is that conversion process, physics are read in an independent storage based on data packet in logic On be an independent dynamic link library, by main interface creation, scheduling, load, unloading.Playback channels process is recorded, supports to open The functions such as dynamic, stopping.The storage for the emulation data that one record playback channels process completes a kind of simulation model is read, and number is imitative The record playback of the multimodal data of true network is realized by corresponding a plurality of record playback channels combine processes.
As shown in Fig. 2, step " when Digital Simulation starts, creating the record playback channels process of simulation model " is specific Process are as follows:
If emulating the existing corresponding record playback channels process of simulation model that data need to record playback, selection is opened Dynamic record playback channels module;Corresponding record playback channels mistake is not present if emulating data and needing to record the simulation model played back Journey then needs to select the simulation model, creates associated record playback channels process, and it is logical then to restart record playback Road process;
Creation record playback channels process is made of four parts, is respectively created: simulation model parsing part, emulation mould Type Data Serialization part, simulation model data unserializing part and Simulation Application run support section.
Simulation model parses part, this part is the inlet module of creation record playback channels process, is completed by the module The parsing of simulation model, the title of reading object model, emulation attributive character, including type, name etc., and store label.It is imitative True mode parses part, for supporting other three parts, i.e. simulation model Data Serialization part, simulation model data inverted sequence Columnization part and Simulation Application run support section.
Simulation model Data Serialization part, this part are to parse part based on simulation model, will be imitated according to simulation model True mode data are once read by its field, type and are stored in continuous caching, and transformation model data are delayed in caching, and by this It deposits pointer and big brief biography and runs support section in Simulation Application.
Simulation model data unserializing part, this part are to parse part based on simulation model, will according to simulation model Data in continuous caching are once read, constructive simulation model data, and conversion caching is simulation model, and by the simulation model number Support section is run in Simulation Application according to passing.
Simulation Application runs support section, this part is the through part for recording playback channels process, including simulation run The operation such as environment, simulation model publish/subscribe.Simulation running environment to record playback channels process as using role's addition Simulation process;Simulation model publication operation is so that data in magnetic disk is sent out after simulation model data unserializing part is handled It send;Simulation model subscription operation makes record playback channels process be able to receive simulation model data and passes through simulation model data Serializing part is stored on disk after handling.
It is selected according to user's simulation model, general main interface automatically generates aforementioned four part and generates project file, compiles It translates link and generates dynamic link library.
After " when Digital Simulation starts, creating the record playback channels process of simulation model ",
Starting record playback channels process, it can carry out the record playback of corresponding simulation model.
When digital network emulation terminates, the relevant record playback channels process of closing terminates corresponding Data logger grid Playback.
If network simulation, which no longer needs to record, plays back certain class simulation model, relative recording playback channels process is unloaded.
The detailed process of step " starting record playback channels process carries out the record playback of the emulation data of simulation model " Are as follows:
After opening publication operation, the data and send frame frequency that user's selection has recorded can play back Simulation Application data.
After opening subscription operation, user selects form and the position of record data, can start recording Simulation Application data.
After record playback channels process receives the ceasing and desisting order of general framework master control process, then no longer receive by simulation model The incoming simulation model data in data unserializing part simultaneously stop sending, meanwhile, stop subscribing to and is no longer passed to simulation model Data Serialization part.
Obviously, the above embodiment of the present invention be only to clearly illustrate example of the present invention, and not be pair The restriction of embodiments of the present invention may be used also on the basis of the above description for those of ordinary skill in the art To make other variations or changes in different ways, all embodiments can not be exhaustive here, it is all to belong to this hair The obvious changes or variations that bright technical solution is extended out are still in the scope of protection of the present invention.

Claims (5)

1. a kind of general record playback system that model is unrelated characterized by comprising
Conventional main frame module and at least one record playback channels module corresponding with simulation model,
Conventional main frame module, creation and unloading record playback channels module, and record playback channels module is managed to recording back Put the record playback of the emulation data of the corresponding simulation model of channel module;
Playback channels module is recorded, the record playback of the emulation data of corresponding simulation model is executed;
The process of conventional main frame module creation record playback channels module includes:
Simulation model parses part, completes the parsing of simulation model, reads the title and attributive character of corresponding simulation model, And store label;
Simulation model Data Serialization part is once read the emulation data of corresponding simulation model by its field, type And be stored in continuous caching, conversion emulation data are caching;
Simulation model data unserializing part once reads the emulation data of the corresponding simulation model in continuous caching It takes, constructive simulation model data, conversion caching is emulation data;
Simulation Application runs support section, simulation process is added using affiliated record playback channels module as using role, and real Now data in magnetic disk is realized by the support that treated sends of emulation data unserializing part to affiliated record playback channels Module receives the emulation data and is stored in the support on disk after the processing of simulation model Data Serialization part.
2. the unrelated general record playback system of model according to claim 1, which is characterized in that the conventional main frame Module management records playback channels module and returns to the record of the emulation data of the corresponding simulation model of record playback channels module It puts including scheduling, load, start and stop record playback channels module to the corresponding simulation model of record playback channels module Emulation data record playback.
3. a kind of general record back method that model is unrelated, which is characterized in that this method comprises the following steps:
When Digital Simulation starts, the record playback channels process of simulation model is created;
Start the record playback channels process, carries out the record playback of the emulation data of simulation model;
At the end of Digital Simulation, the record playback channels process is closed, terminates the record playback of emulation data;
The record playback channels process of the creation simulation model further comprises following sub-step:
The parsing for completing simulation model, reads the title and attributive character of corresponding simulation model, and store label;
The emulation data of corresponding simulation model are once read by its field, type and are stored in continuous caching, conversion Emulating data is caching;
The emulation data of corresponding simulation model in continuous caching are once read, constructive simulation model data, conversion is slow Save as emulation data;
Simulation process is added using affiliated record playback channels module as using role, and realizes to data in magnetic disk by emulation number According to the support that treated sends of unserializing part, realizes and the emulation data are received simultaneously to affiliated record playback channels module The support being stored in after the processing of simulation model Data Serialization part on disk.
4. the unrelated general record back method of model according to claim 3, which is characterized in that described to carry out emulation mould The record playback of the emulation data of type further comprises following sub-step:
Publication operation is opened, the data recorded are selected and sends frame frequency, playback emulation data;
Open subscription operation, the form of selection record data and position, record emulation data.
5. the unrelated general record back method of model according to claim 3, which is characterized in that this method further includes step It is rapid:
If Digital Simulation no longer needs to record the emulation data of playback simulation model, the record playback for unloading the simulation model is logical Road 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 CN106681167A (en) 2017-05-17
CN106681167B true 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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111586259B (en) * 2020-04-03 2022-09-23 北京仿真中心 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 中国航天科技集团公司第一研究院 Distributed interactive simulation platform based on HLA and implementing 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 中国航天科技集团公司第一研究院 Distributed interactive simulation platform based on HLA and implementing 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
HLA数据回放及其可通用性问题研究;张新宇等;《国防科技大学学报》;20071231;第29卷(第5期);全文
Space-based Laser Active Imaging Simulation System Based on HLA;Yi Han,et al.;《International Symposium on Photoelectric Detection and Imaging 2013》;20131231;第8905卷;全文
基于HLA的仿真系统的记录与回放;陈宏等;《系统仿真学报》;20060331;第18卷(第3期);全文
对象序列化技术在HLA仿真数据处理中的应用;杨祥忠等;《系统仿真技术》;20080731;第4卷(第3期);全文

Also Published As

Publication number Publication date
CN106681167A (en) 2017-05-17

Similar Documents

Publication Publication Date Title
CN113221318B (en) DDS-based system-level simulation test environment construction method
CN105260555B (en) A kind of fault injection system and its method based on Modelica models
CN102045191B (en) Method and equipment for testing compatibility after upgrading of system
CN103744647B (en) A kind of Java workflow development system and method based on workflow visualization toolkit
CN102591754A (en) Automatic testing method for electronic product controlled by computer
CN105912474A (en) Game online debugging method and system as well as edit server
CN105468797B (en) A kind of information processing method and device
WO2003042876A2 (en) Synchronization of distributed simulation nodes by keeping timestep schedulers in lockstep
CN102480467A (en) SOC (System on a Chip) software and hardware collaborative simulation verification method based on network communication protocol
WO2014180106A1 (en) Activity diagram model-based system behavior simulation method
CN101174237B (en) Automatic test method, system and test device
CN104461881A (en) ICD-oriented ARINC429 bus signal simulation test assembly
CN103927777A (en) Organization and control method of three-dimensional animation process based on Mealy finite state automatas
CN103617004A (en) Tool and method for performing read-write tests on distributed file system
CN106681167B (en) The unrelated general record playback system of model and method
CN106354515A (en) SystemC code generation system based on model
CN107133160B (en) Server and client
CN108920825A (en) A kind of SoC visual data manager based on IP kernel
CN110109658A (en) A kind of ROS code generator and code generating method based on formalized model
CN108959058A (en) A kind of configuration and debugging device implementation method of Virtual Controller
CN100417075C (en) Interface test method
CN105677560A (en) Testing method, device and system
US8863095B2 (en) Recording and playback of system interactions in different system environments
CN106685811B (en) Universal gateway and its implementation based on agreement
CN106682249A (en) Model-independent general-purpose publish/subscribe interface testing system and model-independent general-purpose publish/subscribe interface testing method

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