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 PDFInfo
- 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
- mathematical model
- time
- model
- data
- equipment
- 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
Links
Images
Landscapes
- Debugging And Monitoring (AREA)
Abstract
一种实物设备与数学模型进行联合试验的系统由数学模型、模型包装器、实物设备、桥接器、可视化节点组成;数学模型经模型包装器通过通信中间件与其它模型和桥接器互连;各实物设备和实物设备代理通过实时共享内存网互连;桥接器由实物设备代理和时间管理模块组成;实物设备代理读取实物设备的物理时钟并传给时间管理模块;读取实物设备的数据并发送给订购此数据的其它数学模型的包装器,由包装器调用模型的接口传递给模型。模型包装器和实物设备代理将需要可视化的数据通过可视化接口发送给可视化节点。本发明解决了试验系统中实物设备与数学模型的交互问题,以及数学模型与数学模型和实物设备与数学模型的集成方法与推进问题。
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.
Description
技术领域 technical field
本发明涉及一种将实物设备与数学模型进行联合试验的系统及其实现方法,属于虚拟试验技术领域。The invention relates to a system and a realization method for carrying out a combined test of physical equipment and a mathematical model, and belongs to the technical field of virtual tests.
背景技术 Background technique
随着政治、经济等因素的制约和军事发展的需要,在国防工业领域中,进行虚拟试验技术的研究变得越来越重要。虚拟试验是利用计算机建模仿真技术结合测试技术、通信技术和计算机网络技术,为武器装备的性能试验、技术指标考核、综合效能评估开发的一种试验新技术。虚拟试验正朝着“虚实结合”和“综合集成”的方向发展。将实物设备与数学模型集成起来进行联合试验现已成为虚拟试验中“虚实结合”的有效手段。美国国防部提出的高层体系结构(High Level Architecture,简称HLA)标准很好的解决了虚拟试验中“虚”模型(数学模型)之间的集成问题。而HLA在实时性方面有所欠缺,不能满足实物仿真或半实物仿真的实时性需求。实时共享内存网能很好的解决该问题,很好的满足实时性需求。With the constraints of political, economic and other factors and the needs of military development, in the field of defense industry, the research of virtual test technology becomes more and more important. Virtual test is a new test technology developed for the performance test, technical index assessment and comprehensive effectiveness evaluation of weaponry and equipment by using computer modeling and simulation technology combined with test technology, communication technology and computer network technology. Virtual experiment is developing towards the direction of "combination of virtual and real" and "integration". Integrating physical equipment and mathematical models for joint tests has become an effective means of "combining virtual reality" in virtual tests. The High Level Architecture (HLA) standard proposed by the U.S. Department of Defense has well solved the integration problem between "virtual" models (mathematical models) in virtual experiments. However, HLA is lacking in real-time performance and cannot meet the real-time requirements of physical simulation or semi-physical simulation. The real-time shared memory network can solve this problem very well and meet the real-time requirements very well.
秦大国等人的“一种基于双桥接器的分布仿真跨协议互连方法”(系统仿真学报)解决了分布交互仿真(Distributed Interactive Simulation,简称DIS)和HLA的互连互通问题。但DIS和HLA都不能很好的满足实时性需求。袁丹的“分布式实时仿真中网络系统扩展的研究与实现” (洪都科技)解决了SBS与VMIC互连互通的问题。虽然SBS和VMIC能很好的满足实时性需求,但其可扩展性及互操作性不及HLA。本发明通过实时共享内存网(反射内存网)将实物设备或半实物设备相连;通过HLA将各数学模型进行集成;再将实时共享内存网与HLA互连搭建虚拟试验进行联合试验。本发明既能满足实物或半实物仿真的实时性需求,又具有复用性、可扩展性和互操作性。Qin Daguo et al.'s "A Cross-protocol Interconnection Method for Distributed Simulation Based on Double Bridges" (Journal of System Simulation) solved the interconnection and intercommunication problems between Distributed Interactive Simulation (DIS) and HLA. But neither DIS nor HLA can satisfy the real-time requirement well. Yuan Dan's "Research and Implementation of Network System Expansion in Distributed Real-time Simulation" (Hongdu Technology) solved the problem of interconnection between SBS and VMIC. Although SBS and VMIC can meet real-time requirements well, their scalability and interoperability are not as good as HLA. The invention connects physical equipment or semi-physical equipment through a real-time shared memory network (reflection memory network); integrates various mathematical models through HLA; and then interconnects the real-time shared memory network and HLA to build a virtual test for joint testing. The invention can not only meet the real-time requirement of physical or semi-physical simulation, but also has reusability, scalability and interoperability.
发明内容 Contents of the invention
本发明所要解决的技术问题:克服现有技术的不足,提供一种将实物设备与数学模型进行联合试验的系统及其实现方法,该系统与方法解决了试验系统中实物设备与数学模型的交互问题,以及数学模型与数学模型和实物设备与数学模型的集成方法与推进问题。The technical problem to be solved by the present invention is to overcome the deficiencies of the prior art and provide a system and its realization method for joint testing of physical equipment and mathematical models. The system and method solve the interaction between physical equipment and mathematical models in the test system Problems, as well as the integration method and advancement of mathematical models and mathematical models, physical equipment and mathematical models.
本发明的技术方案:一种实物设备与数学模型联合试验系统,基于HLA/RTI的模型包装器将具有统一接口的各数学模型集成;桥接器将实物设备与各数学模型连通并负责整个试验的实时时间推进。基于实物设备与数学模型的联合试验系统及方法的特征包括:The technical scheme of the present invention: a joint test system of physical equipment and mathematical models, the HLA/RTI-based model wrapper integrates each mathematical model with a unified interface; the bridge connects the physical equipment with each mathematical model and is responsible for the entire test Real time advance. The characteristics of the combined test system and method based on physical equipment and mathematical models include:
数学模型、实物设备、模型包装器、桥接器及可视化节点;其中:Mathematical models, physical devices, model wrappers, bridges and visualization nodes; where:
所述各数学模型具有统一接口;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 time 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 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 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, and if so, 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 agent module send the data to be visualized to the visualization nodes in the form of object classes and interaction classes respectively, and the visualization nodes use two-dimensional or three-dimensional visualization technology to display.
本发明与现有技术相比的有益效果:The beneficial effect of the present invention compared with prior art:
(1)具有“虚实结合”能力。实物设备与数学模型能进行联合试验,解决了实物设备与数学模型的互连互通问题。实物设备能在虚拟的环境中进行验证,虚拟的数学模型能同实物设备进行交互以验证数学模型的正确性。(1) Possess the ability of "combining virtual and real". The physical equipment and the mathematical model can be jointly tested, which solves the problem of interconnection between the physical equipment and the mathematical model. Physical equipment can be verified in a virtual environment, and the virtual mathematical model can interact with physical equipment to verify the correctness of the mathematical model.
(2)通过基于HLA/RTI的模型包装器将数学模型集成,各模型通过模型包装器的包装都以联邦成员加入试验,整个系统具有良好的可扩展性。(2) The mathematical models are integrated through the model wrapper based on HLA/RTI, and each model is added to the test as a federation member through the wrapper of the model wrapper, and the whole system has good scalability.
(3)各数学模型采用统一的接口编写,编写的模型通过通用的模型包装器包装后加入试验,不同的试验可以多次利用同一数学模型,数学模型具有较好的复用性。(3) Each mathematical model is written with a unified interface. The written model is packaged by a general model wrapper and added to the test. Different tests can use the same mathematical model multiple times, and the mathematical model has good reusability.
(4)通过实时共享内存网将实物设备互连,能保证实物仿真或半实物仿真所需的实时性。系统的时间推进按照实物设备的物理时钟推进,使联合试验具备实时性。(4) The physical devices are interconnected through the real-time shared memory network, which can ensure the real-time performance required for physical simulation or semi-physical simulation. The time advancement of the system is advanced according to the physical clock of the physical equipment, which makes the joint experiment real-time.
附图说明 Description of drawings
图1为本发明的系统组成结构框图;Fig. 1 is a system composition block diagram of the present invention;
图2为本发明的模型包装器实现图;Fig. 2 is the realization diagram of the model wrapper of the present invention;
图3为本发明的实物设备代理模块实现图;Fig. 3 is the implementation diagram of the physical equipment agent module of the present invention;
图4为本发明的实物设备代理模块中的数据读取模块实现图;Fig. 4 is the realization diagram of the data reading module in the physical equipment agent module of the present invention;
图5为本发明的实物设备代理模块中的仿真模块实现图;Fig. 5 is the realization diagram of the simulation module in the physical equipment agent module of the present invention;
图6为本发明的时间管理模块实现图;Fig. 6 is the implementation diagram of the time management module of the present invention;
图7为本发明的实现流程图。Fig. 7 is a flow chart of the implementation of the present invention.
具体实施方式 Detailed ways
如图1所示,本发明的系统由数学模型、模型包装器、实物设备、桥接器、可视化节点等组成。各数学模型经模型包装器通过通信中间件(本系统采用的是HLA标准的实现RTI)与其它模型和桥接器互连。各实物设备和实物设备代理通过实时共享内存网互连,本发明的实时共享内存网采用的是VMIC反射内存网。实物设备与数学模型通过桥接器互连。桥接器由实物设备代理和时间管理模块组成。实物设备代理读取实物设备的物理时钟并传给时间管理模块;读取实物设备的数据并发送给订购此数据的其它数学模型的包装器,由包装器调用模型的接口传递给模型。模型包装器和实物设备代理将需要可视化的数据通过可视化接口发送给可视化节点。可视化接口是基于HLA的一些对象类和交互类。As shown in Figure 1, the system of the present invention is composed of a mathematical model, a model wrapper, a physical device, a bridge, a visualization node, and the like. Each mathematical model is interconnected with other models and bridges through the model wrapper through the communication middleware (this system adopts HLA standard implementation RTI). All physical devices and physical device agents are interconnected through a real-time shared memory network, and the real-time shared memory network of the present invention uses a VMIC reflective memory network. Physical equipment and mathematical models are interconnected through bridges. The bridge consists of a physical device agent and a 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 sends it to the wrapper of other mathematical models that order this data, and the wrapper calls the interface of the model and passes it to the model. The model wrapper and physical device agent send the data that needs to be visualized to the visualization node through the visualization interface. The visual interface is based on some object classes and interaction classes of HLA.
本发明中的数学模型按照统一的接口编写。统一的模型接口包含5个,能对模型进行初始化;输入输出模型的事件、时间和数据;输出模型需输出的调试信息等。具体的接口定义如下(其中IN和OUT表示参数类型,IN代表输入参数,OUT代表输出参数,IN和OUT后面为参数名):The mathematical model in the present invention is compiled according to a unified interface. The unified model interface includes 5, which can initialize the model; input and output the event, time and data of the model; output the debugging information that the model needs to output, etc. The specific interface is defined as follows (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): To initialize the model, you can specify the initialization file initFile for the model, and the model reads the initialization file to initialize the model.
(2)接收事件接口Receivelnteraction(IN t,IN interaction):输入模型接收到的事件,参数t为接收到事件时的时间点,interaction为收到的事件数据。(2) Receive event interface Receivelnteraction(IN t, IN interaction): Input the event received by the model, the parameter t is the time point when the event is received, and the interaction is the received event data.
(3)发送事件接口Sendlnteraction(IN t,OUT interaction):输出模型要输出的事件,参数t为发送事件时的时间点,interaction为模型要输出的事件数据。(3) Send event interface Sendlnteraction(IN t, OUT interaction): output the event to be output by the model, parameter t is the time point when the event is sent, and interaction is the event data to be output by the model.
(4)推进接口GoStep(IN&&OUT t,IN inObjs,OUT outObj):模型推进一步,参数t在接口被调用前为输入参数,传入推进时的时间点,调用后为输出参数,值为下一时刻请求推进的时间点;inObjs为模型需要的其它模型数据(可以为一个模型的数据,也可为多个模型的数据);outObj为该模型的输出数据。(4) Advancement interface GoStep(IN&&OUT t, IN inObjs, OUT outObj): The model advances one step further. The parameter t is an input parameter before the interface is called, and it is passed in the time point of the advance. After the call, it is an output parameter, and the value is the next The time point when the time request is advanced; inObjs is other model data required by the model (it can be the data of one model, or the data of multiple models); outObj is the output data of the model.
(5)查看调试信息接口DebugMessage(OUT message):调用此接口可以输出模型内部的输出信息,可以查看模型的内部运行情况和调试模型,message为模型的输出信息。(5) View debugging information interface DebugMessage(OUT message): call this interface to output the output information inside the model, you can view the internal operation of the model and debug the model, and message is the output information of the model.
本发明中的模型包装器对上述具有统一接口的数学模型进行包装,调用模型的各接口并通过通信中间件的服务接口负责模型与其它模型的信息传递,其实现方式如图2所示。首先解析模型的想定文件,得到模型的基本信息包括:模型名、模型初始化文件,模型文件的路径和模型与其它模型的公布订购关系。根据模型的路径加载模型动态链接库,调用初始化接口InitModel初始化模型,调用RTI网的服务接口(即HLA服务接口)创建联邦,加入联邦。根据解析想定得到的信息公布和订购相应的对象类和交互类,注册对象实例。包装器将时间管理模块发送的时间用队列存储,判断时间是否推进时先判断队列中是否有时间,如果有则比较模型的申请时间是否和当前推进时间匹配,如果匹配则判断模型是否收到其它模型的事件(模型的事件用通信中间件的交互类来实现,当模型收到其它模型发送的交互类时,中间件会调用回调函数通知),如果有交互类输入调用接收事件接口Receivelnteraction将交互类数据传递给模型。接下来调用推进接口GoStep让模型计算向前推进,并通过该接口返回下一个请求时间点和模型推进一步后的输出数据。并通过HLA服务接口将请求时间发送给时间管理模块,将模型的输出数据发送给其它模型和可视化节点。接着调用模型发送事件接口Sendlnteraction判断有无交互类输出,如果有则调用RTI服务接口将交互类发送给其它模型。调用模型的每个接口后可以调用查看调试信息接口DebugMessage查看模型输出的调试信息。最后判断试验是否结束,如果没有结束,则继续判断时间推进;如果结束,则退出和销毁联邦。The model wrapper in the present invention packs the above-mentioned mathematical model with a unified interface, calls each interface of the model and is responsible for the information transmission between the model and other models through the service interface of the communication middleware, and its implementation is shown in Figure 2 . Firstly, the scenario file of the model is analyzed, and the basic information of the model is obtained, including: model name, model initialization file, path of the model file, and published order relationship between the model and other models. Load the model dynamic link library according to the path of the model, call the initialization interface InitModel to initialize the model, call the service interface of the RTI network (that is, the HLA service interface) to create a federation, and join the federation. Publish and order the corresponding object classes and interaction classes according to the information obtained by analyzing the scenarios, and register object instances. The wrapper stores the time sent by the time management module in a queue. When judging whether the time is advancing, it first judges whether there is time in the queue. If so, compares whether the application time of the model matches the current advancing time. If it matches, judges whether the model has received other The event of the model (the event of the model is realized by the interactive class of the communication middleware. When the model receives the interactive class sent by other models, the middleware will call the callback function to notify), if there is an interactive class input, call the receiving event interface ReceiveInteraction will interact Class data is passed to the model. Next, call the advance interface GoStep to advance the model calculation, and return the next request time point and the output data after the model advances through this interface. And send the request time to the time management module through the HLA service interface, and send the output data of the model to other models and visualization nodes. Then call the model sending event interface SendInteraction to judge whether there is any interactive class output, and if so, call the RTI service interface to send the interactive class to other models. After calling each interface of the model, you can call the debug information interface DebugMessage to view the debug information output by the model. Finally, judge whether the test is over, if not, continue to judge the time advance; if it is over, exit and destroy the federation.
本发明的桥接器由实物设备代理和时间管理模块组成。实物设备代理负责转发实物设备的数据给数学模型,它由数据读取模块和仿真模块组成,数据读取模块读取实物设备的数据;仿真模块将读取到的数据转发出去。实物设备代理实现方式如图3所示,首先解析想定文件得到代理的实物设备与其它模型的关系和整个试验的基本信息,接着创建联邦,加入联邦,公布订购相应的对象类和交互类,发送初始化交互类给可视化节点,接着启动数据读取模块和仿真模块。The bridge of the present invention is composed of a physical device agent and a time management module. The physical device agent is responsible for forwarding the data of the physical device to the mathematical model. It consists of a data reading module and a simulation module. The data reading module reads the data of the physical device; the simulation module forwards the read data. The implementation of physical device proxy is shown in Figure 3. First, analyze the scenario file to obtain the relationship between the proxy physical device and other models and the basic information of the entire experiment, then create a federation, join the federation, publish and order the corresponding object class and interaction class, and send Initialize the interaction class to the visualization node, and then start the data reading module and the simulation module.
为了提高并发能力,数据读取模块为单独的一个线程。数据读取模块的实现方式如图4所示。线程启动后先打开VMIC板块并对板块进行初始化。In order to improve the concurrency capability, the data reading module is a separate thread. The implementation of the data reading module is shown in Figure 4. After the thread is started, first open the VMIC board and initialize the board.
接下来轮询标志位,查看实物设备是否有新的数据,如果有则读取数据并进行存储,同时重置标志位。读取的数据分为两类,一类为实物设备的物理时钟,另一类为物理设备在各时间点的实时数据。数据读取模块存储数据时采用两个数据结构进行存储。物理时钟采用队列存储称为系统时间队列,各时间点的数据采用索引存储,这样便于仿真模块在时间推进时以常数时间取得实物设备的数据。Next, 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 bit 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 uses two data structures to store data. 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, which is convenient for the simulation module to obtain the data of the physical device at a constant time when the time advances.
仿真模块的实现方式如图5所示。开始时如果联邦不存在则创建联邦,接着加入联邦,给可视化节点发送初始化交互类,让三维可视化节点完成初始化工作。时间管理模块判断是否推进,如果推进则从索引中取实物设备的新数据发送给其它模型和可视化节点。检测实物设备的实时数据判断是否有事件发出,如果有则发送交互类给其它模型并发送表现交互类给三维可视化节点让其显示效果;最后判断试验是否结束,如果结束则退出联邦,销毁联邦。The implementation of the simulation module is shown in Figure 5. At the beginning, if the federation does not exist, create the federation, then join the federation, send the initialization interaction class to the visualization node, and let the 3D visualization node complete the initialization work. The time management module judges whether to advance, and if it advances, it will take the new data of the physical equipment from the index and send it to other model and visualization nodes. Detect the real-time data of the physical equipment to judge whether there is an event. If so, send the interaction class to other models and send the performance interaction class to the 3D visualization node to display the effect; finally judge whether the test is over, if it is over, exit the federation and destroy the federation.
时间管理模块读取数据读取模块的系统时间队列,收取各模型包装器发送的时间请求,并将各时间点存储在优先级队列中称为请求队列。判断是否推进的流程如图6所示。首先判断请求队列是否为空,如果不为空则判断系统时间队列是否为空,如果不为空,则表明实物设备开始推进和各数学模型已经开始请求时间。接着取出系统时间和请求时间,请求时间是存储在优先级队列中,这样能保证每次取出的请求时间为最小值,时间推进按照每个模型的最小步长推进。判断该请求时间点之前是否已经发送过,如果已发送,则请求时间队列出队。如果未发送判断系统时间是否大于等于请求时间,如果是则推进当前请求时间点。如果请求队列为空而系统时间队列不为空,则推进当前系统时间点。The time management module reads the system time queue of the data reading module, receives the time requests sent by each model wrapper, and stores each time point in the priority queue called the request queue. The process of judging whether to advance is shown in Figure 6. First judge whether the request queue is empty, if it is not empty, then judge whether the system time queue is empty, if 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. The request time is stored in the priority queue, which ensures that the request time taken out each time is the minimum value, and the time advances according to the minimum step size of each model. Determine whether the request has been sent before the time point, and if it has been sent, the request time queue will be dequeued. If it is not sent, judge whether the system time is greater than or equal to the request time, and if so, advance the current request time point. If the request queue is empty and the system time queue is not, advance the current system time point.
可视化接口为一些对象类和交互类的集合。模型包装器和实物设备代理的仿真模块公布这些对象类和交互类,三维可视化节点订购这些对象类和交互类。数学模型和实物设备的数据信息如坐标和姿态信息等通过RTI以对象类的形式传输给可视化节点;数学模型和实物设备的事件信息如分离和爆炸等信息通过RTI以交互类的形式传输给可视化节点。根据需要,可以定义多个对象类,每个对象类的属性可以自定义,但需和可视化节点定义的对象类一致。交互类只定义一个,为了通用,交互类的参数只设置一个,RTI传输时,具体的传输内容(如包含事件类型和与事件相关的数据)通过此参数传递。The visual interface is a collection of some object classes and interaction classes. The simulation modules of the model wrapper and the physical device proxy publish these object classes and interaction classes, and the 3D visualization nodes subscribe to these object classes and interaction classes. The data information of the mathematical model and physical equipment, such as coordinates and attitude information, is transmitted to the visualization node through RTI in the form of object classes; the event information of mathematical models and physical equipment, such as separation and explosion, is transmitted to the visualization node in the form of interactive classes through RTI node. Multiple object classes can be defined as required, and the attributes of each object class can be customized, but must be consistent with the object class defined by the visualization node. Only one interaction class is defined. For general use, only one parameter of the interaction class is set. When RTI is transmitted, the specific transmission content (such as event type and event-related data) is passed through this parameter.
本发明的整个系统执行过程如图7所示,开始时可视化节点启动,各部署模型包装器和实物设备代理的节点启动。实物设备代理和模型包装器给可视化节点发送初始化交互类,可视化节点初始化各实体,等待试验开始。实物设备开始运作后,将物理时间和实时数据写入实时共享内存网。实物设备代理的数据读取模块读取时间和设备的数据进行缓存。时间管理模块读取缓存的物理时间,向各模型包装器发送时间并接收反馈的请求时间以优先级队列存储,同时将仿真时间发送给可视化节点。实物设备代理将实物的实时数据发送给模型包装器,各模型包装器循环调用数学模型的各个接口进行推进,将实物设备数据传递给各模型,并得到模型的输出数据再传输给其它模型。同时将模型的请求时间发送给时间管理器。此过程中,实物设备代理和模型包装器将要可视化的数据和效果通过可视化接口发送给可视化节点,可视化节点进行三维显示。如此迭代,以实物设备的时间和数据驱动整个试验的运行,直到试验结束。The entire system execution process of the present invention is shown in FIG. 7 . At the beginning, the visualization node is started, and the nodes of each deployment model wrapper and physical device agent are started. The real device agent and the model wrapper send the initialization interaction class to the visualization node, and the visualization node initializes each entity and waits for the experiment to start. After the physical device starts to operate, write the physical time and real-time data into the real-time shared memory network. The data reading module of the real device agent reads time and device data for caching. The time management module reads the cached physical time, sends the time to each model wrapper and receives the feedback request time and stores it in a priority queue, and at the same time sends the simulation time to the visualization node. The physical equipment agent sends the real-time data of the physical object to the model wrapper, and each model wrapper cyclically calls each interface of the mathematical model to advance, transmits the physical equipment data to each model, and obtains the output data of the model and then transmits it to other models. At the same time send the request time of the model to the time manager. In this process, the physical device agent and the model wrapper send the data and effects to be visualized to the visualization node through the visualization interface, and the visualization node performs three-dimensional display. Iterating 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.
Claims (6)
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) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| TWI662440B (en) | 2017-03-24 | 2019-06-11 | 國立成功大學 | System and method for machine tool maintenance and repair |
Families Citing this family (8)
| 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 | 北京宇航系统工程研究所 | A hardware-in-the-loop simulation method for a launch vehicle that supports fast virtual-real interchange |
| 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 | 哈尔滨工业大学 | Realization Method of Ownership Management Service of Joint Test Platform Middleware |
| 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)
| 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 |
-
2011
- 2011-09-09 CN CN 201110268323 patent/CN102289552B/en active Active
Patent Citations (2)
| 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)
| Title |
|---|
| 刘秀罗,等..面向作战模拟系统的领域开发与集成平台设计.《系统仿真学报》.2006,第18卷(第10期),2790-2793. * |
| 刘秀罗,等。.面向作战模拟系统的领域开发与集成平台设计.《系统仿真学报》.2006,第18卷(第10期),2790-2793. |
| 廖建,等..面向RTI的虚拟试验系统中监控工具的研究.《计算机测量与控制》.2010,第18卷(第9期),2121-2124. * |
| 廖建,等。.面向RTI的虚拟试验系统中监控工具的研究.《计算机测量与控制》.2010,第18卷(第9期),2121-2124. |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| TWI662440B (en) | 2017-03-24 | 2019-06-11 | 國立成功大學 | System and method for machine tool maintenance and repair |
Also Published As
| Publication number | Publication date |
|---|---|
| CN102289552A (en) | 2011-12-21 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN102289552A (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 | |
| US20110191774A1 (en) | Noc-centric system exploration platform and parallel application communication mechanism description format used by the same | |
| CN108376221A (en) | A software system security verification and evaluation method based on AADL model extension | |
| CN108446225A (en) | Creating device, method and the computer readable storage medium of analog interface | |
| Dinh-Tuan et al. | Development frameworks for microservice-based applications: Evaluation and comparison | |
| CN115248998B (en) | SoC chip distributed simulation verification platform and method | |
| Taylor et al. | Integrating heterogeneous distributed COTS discrete-event simulation packages: an emerging standards-based approach | |
| CN118013690A (en) | Parallel simulation method and device for integrated chip system and computer equipment | |
| CN104639345A (en) | Method and system for testing NTB (non-transparent bridging) performance | |
| CN106961700A (en) | The wireless communications method of the fault-tolerant reconstruct of cluster avionics system computing resource dynamic remote | |
| CN100388205C (en) | HLA-based distributed interactive simulation platform and implementation method thereof | |
| Sarojadevi | Performance testing: methodologies and tools | |
| JP7299640B2 (en) | Method and Apparatus for Analyzing Failure Induced Interactions in Pattern-Based SoS | |
| US11334378B2 (en) | Method for performance analysis by extrapolation of a software application in a cluster of servers | |
| CN119544707A (en) | Message tracing method, device, computer equipment, readable storage medium and program product | |
| US20230409375A1 (en) | Batch processing tracking | |
| Ammar et al. | Modeling resources in a UML-based simulative environment | |
| CN114785780B (en) | Lane service data processing method, device, equipment and medium | |
| WO2014064788A1 (en) | Simulation program, simulation device, simulation method, bus model and bus circuit | |
| CN114911731A (en) | Method for designing modeled interface of complex system, electronic device and storage medium | |
| Babichev et al. | Designing execution models of distributed system in theoretical courses on information technology | |
| CN121542181B (en) | An autonomous driving simulation testing system and equipment | |
| Torguet et al. | Cavalcade: A system for collaborative prototyping | |
| CN114815781B (en) | A flight control system flexible integrated test platform and test method |
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 |
