[go: up one dir, main page]

CN102289552B - Combined test system and method adopting material object devices and mathematical models - Google Patents

Combined test system and method adopting material object devices and mathematical models Download PDF

Info

Publication number
CN102289552B
CN102289552B CN 201110268323 CN201110268323A CN102289552B CN 102289552 B CN102289552 B CN 102289552B CN 201110268323 CN201110268323 CN 201110268323 CN 201110268323 A CN201110268323 A CN 201110268323A CN 102289552 B CN102289552 B CN 102289552B
Authority
CN
China
Prior art keywords
time
model
mathematical model
data
interface
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
CN 201110268323
Other languages
Chinese (zh)
Other versions
CN102289552A (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.)
China Academy of Launch Vehicle Technology CALT
Original Assignee
China Academy of Launch Vehicle Technology CALT
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 China Academy of Launch Vehicle Technology CALT filed Critical China Academy of Launch Vehicle Technology CALT
Priority to CN 201110268323 priority Critical patent/CN102289552B/en
Publication of CN102289552A publication Critical patent/CN102289552A/en
Application granted granted Critical
Publication of CN102289552B publication Critical patent/CN102289552B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

一种实物设备与数学模型进行联合试验的系统由数学模型、模型包装器、实物设备、桥接器、可视化节点组成;数学模型经模型包装器通过通信中间件与其它模型和桥接器互连;各实物设备和实物设备代理通过实时共享内存网互连;桥接器由实物设备代理和时间管理模块组成;实物设备代理读取实物设备的物理时钟并传给时间管理模块;读取实物设备的数据并发送给订购此数据的其它数学模型的包装器,由包装器调用模型的接口传递给模型。模型包装器和实物设备代理将需要可视化的数据通过可视化接口发送给可视化节点。本发明解决了试验系统中实物设备与数学模型的交互问题,以及数学模型与数学模型和实物设备与数学模型的集成方法与推进问题。

Figure 201110268323

A system for joint testing of physical equipment and mathematical models is composed of mathematical models, model wrappers, physical equipment, bridges, and visualization nodes; the mathematical models are interconnected with other models and bridges through model wrappers and communication middleware; The physical device and the physical device agent are interconnected through a real-time shared memory network; the bridge is composed of the physical device agent and the time management module; the physical device agent reads the physical clock of the physical device and transmits it to the time management module; reads the data of the physical device and Wrapper sent to other math models ordering this data, passed to the model by the wrapper calling the model's interface. The model wrapper and physical device agent send the data that needs to be visualized to the visualization node through the visualization interface. The invention solves the interactive problem of physical equipment and mathematical model in the test system, and the integration method and promotion problem of mathematical model and mathematical model, physical equipment and mathematical model.

Figure 201110268323

Description

A kind of equipment in kind and mathematical model Combined Trials system and method
Technical field
The present invention relates to a kind of equipment in kind and mathematical model carried out system and its implementation of Combined Trials, belong to the virtual experiment technology field.
Background technology
Along with politics, the restriction of economic dispatch factor and the needs of military developments, in the national defense industry field, the research of carrying out virtual experiment technology becomes more and more important.Virtual test is to utilize the microcomputer modelling emulation technology to combine measuring technology, the communication technology and computer networking technology, for performance test, the technical indicator of weaponry are examined, a kind of test new technology of synthetic effectiveness evaluation exploitation.Virtual test just develops towards " actual situation combination " and the direction of " comprehensive integration ".Equipment in kind and mathematical model integrated carry out the effective means that Combined Trials has become " actual situation combines " in the virtual test at present.The High Level Architecture that U.S. Department of Defense proposes (High Level Architecture is called for short HLA) standard has well solved the integration problem between " void " model (mathematical model) in the virtual test.And HLA is short of aspect real-time to some extent, can not satisfy the real-time demand of matter emulation or HWIL simulation.Real-Time Sharing internal memory net can solve this problem, well satisfies the real-time demand.
People's such as Qin Daguo " a kind of distributed simulation based on two bridges is striden the agreement interconnecting method " (system emulation journal) solved the interconnection and interflow problem of distributed interactive simulation (Distributed Interactive Simulation is called for short DIS) and HLA.But DIS and HLA can not well satisfy the real-time demand.Yuan Dan " research and the realization of network system expansion in the distributed real-time emulation " (flood is science and technology all) has solved the problem of SBS and VMIC interconnection and interflow.Though SBS and VMIC are well positioned to meet the real-time demand, its extensibility and interoperability are not as good as HLA.The present invention links to each other equipment in kind or half equipment in kind through Real-Time Sharing internal memory net (reflective memory net); Carry out each mathematical model integrated through HLA; Again virtual test is built in Real-Time Sharing internal memory net and HLA interconnection and carried out Combined Trials.The present invention can satisfy the real-time demand of material object or HWIL simulation, has reusability, extensibility and interoperability again.
Summary of the invention
Technical matters to be solved by this invention: the deficiency that overcomes prior art; A kind of system and its implementation of equipment in kind and mathematical model being carried out Combined Trials is provided; This System and method for has solved the interaction problems of equipment in kind and mathematical model in the pilot system, and the integrated approach and the propelling problem of mathematical model and mathematical model and equipment in kind and mathematical model.
Technical scheme of the present invention: a kind of equipment in kind and mathematical model Combined Trials system, each mathematical model that will have unified interface based on the model wrapper of HLA/RTI is integrated; Bridge is communicated with equipment in kind and is responsible for the real-time time propelling of whole test with each mathematical model.Characteristic based on the Combined Trials system and method for equipment in kind and mathematical model comprises:
Mathematical model, equipment in kind, model wrapper, bridge and visual node; Wherein:
Said each mathematical model has unified interface;
It is integrated that said model wrapper will have each mathematical model of unified interface: the model wrapper joins in the federation as a federal member; Announce the information that mathematical model need be exported; Order the information that mathematical model need be imported, the interface of recursive call mathematical model transmits the data of mathematical model; The service interface that calls the RTI net simultaneously carries out the data forwarding of mathematical model alternately to the online wrapper corresponding with other mathematical model of RTI;
Said bridge is made up of proxy for equipment module in kind and time management module; The proxy for equipment module in kind and the model wrapper of bridge interconnect equipment in kind and mathematical model: the proxy for equipment module in kind of bridge joins in the federation of whole test as federal member; Announce the information that equipment in kind need be exported; And reading the device data in kind on the Real-Time Sharing internal memory net (VMIC), the service interface through the RTI net sends to the online and mathematical model of RTI with data to carry out alternately;
The time management module of said bridge is introduced priority query the time in the test is managed: the physical time of the time of whole test according to equipment in kind advances; When each model wrapper advances; The clock that the time for reading administration module sends; If the time reaches the time that model is asked, the interface that the model wrapper is called mathematical model advances, and pushes away after the further completion next step request time of mathematical model is sent to the time management module; The time management module reads the phy clock of equipment in kind and is stored in the system time formation, and the request time of each mathematical model that will receive simultaneously is stored in the Request Priority formation; During time management module transmitting time, read phy clock, and judge whether request time is arranged in the priority query, if having then when system time is advanced to this time point, this request time is sent to each mathematical model;
Said model wrapper and bridge utilize visualization interface that test figure is sent to visual node to show: announce corresponding object class and interactive class when the proxy for equipment module in kind of model wrapper and bridge starts, visual node is ordered corresponding object class and interactive class; Model wrapper and proxy for equipment module in kind will need visual data to send to visual node with the form of object class and interactive class respectively during operation, and visual node utilization two dimension or three-dimensional visualization technique show.
The present invention's beneficial effect compared with prior art:
(1) has " actual situation combination " ability.Equipment in kind and mathematical model can be carried out Combined Trials, have solved the interconnection and interflow problem of equipment in kind and mathematical model.Equipment in kind can verify in virtual environment that virtual mathematical model can be carried out alternately to verify the correctness of mathematical model with equipment in kind.
(2) through based on the model wrapper of HLA/RTI that mathematical model is integrated, each model all adds test with federal member through the packing of model wrapper, and total system is with good expansibility.
(3) each mathematical model adopts unified interface to write, and the model of writing adds test through general model wrapper packing back, and different tests can repeatedly utilize same mathematical model, and mathematical model has reusability preferably.
(4) pass through Real-Time Sharing internal memory net with apparatus interconnection in kind, can guarantee the real-time that matter emulation or HWIL simulation are required.The time of system advances the phy clock according to equipment in kind to advance, and makes Combined Trials possess real-time.
Description of drawings
Fig. 1 is that system of the present invention forms structured flowchart;
Fig. 2 is that model wrapper of the present invention realizes figure;
Fig. 3 is that proxy for equipment module in kind of the present invention realizes figure;
Fig. 4 is that the data read module in the proxy for equipment module in kind of the present invention is realized figure;
Fig. 5 is that the emulation module in the proxy for equipment module in kind of the present invention is realized figure;
Fig. 6 is that time management module of the present invention realizes figure;
Fig. 7 is realization flow figure of the present invention.
Embodiment
As shown in Figure 1, system of the present invention is made up of mathematical model, model wrapper, equipment in kind, bridge, visual node etc.Each mathematical model interconnects through communication middleware (native system adopt be the realization RTI of HLA standard) and other model and bridge through the model wrapper.Each equipment in kind and proxy for equipment in kind are through the interconnection of Real-Time Sharing internal memory net, and what Real-Time Sharing internal memory net of the present invention adopted is VMIC reflective memory net.Equipment in kind and mathematical model are through the bridge interconnection.Bridge is made up of proxy for equipment in kind and time management module.Proxy for equipment in kind reads the phy clock of equipment in kind and passes to the time management module; Read the data of equipment in kind and send to the wrapper of other mathematical model of ordering these data, the interface that is called model by wrapper passes to model.Model wrapper and proxy for equipment in kind need visual data send to visual node through visualization interface.Visualization interface is based on some object class and the interactive class of HLA.
Mathematical model among the present invention is write according to unified interface.Unified model interface comprises 5, can carry out initialization to model; The incident of input, time and data; The Debugging message that output model need be exported etc.Concrete interface definition is (wherein IN and OUT represent parameter type, and IN represents input parameter, and OUT represents output parameter, and IN and OUT are parameter name at the back) as follows:
(1) initialization interface InitModel (IN initFile): model is carried out initialization, can specify initialization files initFile to model, model reads initialization files model is carried out initial setting up.
(2) receive event interface Receivelnteraction (IN t, IN interaction): the incident that input model receives, parametric t are the time point when receiving incident, and interaction is the event data of receiving.
(3) send event interface Sendlnteraction (IN t, OUT interaction): the incident that output model will be exported, the time point when parametric t is the transmission incident, interaction are the event data that model will be exported.
(4) advance interface GoStep (IN&&OUT t, IN inObjs, OUT outObj): model pushes away further; Parametric t is input parameter before interface is called; Import the time point when advancing into, call the back and be output parameter, be worth for next asks the time point that advances constantly; InObjs is other model data (can be the data of a model, also can be the data of a plurality of models) that model needs; OutObj is the output data of this model.
(5) check Debugging message interface DebugMessage (OUT message): call this interface can output model inner output information, can check the internal operation situation and the debugging model of model, message is the output information of model.
Model wrapper among the present invention is packed above-mentioned mathematical model with unified interface, calls each interface of model and is responsible for the information transmission of model and other model through the service interface of communication middleware, and its implementation is as shown in Figure 2.At first analytic model prefer file, the essential information that obtains model comprises: model name, model initialization files, the announcement order relations of the path of model file and model and other model.Path stress model dynamic link library according to model calls initialization interface InitModel initial model, calls the service interface (being the HLA service interface) of RTI net and creates federation, adds federal.Prefer the information announcement and corresponding object class of order and interactive class, registry object instance that obtains according to parsing.The time that wrapper is sent the time management module is used queue stores; Whether free judge in the formation earlier when whether judgement time advances; If have then whether the application time of comparison model matees with the current propelling time; If mate then whether judgment models receives that (incident of model realizes with the interactive class of communication middleware for the incident of other model; When model was received the interactive class of other model transmission, middleware can call the call back function notice), give model if there is the interactive class input to call reception event interface Receivelnteraction with the interactive class data transfer.Next call and advance interface GoStep to let Model Calculation push ahead, and return next request time point and model through this interface and push away the output data after further.And request time is sent to the time management module through the HLA service interface, the output data of model is sent to other model and visual node.Then call model transmission event interface Sendlnteraction judgement and have or not interactive class output, interactive class is sent to other model if having then call the RTI service interface.Call to call behind each interface of model and check that Debugging message interface DebugMessage checks the Debugging message of model output.Judge at last whether test finishes,, then continue judgement time and advance if do not finish; If finish, then withdraw from and destroy federation.
Bridge of the present invention is made up of proxy for equipment in kind and time management module.The data that proxy for equipment in kind is responsible for transmitting equipment in kind are to mathematical model, and it is made up of data read module and emulation module, and data read module reads the data of equipment in kind; Emulation module is gone out the data forwarding that reads.Proxy for equipment implementation in kind is as shown in Figure 3; At first resolve and prefer equipment in kind and the relation of other model and the essential information of whole test that file obtains acting on behalf of; Then create federation, add federation, announce and order corresponding object class and interactive class; Send the initialization interactive class and give visual node, then log-on data read module and emulation module.
In order to improve concurrent ability, data read module is an independent thread.The implementation of data read module is as shown in Figure 4.Thread is opened the VMIC plate earlier and plate is carried out initialization after starting.
Next the poll zone bit checks whether equipment in kind has new data, if having then reading of data and store the zone bit of resetting simultaneously.The data that read are divided into two types, and one type is the phy clock of equipment in kind, the another kind of real time data that is physical equipment at each time point.Adopt two data structures to store during data read module storage data.Phy clock adopts queue stores to be called the system time formation, and the The data index stores of each time point is convenient to emulation module is obtained equipment in kind with the constant time when the time advances data like this.
The implementation of emulation module is as shown in Figure 5.If federation does not exist then creates federally during beginning, then add federally, send the initialization interactive class for visual node, let the three-dimensional visualization node accomplish initial work.The time management module judges whether to advance, if advance then the new data of from index, getting equipment in kind sends to other model and visual node.The real time data that detects equipment in kind has judged whether that incident sends, if having then send interactive class and give other model and send the performance interactive class and give the three-dimensional visualization node by its display effect; Judge at last whether test finishes,, destroy federal if finish then withdraw from federation.
The time request that each model wrapper is sent is collected in the system time formation of time management module reading of data read module, and each time point is stored in is called request queue in the priority query.Judge whether that the flow process that advances is as shown in Figure 6.Judge that at first whether request queue is empty,,, show that then equipment in kind begins to advance and each mathematical model has begun request time if be empty if for sky then judge whether the system time formation is empty.Follow extraction system time and request time, request time is to be stored in the priority query, can guarantee that so each request time that takes out is a minimum value, and the time advances the minimum step according to each model to advance.Whether sent before judging this request time point, if send, then the request time formation goes out team.Whether do not judge system time more than or equal to request time if send, if then advance the current request time point.If request queue then advances current system time point for the formation of sky system time is not empty.
Visualization interface is the set of some object class and interactive class.The emulation module of model wrapper and proxy for equipment in kind is announced these object class and interactive class, and the three-dimensional visualization node is ordered these object class and interactive class.The data message of mathematical model and equipment in kind such as coordinate and attitude information etc. are transferred to visual node through RTI with the form of object class; The event information of mathematical model and equipment in kind is as separating and information such as blast is transferred to visual node through RTI with the form of interactive class.As required, can define a plurality of object class, the attribute of each object class can be self-defined, but need consistent with the object class of visual node definition.Interactive class only defines one, and for general, the parameter of interactive class only is provided with one, and during the RTI transmission, concrete transmission content (as comprising event type and the data relevant with incident) is transmitted through this parameter.
Total system implementation of the present invention is as shown in Figure 7, and visual node starts during beginning, and the node of each deployment model wrapper and proxy for equipment in kind starts.Proxy for equipment in kind and model wrapper send the initialization interactive class for visual node, and each entity of visual node initializing is waited for on-test.After equipment in kind comes into operation, physical time and real time data are write Real-Time Sharing internal memory net.The data read module time for reading of proxy for equipment in kind and the data of equipment are carried out buffer memory.The time management module reads the physical time of buffer memory, stores with priority query to the request time of each model wrapper transmitting time and reception feedback, simultaneously simulation time is sent to visual node.Proxy for equipment in kind sends to the model wrapper with the real time data of material object, and each interface of each model wrapper recursive call mathematical model advances, and device data in kind is passed to each model, and the output data that obtains model is transferred to other model again.Request time with model sends to the time management device simultaneously.In this process, proxy for equipment in kind and model wrapper will visual data and effect send to visual node through visualization interface, visual node carries out 3-D display.Iteration like this is with the time of equipment in kind and the operation of data-driven whole test, up to off-test.

Claims (6)

1.一种实物设备与数学模型进行联合试验的系统,其特征在于包括:数学模型、实物设备、模型包装器、桥接器及可视化节点;其中:1. A system for carrying out joint experiments between physical equipment and mathematical models, characterized in that it comprises: mathematical models, physical equipment, model wrappers, bridges and visualization nodes; wherein: 所述各数学模型具有统一接口;Each of the mathematical models has a unified interface; 所述模型包装器将具有统一接口的各数学模型集成:模型包装器作为一个联邦成员加入到联邦中,公布数学模型需要输出的信息,订购数学模型需要输入的信息,循环调用数学模型的接口传递数学模型的数据;同时调用RTI网的服务接口将数学模型的数据转发到RTI网上与其它数学模型对应的包装器进行交互;The model wrapper integrates various mathematical models with a unified interface: the model wrapper joins the federation as a member of the federation, publishes the information that the mathematical model needs to output, orders the information that the mathematical model needs to input, and transfers the interface of the mathematical model cyclically The data of the mathematical model; at the same time, the service interface of the RTI network is called to forward the data of the mathematical model to the RTI network to interact with the wrappers corresponding to other mathematical models; 所述桥接器由实物设备代理模块和时间管理模块组成;桥接器的实物设备代理模块和模型包装器将实物设备与数学模型进行互连:桥接器的实物设备代理模块作为联邦成员加入到整个试验的联邦中,公布实物设备需要输出的信息,并读取实时共享内存网(VMIC)上的实物设备数据,通过RTI网的服务接口将数据发送到RTI网上与数学模型进行交互;The bridge is composed of a physical equipment agent module and a time management module; the physical equipment agent module and the model wrapper of the bridge interconnect the physical equipment with the mathematical model: the physical equipment agent module of the bridge joins the entire experiment as a federation member In the federation, publish the information that the physical equipment needs to output, and read the data of the physical equipment on the real-time shared memory network (VMIC), and send the data to the RTI network through the service interface of the RTI network to interact with the mathematical model; 所述桥接器的时间管理模块引入优先级队列对试验中的时间进行管理:整个试验的时间按照实物设备的物理时钟进行推进;各模型包装器推进时,读取时间管理模块发送的时钟,如果时间达到数学模型所请求的时间,模型包装器调用数学模型的接口进行推进,推进一步完成后将数学模型下一步的请求时间发送给时间管理模块,时间管理模块读取实物设备的物理时钟并存储在系统时间队列中,同时将收到的各数学模型的请求时间存储在请求优先级队列中;时间管理模块发送时间时,读取物理时钟,并判断优先级队列中是否有请求时间,如果有则当系统时间推进到该时间点时将该请求时间发送给各数学模型;The time management module of the bridge introduces a priority queue to manage the time in the test: the time of the whole test is advanced according to the physical clock of the physical device; when each model wrapper advances, read the clock sent by the time management module, if When the time reaches the time requested by the mathematical model, the model wrapper calls the interface of the mathematical model to advance. After the push is completed, the next request time of the mathematical model is sent to the time management module. The time management module reads the physical clock of the physical device and stores it. In the system time queue, the received request time of each mathematical model is stored in the request priority queue at the same time; when the time management module sends the time, it reads the physical clock and judges whether there is a request time in the priority queue, if there is Then when the system time advances to the time point, the request time is sent to each mathematical model; 所述模型包装器和桥接器利用可视化接口将试验数据发送给可视化节点进行显示:模型包装器和桥接器的实物设备代理模块启动时公布相应的对象类和交互类,可视化节点订购对应的对象类和交互类;运行时模型包装器和实物设备代理模块将需要可视化的数据分别以对象类和交互类的形式发送给可视化节点进行显示。The model wrapper and the bridge use the visual interface to send the test data to the visualization node for display: the model wrapper and the physical device proxy module of the bridge publish the corresponding object class and interaction class when starting, and the visualization node orders the corresponding object class and interaction classes; the runtime model wrapper and physical device proxy module send the data to be visualized to the visualization node in the form of object classes and interaction classes for display. 2.根据权利要求1所述的实物设备与数学模型进行联合试验的系统,其特征在于:所述数学模型统一接口至少包括5个,能对模型进行初始化;接收事件;发送事件;推进和查看调试信息,具体的接口定义如下,其中IN和OUT表示参数类型,IN代表输入参数,OUT代表输出参数,IN和OUT后面为参数名:2. The system for joint testing of physical equipment and mathematical models according to claim 1, characterized in that: the unified interface of the mathematical model includes at least 5, which can initialize the model; receive events; send events; advance and view Debugging information, the specific interface definition is as follows, where IN and OUT represent parameter types, IN represents input parameters, OUT represents output parameters, and IN and OUT are followed by parameter names: (1)初始化接口InitModel(IN initFile):用于对数学模型进行初始化,给数学模型指定初始化文件initFile,数学模型读取初始化文件对数学模型进行初始设置;(1) Initialization interface InitModel(IN initFile): used to initialize the mathematical model, specify the initialization file initFile for the mathematical model, and read the initialization file for the mathematical model to initially set the mathematical model; (2)接收事件接口ReceiveInteraction(IN t,IN interaction):用于输入数学模型接收到的事件,其中包括参数t为接收到事件时的时间点;interaction为收到的事件数据;(2) Receive event interface ReceiveInteraction (IN t, IN interaction): used to input the event received by the mathematical model, including the parameter t is the time point when the event is received; interaction is the received event data; (3)发送事件接口SendInteraction(IN t,OUT interaction):用于输出数学模型要输出的事件,包括参数t为发送事件时的时间点,interaction为数学模型要输出的事件数据;(3) Sending event interface SendInteraction(IN t, OUT interaction): used to output the event to be output by the mathematical model, including the parameter t is the time point when the event is sent, and interaction is the event data to be output by the mathematical model; (4)推进接口GoStep(IN&&OUT t,IN inObjs,OUT outObj):用于数学模型推进一步,参数t在接口被调用前为输入参数,传入推进时的时间点,调用后为输出参数,值为下一时刻请求推进的时间点;inO bjs为数学模型需要的其它数学模型数据;outObj为该数学模型的输出数据;(4) Propel interface GoStep(IN&&OUT t, IN inObjs, OUT outObj): used to step forward the mathematical model. The parameter t is an input parameter before the interface is called. It is the time point for the next request to advance; inO bjs is other mathematical model data required by the mathematical model; outObj is the output data of the mathematical model; (5)查看调试信息接口DebugMessage(OUT message):调用此接口可以输出数学模型内部的输出信息,用于查看数学模型的内部运行情况和调试模型,message为数学模型的输出信息。(5) View debug information interface DebugMessage(OUT message): Call this interface to output the output information inside the mathematical model, which is used to view the internal operation of the mathematical model and debug the model, and message is the output information of the mathematical model. 3.根据权利要求1所述的实物设备与数学模型进行联合试验的系统,其特征在于:所述模型包装器的实现为:首先解析数学模型的想定文件,得到数学模型的基本信息、数学模型文件的路径和数学模型与其它数学模型的公布订购关系,根据数学模型的路径加载数学模型动态链接库,调用初始化接口InitModel初始化数学模型,调用RTI网的服务接口创建联邦,加入联邦,根据解析想定文件得到的信息公布和订购相应的对象类和交互类,注册对象实例;将时间管理模块发送的时间用队列存储,判断时间是否推进时先判断队列中是否有时间,如果有则比较数学模型的请求时间是否和当前推进时间匹配,如果匹配则判断数学模型是否收到其它数学模型的事件,如果有交互类输入调用接收事件接口ReceiveInteraction将交互类数据传递给数学模型,接下来调用推进接口GoStep让数学模型计算向前推进,并通过该接口返回下一个请求时间点和数学模型推进一步后的输出数据,并通过RTI网的服务接口将请求时间发送给时间管理模块,将数学模型的输出数据发送给其它数学模型和可视化节点;接着调用发送事件接口SendInteraction判断有无交互类输出,如果有则调用RTI网的服务接口将交互类发送给其它模型;调用数学模型的接口后可以调用查看调试信息接口DebugMessage查看模型输出的调试信息;最后判断试验是否结束,如果没有结束,继续判断时间推进,如果结束,则退出和销毁联邦。3. The system for carrying out a joint test between physical equipment and a mathematical model according to claim 1, characterized in that: the realization of the model wrapper is: first analyze the scenario file of the mathematical model to obtain the basic information of the mathematical model, the mathematical model The path of the file and the publishing order relationship between the mathematical model and other mathematical models, load the dynamic link library of the mathematical model according to the path of the mathematical model, call the initialization interface InitModel to initialize the mathematical model, call the service interface of RTI network to create a federation, join the federation, and determine according to the analysis scenario Publish and order the corresponding object class and interactive class of the information obtained from the file, and register the object instance; store the time sent by the time management module in a queue, and judge whether there is time in the queue when judging whether the time is advanced, and compare the mathematical model if there is time Whether the request time matches the current advance time. If it matches, judge whether the mathematical model has received events from other mathematical models. If there is an interactive class input, call the receive event interface ReceiveInteraction to pass the interactive data to the mathematical model, and then call the advance interface GoStep to let The calculation of the mathematical model advances, and returns the next request time point and the output data after the mathematical model advances through this interface, and sends the request time to the time management module through the service interface of the RTI network, and sends the output data of the mathematical model To other mathematical models and visualization nodes; then call the sending event interface SendInteraction to judge whether there is an interactive class output, and if so, call the service interface of RTI network to send the interactive class to other models; after calling the interface of the mathematical model, you can call the interface to view the debugging information DebugMessage checks the debugging information output by the model; finally judges whether the test is over, if not, continue to judge the time advance, if it is over, exit and destroy the federation. 4.根据权利要求1所述的实物设备与数学模型进行联合试验的系统,其特征在于:所述实物设备代理模块由数据读取模块和仿真模块组成,数据读取模块读取实物设备的数据,仿真模块将读取到的数据转发出去;所述数据读取模块的实现方式为:首先对实时共享内存网进行初始化;然后轮询标志位,查看实物设备是否有新的数据,如果有则读取数据并进行存储,同时重置标志位;读取的数据分为两类,一类为实物设备的物理时钟,另一类为物理设备在各时间点的实时数据;数据读取模块存储数据时采用两个数据结构进行存储,物理时钟采用队列存储称为系统时间队列,各时间点的数据采用索引存储;所述仿真模块的实现方式为:开始时如果联邦不存在则创建联邦,接着加入联邦,给可视化节点发送初始化交互类,完成实物设备的初始化工作;时间管理模块判断是否推进,如果推进则从索引中取实物设备的新数据发送给其它数学模型和可视化节点;检测实物设备的实时数据判断是否有事件发出,如果有则发送交互类给其它数学模型并发送表现交互类给可视化节点让其显示效果;最后判断试验是否结束,如果结束则退出联邦,销毁联邦。4. The system for carrying out a joint test between physical equipment and a mathematical model according to claim 1, characterized in that: the physical equipment agent module is composed of a data reading module and a simulation module, and the data reading module reads the data of the physical equipment , the simulation module forwards the read data; the implementation of the data reading module is as follows: firstly initialize the real-time shared memory network; then poll the flag bit to check whether the physical device has new data, if so Read the data and store it, and reset the flag at the same time; the read data is divided into two categories, one is the physical clock of the physical device, and the other is the real-time data of the physical device at each time point; the data reading module stores The data is stored in two data structures, the physical clock is stored in a queue called the system time queue, and the data at each time point is stored in an index; the implementation of the simulation module is: at the beginning, if the federation does not exist, create a federation, and then Join the federation, send the initialization interaction class to the visualization node, and complete the initialization of the physical device; the time management module judges whether to advance, and if so, takes the new data of the physical device from the index and sends it to other mathematical models and visualization nodes; detects the physical device Real-time data judges whether an event is issued, and if so, sends the interactive class to other mathematical models and sends the performance interactive class to the visualization node to display the effect; finally judges whether the experiment is over, and if it is over, exits the federation and destroys the federation. 5.根据权利要求1所述的实物设备与数学模型进行联合试验的系统,其特征在于:所述时间管理模块的实现为:首先判断请求队列是否为空,如果不为空,则判断系统时间队列是否为空;如果不为空,则表明实物设备开始推进和各数学模型已经开始请求时间;然后取出系统时间和请求时间,请求时间是存储在优先级队列中,这样能保证每次取出的请求时间为最小值,时间推进按照每个模型的最小步长推进;接着判断该请求时间点之前是否已经发送过,如果已发送,则请求时间队列出队;如果未发送,则判断系统时间是否大于等于请求时间;如果是,则推进当前请求时间点;如果请求队列为空而系统时间队列不为空,则推进当前系统时间点。5. The system according to claim 1 for joint testing of physical equipment and mathematical models, characterized in that: the realization of the time management module is: first judge whether the request queue is empty, if not empty, then judge the system time Whether the queue is empty; if it is not empty, it indicates that the physical equipment has started to advance and each mathematical model has begun to request time; then take out the system time and request time, and the request time is stored in the priority queue, which can ensure that each time The request time is the minimum value, and the time advances according to the minimum step size of each model; then judge whether the request has been sent before the time point, if it has been sent, the request time queue will be dequeued; if not sent, the system time will be judged Whether it is greater than or equal to the request time; if yes, advance the current request time point; if the request queue is empty but the system time queue is not empty, advance the current system time point. 6.一种实物设备与数学模型进行联合试验的方法,其特征在于实现步骤如下:6. A method for carrying out a combined test with physical equipment and a mathematical model, characterized in that the steps of realization are as follows: (1)开始时可视化节点启动,各部署模型包装器和实物设备代理模块的节点启动,实物设备代理模块和模型包装器给可视化节点发送初始化交互类,可视化节点初始化各实体,等待试验开始;(1) At the beginning, the visualization node starts, each node that deploys the model wrapper and the physical device proxy module starts, the physical device proxy module and the model wrapper send initialization interaction classes to the visualization node, the visualization node initializes each entity, and waits for the test to start; (2)实物设备开始运作后,将物理时间和实时数据写入实时共享内存网,实物设备代理模块读取时间和设备的数据进行缓存;时间管理模块读取缓存的物理时间,向各模型包装器发送时间并接收反馈的请求时间以优先级队列存储,同时将试验时间发送给可视化节点;实物设备代理将实物的实时数据发送给模型包装器;(2) After the physical device starts to operate, the physical time and real-time data are written into the real-time shared memory network, and the physical device proxy module reads the time and device data for caching; the time management module reads the cached physical time and packages it to each model The device sends the time and receives the feedback request time to store in the priority queue, and at the same time sends the test time to the visualization node; the physical device agent sends the real-time data of the physical object to the model wrapper; (3)各模型包装器循环调用数学模型的各个接口进行推进,将实物设备数据传递给各数学模型,并得到数学模型的输出数据再传输给其它数学模型;同时将数学模型的请求时间发送给时间管理器;此过程中,实物设备代理和模型包装器将要可视化的数据和效果通过可视化接口发送给可视化节点;(3) Each model wrapper cyclically calls each interface of the mathematical model to advance, transmits the physical equipment data to each mathematical model, and obtains the output data of the mathematical model and then transmits it to other mathematical models; at the same time, the request time of the mathematical model is sent to Time manager; in this process, the real device agent and the model wrapper send the data and effects to be visualized to the visualization node through the visualization interface; (4)可视化节点进行显示;如此迭代,以实物设备的时间和数据驱动整个试验的运行,直到试验结束。(4) The visualization nodes are displayed; in this way, the time and data of the physical equipment are used to drive the operation of the entire test until the end of the test.
CN 201110268323 2011-09-09 2011-09-09 Combined test system and method adopting material object devices and mathematical models Active CN102289552B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201110268323 CN102289552B (en) 2011-09-09 2011-09-09 Combined test system and method adopting material object devices and mathematical models

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201110268323 CN102289552B (en) 2011-09-09 2011-09-09 Combined test system and method adopting material object devices and mathematical models

Publications (2)

Publication Number Publication Date
CN102289552A CN102289552A (en) 2011-12-21
CN102289552B true CN102289552B (en) 2012-12-26

Family

ID=45335976

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201110268323 Active CN102289552B (en) 2011-09-09 2011-09-09 Combined test system and method adopting material object devices and mathematical models

Country Status (1)

Country Link
CN (1) CN102289552B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103077068B (en) * 2012-12-27 2016-07-27 北京仿真中心 A kind of high-performance simulation system based on shared drive realizes method
CN103514337B (en) * 2013-10-25 2016-09-14 北京经纬恒润科技有限公司 A kind of analogue system and method
CN103713940B (en) * 2013-12-24 2017-02-01 四川川大智胜软件股份有限公司 Method for reconfigurable distributed real-time simulation based on RTX-HLA reflection storage card
CN106844822B (en) * 2016-11-15 2020-09-18 北京宇航系统工程研究所 Carrier rocket semi-physical simulation method supporting rapid virtual-real interchange
US10618137B2 (en) * 2017-03-24 2020-04-14 National Cheng Kung University Automated constructing method of cloud manufacturing service and cloud manufacturing system
CN109088905B (en) * 2017-06-14 2021-04-30 浙江贵仁信息科技股份有限公司 Mathematical model service system based on cloud computing and mathematical model management method
CN109254824B (en) * 2018-09-28 2021-08-13 哈尔滨工业大学 Ownership management service implementation method for middleware of joint test platform
CN109542067A (en) * 2018-12-04 2019-03-29 天津大学 Multivariable structural test real-time control system and method based on shared drive
CN114442505A (en) * 2020-11-03 2022-05-06 中国兵器科学研究院 Virtual and real battlefield space-time synchronization system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101055530A (en) * 2006-12-31 2007-10-17 中国人民解放军63791部队 Embedded type distributed simulation platform based on HLA facing to space flight measurement and control and its realization method
CN102136204A (en) * 2011-02-25 2011-07-27 中国人民解放军第二炮兵工程学院 Virtual maintenance distribution interactive simulation support platform of large equipment and collaborative maintenance method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101055530A (en) * 2006-12-31 2007-10-17 中国人民解放军63791部队 Embedded type distributed simulation platform based on HLA facing to space flight measurement and control and its realization method
CN102136204A (en) * 2011-02-25 2011-07-27 中国人民解放军第二炮兵工程学院 Virtual maintenance distribution interactive simulation support platform of large equipment and collaborative maintenance method

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
刘秀罗,等..面向作战模拟系统的领域开发与集成平台设计.《系统仿真学报》.2006,第18卷(第10期),2790-2793. *
刘秀罗,等。.面向作战模拟系统的领域开发与集成平台设计.《系统仿真学报》.2006,第18卷(第10期),2790-2793.
廖建,等..面向RTI的虚拟试验系统中监控工具的研究.《计算机测量与控制》.2010,第18卷(第9期),2121-2124. *
廖建,等。.面向RTI的虚拟试验系统中监控工具的研究.《计算机测量与控制》.2010,第18卷(第9期),2121-2124.

Also Published As

Publication number Publication date
CN102289552A (en) 2011-12-21

Similar Documents

Publication Publication Date Title
CN102289552B (en) Combined test system and method adopting material object devices and mathematical models
CN108647361B (en) Data storage method, device and system based on block chain
CN112073269B (en) Block chain network testing method, device, server and storage medium
Fujimoto Parallel and distributed simulation systems
Rowson et al. Interface-based design
US20110191774A1 (en) Noc-centric system exploration platform and parallel application communication mechanism description format used by the same
RU2336566C2 (en) Method of modeling of processes of provision of technical readiness of communication networks in technical operation and system for its implementation
US20090307299A1 (en) System Analysis Modeling Apparatus and Method
CN103970031B (en) A kind of satellite simulator Integrated simulation system and emulation mode
Dinh-Tuan et al. Development frameworks for microservice-based applications: Evaluation and comparison
Taylor et al. Integrating heterogeneous distributed COTS discrete-event simulation packages: an emerging standards-based approach
CN115248998B (en) SoC chip distributed simulation verification platform and method
CN104639345A (en) Method and system for testing NTB (non-transparent bridging) performance
Bertsch et al. The second level trigger of the L3 experiment Part 1. The implementation
CN106961700A (en) The wireless communications method of the fault-tolerant reconstruct of cluster avionics system computing resource dynamic remote
CN103399776A (en) Creation method and system for reusable MOCK
CN109542397A (en) Architecture tools chain integrated approach
CN118013690A (en) Parallel simulation method and device for integrated chip system and computer equipment
JP5949933B2 (en) Simulation program, simulation apparatus, and simulation method
Ammar et al. Modeling resources in a UML-based simulative environment
JP7299640B2 (en) Method and Apparatus for Analyzing Failure Induced Interactions in Pattern-Based SoS
CN112560184B (en) An aircraft simulation model parallel computing system and method
CN104679576A (en) Simulation device and simulation method
US20200348953A1 (en) Method for performance analysis by extrapolation of a software application in a cluster of servers
CN104063266B (en) It is a kind of that the method that protective relaying device multi -CPU is run simultaneously is simulated by PC

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant