Simulation software interaction control system
Technical field
The present invention relates to a kind of control system, in particular it relates to a kind of simulation software interaction control system.
Background technology
Modeling and simulation is applied and promoted in increasing field as a kind of new R&D Approach;Its core
Thought be to simulate real equipment by computer software to be emulated.The appearance of emulation technology substantially reduces research and development and instructed
Practice the cycle, product quality is ensure that to greatest extent, greatly save research and development and training cost.
DIS (Distributed Interactive Simulations, DIS) is to develop in recent years
A kind of Advanced Simulation Technology come, is a kind of emulation based on computer network, is used for military field, can support operation people
Member's training, skill practice and Weapon Demonstration etc..The training simulators being geographically distributed and participant are synthesized one by it
Individual entirety in logic, in what comes into a driver's true to nature and operation simulation environment, carries out man-machine interaction degree very high emulation experiment and drills
Practice.DIS is one of key areas of current simulation Technique Study, and its higher engineering application value especially exists
The application value of military field, has caused the extensive attention of countries in the world.
With continuing to develop for Distributed Interactive Simulation Technology, exploitation, formulation and perfect, the corresponding support of each class standard
The research and development of software, Distributed Interactive Simulation Technology has caused the great attention of each research institution, and gradually applies
In actual system, different analogue systems can define oneself simulation protocol and simulated environment so that simulation node is answered
Property cannot play well, therefore define a set of rational, general distributed emulation control system, can be comprehensive by service of simulation
Conjunction is used, and finally realizes generalization, and modular analogue system is just necessary.
The content of the invention
For defect of the prior art, it is an object of the invention to provide a kind of simulation software interaction control system, it will
Service of simulation can be comprehensively utilized, and finally realize generalization.
There is provided a kind of simulation software interaction control system according to an aspect of the present invention, it is characterised in that including:
Distributed node AM access module, the establishment of distributed node AM access module including node and destroys module, node
The data delivery and reception module of interface definition module, node;
Graphical node control module, includes acquisition module and the monitoring of distributed node state of distributed node information
Module;
Data flow is controlled and monitoring module, and patterned node administration interface can provide the graphical aobvious of all nodes
Show, the mode of coated line realizes the control of data flow, when line is created or is changed, is notified that what is be wired during deletion
Two nodes;When data are sent, data, monitor node meeting can be sent according to the address of the receiving node of node in itself is registered to
The data that all nodes are issued are received, data monitoring interface has oscillogram, instrument board, form etc. to show real time data
And the friendly interface of data variation rule.
Preferably, the establishment of the node and the function of destruction module are as follows:Node be free to be created and destroy,
Node needs to select the passage at a place, and is oneself distribution one No. ID.
Preferably, the function of the interface definition module of the node is as follows:Node will also create external after being created
Interface, the data format for receiving and sending in data, interface will meet certain rule, and interface data is made up of parameter,
Each parameter can have the call number of oneself, size and data type.
Preferably, the data receiver of the node and the function of sending module are as follows:What node data was sent is by adjusting
Completed with api interface, receive data and realized by defining the call back function of being come in and gone out when receiving interface.
Compared with prior art, the present invention has following beneficial effect:One, the present invention is using ripe distributed emulation
Node access environment;Two, intuitively simulation node management and data traffic organising;Three, convenient data monitoring function is carried significantly
The efficiency of high artificial debugging.
Brief description of the drawings
By reading the detailed description made with reference to the following drawings to non-limiting example, further feature of the invention,
Objects and advantages will become more apparent upon:
Fig. 1 is the theory diagram of simulation software interaction control system of the present invention.
Embodiment
With reference to specific embodiment, the present invention is described in detail.Following examples will be helpful to the technology of this area
Personnel further understand the present invention, but the invention is not limited in any way.It should be pointed out that to the ordinary skill of this area
For personnel, without departing from the inventive concept of the premise, various modifications and improvements can be made.These belong to the present invention
Protection domain.
As shown in figure 1, simulation software interaction control system of the present invention includes:
Distributed node AM access module, the establishment of distributed node AM access module including node and destroys module, node
The data delivery and reception module of interface definition module, node.The establishment of node and the function of destruction module are as follows:Node can be with
Freely it is created and destroys, node needs to select the passage at a place, and is oneself distribution one No. ID.Node connects
The function of mouth definition module is as follows:Node will also create external interface after being created, for receiving and sending data, interface
Interior data format will meet certain rule, and interface data is made up of parameter, and each parameter can have the index of oneself
Number, size and data type.The data receiver of node and the function of sending module are as follows:What node data was sent is by calling
What api interface was completed, be that need not be concerned about the destinations of transmitted data somewhere sending data;Data are received to pass through
The call back function that come in and gone out when defining receiving interface realizes, whenever there is the data receiver will to be called to this call back function.
The implementation process of distributed node AM access module is as follows:The establishment of node, according to selected phantom channel number and simulation node number, comes
Node object is created, node number determines the uniqueness of this node.It is defeated come the input of definition node according to the functional character of node
Exit port, and the data parameters meaning of each port of specific definition.Data are sent by output port, pass through registered callbacks letter
Several method receives data.The function of node needs to be destroyed after completing, Resource recovery.
Graphical node control module, includes acquisition module and the monitoring of distributed node state of distributed node information
Module.When each node is created, when the input/output interface of node is created, when node is destroyed, one all can be externally sent
Individual broadcast message, other nodes will receive this message.It can clearly know that current emulation is logical on any node
Simulation node in the presence of road.The implementation process of graphical node control module is as follows:A node control node is registered, its
The information sent when his node initializing, destruction, registered port and parameter can be received by this node.Module nodes information and shape
State can be shown by patterned mode.
The acquisition module and node state monitoring module of nodal information are that graphical node is shown, monitoring and data-flow-control
The basis that function processed is realized.
Data flow is controlled and the concrete function of monitoring module is as follows:Patterned node administration interface can provide all sections
The graphic software platform of point, the mode of coated line realizes the control of data flow, when line is created or is changed, meeting during deletion
Notify two nodes being wired;When data are sent, number can be sent according to the address of the receiving node of node in itself is registered to
According to monitor node can receive the data that all nodes are issued, and data monitoring interface has oscillogram, instrument board, form etc. can
To show the friendly interface of real time data and data variation rule.The implementation process of data flow control and monitoring module is such as
Under:, it is necessary to carry out data interaction with other nodes after Node registry, but this node is not aware that depositing for other nodes in itself
, thus its data flow need it is artificial set, in node show canvas, come regulation data flow by way of line
Flow direction.The data transmission reception condition of all nodes, which can be monitored, to be arrived, and can be according to the node parameter defined before
Meaning automatically parses data, and data are presented with the mode of icon.
Data flow is controlled and the concrete function of monitoring module is as follows:Patterned node administration interface can provide all sections
The graphic software platform of point, the mode of coated line realizes the control of data flow, when line is created or is changed, meeting during deletion
Notify two nodes being wired;When data are sent, number can be sent according to the address of the receiving node of node in itself is registered to
According to monitor node can receive the data that all nodes are issued, and data monitoring interface has oscillogram, instrument board, form etc. can
To show the friendly interface of real time data and data variation rule.
Visionbus internal buses give good solution, and visionbus internal buses have been formulated a set of simple logical
Believe agreement, realize distributed network access facility, configuration facilitate the characteristics of simple with programming.When disposing in a network
It need not specify peer IP address in advance, and the characteristics of with simulation node plug and play.Section in visionbus internal buses
Point, which is added or exited, need not determine clear and definite sequencing.Visionbus internal buses are supported to create in a physical network
Multiple passages.It is not interfere with each other between passage.The program of independent sector calculating or perform function can be completed on phantom channel.It is imitative
True node may have one or more inputs or output metadata streams port, it is also possible to one or more inputs or output
Rhythm control port.The data interacted are needed between simulation node, form is not limited;Simulation node can define input or export
Metadata streams port.Voluntarily arbitrarily defined by simulation node.The graphical simulation node built based on Visionbus internal buses
Management platform can preferably manage all simulation nodes, and can determine to emulate the stream of data by patterned mode
To, and diversified data monitoring window is provided, intuitively see the change of data, substantially increase in simulation process
Debugging efficiency.The external interface of all nodes is defined the present invention, and the data of interface are carried out according to specific rule
Tissue, as long as carry out simple encapsulation just can be linked into this analogue system by simulation node before.
The specific embodiment of the present invention is described above.It is to be appreciated that the invention is not limited in above-mentioned
Particular implementation, those skilled in the art can make various deformations or amendments within the scope of the claims, this not shadow
Ring the substantive content of the present invention.