[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN102262695A - Tool for implementing and/or configuring input/output model - Google Patents

Tool for implementing and/or configuring input/output model Download PDF

Info

Publication number
CN102262695A
CN102262695A CN2011101804726A CN201110180472A CN102262695A CN 102262695 A CN102262695 A CN 102262695A CN 2011101804726 A CN2011101804726 A CN 2011101804726A CN 201110180472 A CN201110180472 A CN 201110180472A CN 102262695 A CN102262695 A CN 102262695A
Authority
CN
China
Prior art keywords
model
topology
function
hardware
instrument according
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.)
Pending
Application number
CN2011101804726A
Other languages
Chinese (zh)
Inventor
S·科尔
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.)
Dspace Digital Signal Processing and Control Engineering GmbH
Original Assignee
Dspace Digital Signal Processing and Control Engineering GmbH
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 Dspace Digital Signal Processing and Control Engineering GmbH filed Critical Dspace Digital Signal Processing and Control Engineering GmbH
Priority to CN2011101804726A priority Critical patent/CN102262695A/en
Publication of CN102262695A publication Critical patent/CN102262695A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention relates to a tool (110) capable of implementing and/or configuring at least one input/output model (111) of a real-time application program under computer-aided conditions, wherein the input/output model (111) and a behavior model (121) are established separately. One embodiment of the invention aims to provide a tool for implementing and/or configuring a real-time application program. The tool can be used for flexibly establishing a real-time application program, especially an input/output function capable of flexibly and simply transforming and changing a single part of the real-time application program. One application according to one embodiment the invention is to establish and configure an input/output function, match with simulation hardware and establish a real-time application program.

Description

Realize and/or dispose the instrument of I/O model
Technical field
Many industrial circles are all experienced the pressure that must shorten its development time, and meanwhile they will develop the product of uniqueness and innovation.Succeed in the world market, these two factors are that inevitably particularly for high-tech enterprise such as automobile, aviation and the communications field, in these enterprises, Electronic Control/adjusting is the part that plays a decisive role of new product.
This control or adjusting be a kind of approach of time saving, high performance-price ratio based on Model Design because control/regulation technology is by single model work, this model comprises a kind of function or a complete system in single integrated software environment.Performance history based on model has brought up the system that optimizes and fully test, and wherein works in coordination each component optimization.Can use for regulator modeling in the software part and behavior modeling as MathWorks With the such instrument of the TargetLink of dSPACE.For check regulator model in actual environment, can be integrated in it in the prototype system.TargetLink is suitable for the design software parts in addition, and these software parts are used for system architecture software, especially for the SystemDesk based on Model Design that is used for system level of dSPACE.In SystemDesk, a plurality of software parts can make up, and to constitute a software architecture, its part that can be used as the total system model is used.
Can use tool master in the prior art, as MathWorks
Figure BDA0000072495990000012
For the opertaing device test is carried out modeling and is therefore produced behavior model for opertaing device function, diagnostic function and realistic model with graphics mode.Here on same model basis, work mostly, and with the validity of the present whether function in the checking automobile, whether be whether Serial Control equipment generating code or test are carried out in ring environment (Hardware-in-the-loop-Umgebung) at hardware and had nothing to do.
Behavior model is usually with the graphics mode modelling, and the user can embed the C code of oneself in the functional block (Block) of graphics mode here.
In order to carry out communicating by letter of model and other electronic equipments by the bus as CAN, LIN or FlexRay bus, can be in the special functional block incorporation model.This functional block is structured in the model, and this model can be exchanged messages by corresponding bus and other system.The receiving function piece carries out pre-service so that handle to the data that receive from hardware model.The sending function piece carries out pre-service so that send by bus to information.For the message that will send, typically some parameters can be set.These parameters for example are
Send the selection of the controller of message
In the functional block sampling time, it is defined in to the controller message transfer which period
Automatically the repetition time, its regulation controller should in which period transmission message
Begin to postpone, it is defined in first message of transmission after which of model start time
Time-out time, its regulation controller how long repeat the to lead to errors message of frame (for example because the affirmation of disappearance)
The functional block of the timing information with oneself of oneself is set in model for each message that will send in particular, in the prior art.In addition, can enough individual feature piece management multiple messages.
Also support request message and remote message in the prior art.From another bus user request message, the sign of the message of being asked realizes by message identifier by request message.Remote message is the auto answer of controller for request message.
Multiple bus can be connected to each other by other functional block, and by on a bus, receive message and on another bus, send again and between two or more networks pass-along message.
Some functional blocks are set to handle the message that is suitable for standardized agreement.Other functional block is handled raw data, and makes it possible to set up other agreement and pass through these functional blocks uses in model.
Can read in for example configuration file of DBC, MAT, FIBEX or LDF form for being configured.
In order to check the correct transmission of message, CRC check often is feasible.This verification also can be undertaken by the distinctive code of user.
By means of behavior model and the distinctive configuration of simulation hardware and disposed, definition externally measures or generates and so on the I/O function in the input and output of equipment (for example opertaing device that will test), set up executable program, be so-called real-time application, this program should be carried out on simulation hardware.
The I/O function is particularly set up and disposed to application of the present invention, mate with simulation hardware and set up real-time application.
Background technology
So-called real-time interface (RTI) is used for for example using MathWorks
Figure BDA0000072495990000031
The behavior model of setting up and the prior art of the interface between the simulation hardware (also seeing also dSPACE catalogue 1999-2000).It is for Real-Time
Figure BDA0000072495990000032
And Stateflow
Figure BDA0000072495990000033
(C code generator) carried out the automatic realization that expansion makes it possible to be implemented in Simulink model and Stateflow model on the simulation hardware.
In order to connect behavior model and actual external environment condition, in the behavior model, need the suitable input quantity that is used for model or the interface of output quantity.As such input/output interface, the functional block of graphics mode is set in the prior art, and it is configured according to the I/O function of hope.
In order to dispose I/O, for example there is the functional block storehouse of comprehensive graphics mode available with graphics mode.This storehouse for example comprises can be by the information of hardware use.For behavior model and being connected of input/output cards are carried out modeling, can from the functional block storehouse of graphics mode, select corresponding I/O functional block or corresponding I/O functional block model, so that can add corresponding expression to behavior model.There is oneself a storehouse in the prior art for each type of hardware, makes the interface of determining this type of hardware by the functional block of from a storehouse, selecting graphics mode, and only can be with corresponding cost another functional block replacement with another type.
All settings, for example parametrization can be carried out in the input template (Eingabemaske) of corresponding graphing capability piece.Here can check the validity of input.
But the shortcoming of prior art is that the behavior model that has the distinctive configuration of hardware mixes with the foundation of I/O function.This causes is that the change or the change of simulation hardware of behavior model all can cause the very big change of expense.Testing another behavior model or identical behavior model with identical I/O function is used in and is not easy to possibility on the different simulation hardwares.
RTI supports aperiodic incident, for example Wai Bu hardware interrupts and software interruption, and the user can be carried out to Task Distribution priority for the subsystem that is triggered by interrupt request.
For the system of each type, for example the time is continuous, time-discrete, mixing and multirate system, provides the piece of graphing capability separately for it in the prior art.According to I/O hardware, the different hardware resource of or different input/output cards can different sampling rates be used, and can be used in different subsystems under the possible situation.Here the user also must understand the simulation hardware of execution when setting up interface configuration.
Even for example before producing the real-time application will download on the simulation hardware or during should carry out compatibility (Konsistenz) checking, simulation hardware also must be known.
In addition advantageously, As be well known in the art, when producing code, optimize this code at executed in real time.
In order on simulation hardware, optimally to carry out real-time application, importantly can carry out some task configurations.Prior art provides multiple choices for this reason.
For example, support that multirate system and also supporting thus interrupts, based on the multitask of priority.In addition, single task of timer pattern and many task of timer pattern and non-based on real-time simulation model are arranged.Interrupt request can be for example by external hardware or excite by software in addition.Exist configurable overrunning (Overrun) to handle for each task.In addition, can measure for each task creation turnaround time (Turnaround-time).Optionally, can have a high regard for the definition external event of being engaged in for driving timing.
So in the prior art, real-time application can especially automatically be downloaded on the concrete simulation hardware and can execution model.Wherein instrument can be carried out mutual control, supervision and data acquisition by experiment.
A kind of RTI expansion that is used for multicomputer system or multi-core processor: RTI-MP is arranged in addition.This expansion is used to multiprocessor or many inner cores to carry out the setting of graphics mode.By each processor or kernel are carried out the performance that independent parameter adjustment should reach optimization.So the user can be for example for each subsystem be provided with independent performance optimization in RTI-MP, for example step-length, integral algorithm and trigger condition.These settings also can be depended on processor or kernel respectively, and feasible different processors or kernel for same multiprocessor or many kernels system has different settings.This point is paid attention in inter-processor communication.Interrupt request between processor or the kernel is fully supported.RTI-MP also is responsible for making the tasks synchronization starting on processor or the kernel.
For parallelization, answering system is divided, and make to realize optimum processor load or kernel load and is between processor/interior internuclear communication definitions passage.For example, the user can use simple drag-and-drop function to give the part of processor or kernel apportion model.
RTI-MP also is provided as between real-time simulation and processor/and interior internuclear communication produces the possibility of optimized code.
For this reason, concrete hardware also must be known before configuration.To be embedded into behavior model because be used for disposing the functional block of simulation hardware, so before configuration, must carry out modeling to behavior model.Can not carry out the replacement of behavior model at this.
Equally, also can not be under the identical situation of I/O function with hardware of hardware replacement of another type, because the configuration feature piece is designed and configuration is specifically designed to a kind of simulation hardware.Thus, the foundation of whole real-time application is very dumb.
Summary of the invention
Therefore, task of the present invention is, a kind of instrument that is used to realize and dispose real-time application is provided, and can set up real-time application neatly by this instrument, I/O function particularly particularly can be neatly and replace or change the single part of real-time application simply.
According to an embodiment of the present disclosure, a kind of instrument (110) that can realize and/or dispose at least one I/O model (111) of real-time application under computer assisted situation is provided, and wherein this I/O model (111) separates modeling with behavior model (121).
Preferably, described I/O model (111) or described behavior model (121) can be changed or change neatly.
Preferably, make it possible to realize compatibility between described I/O model (111) and the described behavior model (121) by model interface (123).
Preferably, when changing I/O model (111) or behavior model (121), described model interface (123) remains unchanged.
Preferably, be marked at and change or change the model interface (123) that comprises incompatibility behind I/O model (111) or the behavior model (121).
Preferably, for modeling and/or dispose described I/O model (111), use topology, particularly model topology (122), hardware topology (148) and/or external unit topology (132).
Preferably, a kind of element of topology can use in different I/O models.
Preferably, when in I/O model (111), using a kind of element of topology, in this I/O model (111), be provided for the expression of the described element of described topology.
Preferably, when the element of a kind of topology of deletion, one or more corresponding expression of mark in one or more I/O model.
Preferably, when one or more characteristic of the element that changes a kind of topology, in one or more I/O model, change one or more characteristic of one or more corresponding expression.
Preferably, the element of external unit topology (132) comprises the information about the equipment interface (133) of external unit, particularly control electronics.
Preferably, also comprise information about the information of equipment interface (133) about fault simulation.
Preferably, the element of hardware topology (148) comprises about the structure of the element of hardware system (140) and/or the information of communication.
According to another embodiment of the present disclosure, a kind of instrument (110) that is used at least one I/O function (114) of I/O model (111) configuration is provided, and wherein at least a portion configuration is undertaken by the type of selecting this I/O function (114) and the characteristic that combines with it.
Preferably, another configuration of I/O function (114) is undertaken by the type of selecting hardware resource and the characteristic that combines with it.
Preferably, in I/O function (114), can dispose the fault type that is used for fault simulation.
Preferably, when I/O function (114) is distributed to the element of external unit topology (132), particularly carry out the branch timing, conflicting between the characteristic that is disposed that is presented at this I/O function (114) and the characteristic of the element of external unit topology (132) by the expression of element.
Preferably, for a kind of I/O function (114),, may need a plurality of hardware resources particularly according to special parameter.
Preferably, can distribute one or more hardware resource for I/O function (114) by hardware topology (148).
Preferably, distribute one or more hardware resource automatically can for the I/O function of I/O model (111).
According to an embodiment of the present disclosure, a kind of instrument (110) that can realize and/or dispose at least one I/O model (111) of real-time application under computer assisted situation is provided, and wherein said instrument comprises the device that makes this I/O model (111) and behavior model (121) separate modeling.
Preferably, described instrument comprises the device that can change or change described I/O model (111) or described behavior model (121) neatly.
Preferably, described instrument comprises the model interface (123) that is used to make it possible to realize the compatibility between described I/O model (111) and the described behavior model (121).
Preferably, described instrument comprises and is used for the device that when changing I/O model (111) or behavior model (121) described model interface (123) remained unchanged.
Preferably, described instrument comprises being used to be marked at and changes or change the device that comprises the model interface (123) of incompatibility behind I/O model (111) or the behavior model (121).
Preferably, described instrument comprises and is used to use topology to come modeling and/or disposes the device of described I/O model (111).
Preferably, the described device that is used to use topology to come modeling and/or disposes described I/O model (111) comprises that be used to use a model topology (122), hardware topology (148) and/or external unit topology (132) come modeling and/or dispose the device of described I/O model (111).
Preferably, described instrument comprises the device that makes that a kind of element of topology uses in different I/O models.
Preferably, described instrument comprises the device of the expression of the described element that is used for being provided for described topology when I/O model (111) uses a kind of element of topology in this I/O model (111).
Preferably, described instrument comprises the device that is used for when the element of a kind of topology of deletion in one or more the corresponding expression of one or more I/O model mark.
In one or more I/O model, change the device of one or more characteristic of one or more corresponding expression when preferably, described instrument is included in one or more characteristic of the element that changes a kind of topology.
Preferably, described instrument comprises that the element that is used to make external unit topology (132) comprises the device of the information of the equipment interface (133) about external unit.
Preferably, the described element that is used to make external unit topology (132) device that comprises the information of the equipment interface (133) about external unit comprises that the element that is used to make external unit topology (132) comprises the device of the information of the equipment interface (133) about control electronics.
Preferably, the described element that is used to make external unit topology (132) device that comprises the information of the equipment interface (133) about external unit comprises that the element that is used to make external unit topology (132) also comprises the device about the information of fault simulation.
Preferably, described instrument comprises that the element that is used to make hardware topology (148) comprises the device about the information of the structure of the element of hardware system (140) and/or communication.
According to another embodiment of the present disclosure, a kind of instrument (110) that is used at least one I/O function (114) of I/O model (111) configuration is provided, and wherein said instrument comprises and is used for carrying out the device that at least a portion disposes by the type of selecting this I/O function (114) and the characteristic that combines with it.
Preferably, described instrument comprises the device that the characteristic that is used for the type by selecting hardware resource and combines is with it carried out another configuration of I/O function (114).
Preferably, described instrument comprises the device that makes in I/O function (114) configuration be used for the fault type of fault simulation.
Preferably, described instrument is included in the device that conflicts between the characteristic of the characteristic that is disposed that is presented at this I/O function (114) when an I/O function (114) is distributed to the element of external unit topology structure (132) and the element of external unit topology (132).
Preferably, described instrument comprises the device that is used for distributing for I/O function (114) by hardware topology (148) one or more hardware resource.
Preferably, described instrument comprises the device that is used for distributing automatically to the I/O function of I/O model (111) one or more hardware resource.
A technique effect according to an embodiment of the present disclosure is obviously to use another behavior model (121) with identical I/O function more easily.A technique effect according to an embodiment of the present disclosure is to use the behavior model (121) with different I/O functions or different simulation hardware (140) more easily
Description of drawings
Below will introduce the present invention in more detail by means of advantageous embodiment.Schematically show some embodiment in the accompanying drawings.
Fig. 1 and Fig. 2 provide the overview according to instrument of the present invention (110) and parts thereof.
Fig. 3 shows I/O model (111) and describes a kind of example shown from the signal of external unit (130) to the complete chain of the model interface (123) of behavior model (121).
Embodiment
A. make a summary
Fig. 1 and Fig. 2 provide the overview according to instrument of the present invention (110) and parts thereof.A task of instrument (110) is to support the user in setting up the I/O function, makes it possible to replace single aspect.For this reason,, set up the I/O model (111) that comprises the I/O function that does not rely on behavior model (121) according to the present invention.Separate by between behavior model (121) and the I/O model (111) this, can obviously use another behavior model (121) more easily with identical I/O function.Equally, can use behavior model (121) more easily with different I/O functions or different simulation hardware (140).
In order to improve dirigibility, use different topologys, for example model topology (122), hardware topology (148) and optionally also have external unit topology (132) according to instrument of the present invention (110).
Such topology is used as assembly when setting up I/O model (111).All elements of a topology can be used in one or more I/O model (111).Opposite this and do not mean that each element of a topology all must be used in an I/O model (111).The element of a topology can be used in the different I/O model (111) of instrument (110).If in an I/O model (111), use an element of a topology, the expression of this element then be set in this I/O model (111).No matter be the element of topology or the I/O model (111) with its expression can differently show, for example with graphics mode or also use and show.
One preferred embodiment in, one of deletion once was it is provided with the element of expression (112,113,118) in I/O model (111) after in a topology, this expression (112,113,118) is marked, make the user know and in I/O model (111), have conflict in this position.
In addition, one preferred embodiment in, the corresponding characteristic under can automatically changing during at least one characteristic of the element in changing topology in the corresponding expression of I/O model.
Describe external unit topology (132), model topology (122) and hardware topology (148) below in detail.
External unit topology (132) relates to one or more external unit (130).External unit (130) can be a specific type (for example treating examining system, opertaing device, external loading) or also can be other types.Externally specify equipment interface (133) in the equipment topology (132).Here, the equipment pin (153) that is equal to of one or more of external unit and its electrical specification component devices interface (133).For will can in defeated/output model (111), representing (113) by the apparatus for establishing interface with each equipment interface (133) of its modeling in I/O model (111).The external unit topology for example can produce in instrument (110) or also can be for example from the Excel of Microsoft TMFile layout (XLS file) imports or reads in from file.
Belong to the behavior model (121) in addition of I/O model (111), it describes the behavior of wanting emulation, and should produce or measure what signal on the pin of I/O model (111) description external unit.
Behavior model (121) is for example used the MATLIB/Simulink modeling of MathWorks in can modeling tool (120) externally.According to the present invention, behavior model (121) does not comprise any I/O function and to any visit of hardware.For behavior model (121) is carried out modeling, can use for example functional block collection and the tool box of MATLABs Simulink.One or more I/O amount that can define this model in such behavior model (121) is as model interface (123).One preferred embodiment in, these model interfaces (123) do not rely on they thereon modeling aspect of position.
Model topology (122) is a data recording, and it comprises the model interface (123) of one or more behavior model (121).This model topology (122) for example can be provided with in instrument (110), is directed in this instrument (110), is produced or is read in from existing file by instrument (110) by means of behavior model (121).If need model interface (123) for I/O model (111) is carried out modeling, then in this I/O model (111), the model interface be set and represent (112).
By this interface, be that behavior model (121) or I/O model (111) all can be retained as interchangeable state, important in this case only is continuation this interface of reservation or in corresponding alternate model the relevant position is being made marks when changing.
One or more I/O function (114) can be set in I/O model (111).I/O function (114) typical example as measurement functions, the signal generation function that the value on external unit (130) pin (153) should be provided that will measure the value on external unit (130) pin (153), be used for battery emulation or be used for the function of power switch.
There is a function library at one of instrument (110) in preferred embodiment.It comprises the different type function of different I/O functions.In order to set up any a plurality of I/O functions (114) that I/O model (111) can be provided with certain type function.
The I/O function (114) of modeling is implemented and is used for carrying out emulation on emulator (140), for example HIL simulator.Emulator (140) provides suitable hardware for this purpose, and for example one or more bus card (143), one or more signal block (141), one or more signal measurement card (142), power switch (not shown) or battery emulation controller (not shown).
From I/O model (111) and behavior model (121) generating routine code, with its compiling and link, produce the real-time application that can download to processor plate (149) thus.This real-time application can block one or more hardware resources (144,145,146) of (141), signal measurement card (142) or bus card (143) or also have power switch or battery emulation according to I/O function (114) configuration signal of hope.
Yet must understand according to I/O model (111) to dispose which hardware resource (144,145,146) for this reason.Must be mapped to I/O function (114) on one or more hardware resource (144,145,146) for this reason.For this reason, instrument (110) has hardware topology (148), so that can represent (118) for each I/O function (114) is provided with one or more hardware resource, and the corresponding hardware resource type (144,145,146) of its performance hardware topology.
Hardware topology (148) comprises the information about specific hardware system (140).These information both can relate to the information about the structure of the element of hardware system (140), also can relate to the information about the communication of the element of hardware system (140).Information about structure is for example can use which hardware resource on which card on which unit in which groove.The communication information for example relate to card each other be electrically connected and a hardware resource with which I/O connector (154) is connected.Hardware topology (148) can be for example produces in instrument (110), can import or read in an existing hardware topology, perhaps can be automatically from the hardware scanning hardware topology of connection.
In addition, instrument (110) can calculate, shows and store the information (215) about external cable bundle (150).This information (215) for example comprises the I/O connector (154) of hardware in real time should be how and pin (153) physical connection of external unit.By the inside cable bundle in the emulator, the I/O connector is connected with the hardware resource of card.About the information (215) of external cable bundle (150) can illustrate equally external unit, for example opertaing device should be how with another external unit, for example another opertaing device or external loading are electrically connected.
Information (215) about bunch of cables (150) can be calculated from instrument (110), perhaps also can be loaded in the instrument (110), so that can use the connection that has existed in the I/O model (111).
Preferably, equipment interface represents that (113) are mapped on the I/O function (114) in I/O model (111), I/O function (114) is assigned to the model interface (123) of behavior model (121), and I/O function (114) is assigned to hardware resource (144,145,146) afterwards, carries out the calculating about the information (215) of external cable bundle (150).
B. example
The following describes an example in an exemplary instrument (110), setting up and dispose I/O model (111).But instrument (110) is not limited to this embodiment, and on the contrary, other embodiment also is possible.
I/O model (111) is described the complete chain from the signal of external unit (130) to the model interface (123) of behavior model (121).A chain like this can for example be made up of three parts, as shown in Figure 3.The element of this three part is represented with the graphing capability piece and in three row in example.Here, a functional block or be the expression that equipment interface is represented (113), I/O function (114), or be that the model interface is represented (112).But other performance (for example using form) of each of this part and element thereof also is fine.
Two expressions, for example equipment interface representative (113) and I/O function (114) or I/O function (114) and model interface represent the distribution between (112) can be for example by stroke graphics mode connection or also can for example in tabular drawing, be undertaken by drag and drop (drag-and-drop).
One row for example comprise represents (113) by all equipment interfaces of an emulator (140) use in emulation in an I/O model (111) and therefore.One preferred embodiment in, the information that is provided with about the level of equipment interface shows by block diagram (333).Equipment interface represents that (113) represent the similar pin (153) of one or more external unit (130) and comprise details about the input and output signal of this equipment.
Here, external unit (130) has type, and thus, equipment interface (133) and equipment interface thereof represent also to have type.For example, be used for should be at the tested control electronics of hardware-in-loop simulation (Hardware-in-the-Loop-Simulation) for the opertaing device type.Relative therewith, loadtype is used for and is connected an external loading on the opertaing device by emulator (140).Such load can be the actual loading (for example actuator) or the equivalent load of the electrical specification of artificial actual load only.According to its type, equipment interface represents that (113) have different characteristics.By means of these characteristics, the user can be supported when being provided with and dispose I/O function (114).
In addition, represent (113), especially allow to carry out or disengagement failure emulation, and describe which kind of fault type of permission in detail for each equipment interface.Equipment interface is represented these settings of (113) and may be also had characteristic can be transferred in the expression that is assigned with of I/O function (114).
Also can for example specify the load of the joint (153) that is used for external loading to cut off.The load cut-out means cuts off load during fault simulation, so that the sensitive load of protection.
Other characteristics of equipment interface (133) are about what uses the information of this equipment interface (133) for, and for example pin is the input pin pin of signal (that is should produce thereon) or output pin (that is the pin of measured value) thereon or bus or low reference pin or undefined pin.For example, can represent at equipment interface differently to represent these information with graphics mode in the graphic presentation of (113).
In addition, can specify pin numbering arbitrarily in equipment interface (133), it is considered when the information of calculating about external cable bundle (150) (215).
Configuration data that can storage device interface (133) is so that reuse it in another I/O model (111) in same instrument (110).If the characteristic changing of equipment interface (133), then the characteristic of the expression (113) of this equipment interface (133) also changes.
In order to realize real-time model, setting and configuration device interface represent that (113) are optional in I/O model (111), but in a favourable embodiment, equipment interface is represented the configuration support layoutprocedure of (113).
The characteristic of I/O function (114) can be configured in instrument (110) by parameter.The available possibility that characteristic is set depends on the type and the type of distributing to the hardware resource of this I/O function (114) of I/O function (114).The ardware feature that the representative of hardware resource type is different, and can on different Card Types, embody.
The characteristic of I/O function (114) for example can at first be set by the type of selecting I/O function (114) for this reason.For example, can set initial value.If the use initial value, then this value is set up when starting affiliated executable program at every turn.And with what value whether also can specify makes signal saturated.
Then, select the hardware resource type, further improve characteristic by the type.An example that depends on the hardware resource type is the number of signaling interface.
The behavior of the characteristic decision emulator (140) of I/O function (114).This value must be designated according to the measured signal of Devices to test (130) and available hardware resource (144,145,146).
In order to dispose I/O model (111), can select carry out the hardware resource (144,145,146) of the card (141,142,143) of I/O function (114) by hardware topology (148).For an I/O function (114), can need a plurality of hardware resources, for example depend on type function and maximum current.
Especially, can allow or remove fault simulation, and can specify possible fault type hardware resource (144,145).If selected the hardware resource (144) of signal measurement card (142), then can dispose the setting that is used for load.In addition, the hardware resource (145) that can the designated external load whether be connected to signal measurement card (142).
One preferred embodiment in, setting and the equipment interface that instrument (110) can compare I/O function (114) represented the setting of (113), and if this I/O function (114) be assigned to an equipment interface and represent (113) then show conflict.
The model interface represents that (112) represent behavior model (121) and interfaces I/O model (111).Model interface (123) can be in the behavior model, for example be configured in Simulink and change.Importantly, model interface (123) that comprises in the model topology (122) or model interface represent that (112) are compatible with the model interface (123) of behavior model (121).
If behavior model (121) is changed to making model interface (123) also change, then one preferred embodiment in, model topology (122) can be by synchronously.When synchronous, the characteristic of the hierarchical structure of model interface (123) or model interface (123) can be by synchronously.
In model topology, there is not corresponding model interface (123) if in I/O model (111), need model interface (123), then can required model interface be set in I/O model (111) in preferred embodiment and represents (112) at one.In addition, can represent (112) for all model interfaces that in I/O model (111), have been provided with and in behavior model (121), generate these model interfaces (123).
For with the different behavior model (121) of same I/O model (111) test, can set up different behavior model (121) with identical model interface (123).In order to simplify this point, can give model interface (123) identification distribution of univocality.Can in behavior model (121), change the name of model interface (123) thus, and not influence the connection in affiliated I/O model (111).When a model interface (123) is moved to another modeling aspect or model interface (123) and sign thereof when a behavior model copies to another behavior model together, same situation can appear.Yet, one preferred embodiment in, model interface (123) is not to be replicated together with its sign inevitably, but whether the user can select him to wish together with identifying reconstructed model interface (123).
C. special design proposal
In instrument (110), can realize the different visuals field.So instrument (110) can comprise the work visual field of the overall situation, it comprises all elements of available topologies.If set up the I/O model (111) of the complexity that has a large amount of elements, then the particular element that can only add the I/O model by the user job visual field and this user of user definition oneself is restricted to a fragment to the visual field.For example, the user job visual field can comprise all parts of certain part (for example brake system) that belongs to automobile.One preferred embodiment in, the user can be provided with a plurality of user jobs visual field, wherein an element of I/O model (111) can be comprised in the different visuals field simultaneously.
In a special design proposal of instrument (110), project manager and Platform Manager are arranged.This project manager makes it possible to organize all relevant project information, for example configuration and specific to application's data.
Different with the hardware topology that includes about the information of available hardware, Platform Manager provides the detailed information about the hardware (at line hard ware) that connects and moving, for example number and the type of the card that is connected with the emulator that is switched on.Whether in addition, Platform Manager may be displayed on the state of line hard ware, for example have program moving or temporarily stopping on this hardware.These information are particularly useful in the time real-time application will being downloaded at line hard ware.
Each I/O function (114) may need at least one hardware resource (144,145,146) to carry out the I/O function.One preferred embodiment in, the execution of I/O function (114) not with specific hardware binding.I/O function (114) can be assigned to the type of hardware resource arbitrarily that is fit to this function.In an expansion embodiment that has advantage especially, the user can select distribute automatically still that the user wishes manual allocation hardware resource (144,145,146).Selecting under the situation of distributing automatically, instrument (110) can generate conflict free distribution, if perhaps this can not produce corresponding notice.
In addition, internal load can be described, and this explanation for example is considered when selecting hardware resource automatically in I/O model (111).
One preferred embodiment in, in instrument (110), must also can automatically be carried out by each processing that the user carries out by means of the script of writing with script (for example Python).
D. produce real-time model and download to emulator
When having realized behavior model (121) and I/O model (111), can produce so-called member (Build) based on the information of these two models (121,111) by instrument (110).It comprises real-time application, at topology in the moment that produces this member (148,122 and possible 132) and variable declaration file.
The variable declaration file comprises about can measuring or adjust the information of which variable, and can be for example by test and experimental tool use.
In order to produce executable program, for I/O model (111) and behavior model (121) produce code respectively.The C or the C++ code that are used for behavior model are called as model code.It for example can be produced by the Real-Time Workshop of Mathworks.Comprise that hardware resource distributes and the C that is used for I/O model (111) or the C++ code of task configuration are called as integrated code.It is preferably produced by instrument (110).
Be used to produce the Total Options of integrated code can be especially standard value by instrument (110) be provided with.The manual possibility that is provided with also can pass through corresponding manager realization in the instrument (110).
In order to produce real-time application, can in instrument (110), for example select different options.In these options some can relate to the generation of variable file, and other are used to optimize real-time application, also have some to relate to other service thus.Like this, for example can select an option, a feasible part that only produces real-time application, perhaps it is downloaded to emulator automatically after it produces.Same possible be, by experiment or testing software real-time application is loaded into emulator.
One preferred embodiment in, during downloading, whether instrument (110) can check during producing employed hardware topology consistent with the hardware system that real-time application will be downloaded on it.
Can show all incompatiblely, and under specific situation, provide dialog box, can interrupt downloading by this dialog box.One preferred embodiment in, when occurring when incompatible, instrument (110) still can be finished member.
For example, when in hardware system, lacking card, can come analog input/output valve by means of set initial value.

Claims (20)

1. the instrument (110) that can realize and/or dispose at least one I/O model (111) of real-time application under computer assisted situation is characterized in that,
This I/O model (111) separates modeling with behavior model (121).
2. instrument according to claim 1 (110) is characterized in that, described I/O model (111) or described behavior model (121) can be changed or change neatly.
3. instrument according to claim 2 (110) is characterized in that, makes it possible to realize compatibility between described I/O model (111) and the described behavior model (121) by model interface (123).
4. instrument according to claim 3 (110) is characterized in that, when changing I/O model (111) or behavior model (121), described model interface (123) remains unchanged.
5. instrument according to claim 3 (110) is characterized in that, comprises the model interface (123) of incompatibility after being marked at replacing or changing I/O model (111) or behavior model (121).
6. according to the described instrument of claim 1 to 5 (110), it is characterized in that, for modeling and/or dispose described I/O model (111), use topology, particularly model topology (122), hardware topology (148) and/or external unit topology (132).
7. instrument according to claim 6 (110) is characterized in that, a kind of element of topology can use in different I/O models.
8. instrument according to claim 7 (110) is characterized in that, when using a kind of element of topology in I/O model (111), is provided for the expression of the described element of described topology in this I/O model (111).
9. instrument according to claim 8 (110) is characterized in that, when the element of a kind of topology of deletion, and one or more corresponding expression of mark in one or more I/O model.
10. instrument according to claim 8 (110), it is characterized in that, when one or more characteristic of the element that changes a kind of topology, in one or more I/O model, change one or more characteristic of one or more corresponding expression.
11. instrument according to claim 6 (110) is characterized in that, the element of external unit topology (132) comprises the information about the equipment interface (133) of external unit, particularly control electronics.
12. instrument according to claim 11 (110) is characterized in that, also comprises information about fault simulation about the information of equipment interface (133).
13. instrument according to claim 6 (110) is characterized in that, the element of hardware topology (148) comprises about the structure of the element of hardware system (140) and/or the information of communication.
14. instrument (110) that is used at least one I/O function (114) of I/O model (111) configuration, it is characterized in that at least a portion configuration is undertaken by the type of selecting this I/O function (114) and the characteristic that combines with it.
15. instrument according to claim 14 (110) is characterized in that, another configuration of I/O function (114) is undertaken by the type of selecting hardware resource and the characteristic that combines with it.
16. instrument according to claim 14 (110) is characterized in that, can dispose the fault type that is used for fault simulation in I/O function (114).
17. instrument according to claim 14 (110), it is characterized in that, when I/O function (114) is distributed to the element of external unit topology (132), particularly carry out the branch timing, conflicting between the characteristic that is disposed that is presented at this I/O function (114) and the characteristic of the element of external unit topology (132) by the expression of element.
18. instrument according to claim 14 (110) is characterized in that, for a kind of I/O function (114), particularly according to special parameter, may need a plurality of hardware resources.
19. according to claim 14 or 18 described instruments (110), it is characterized in that, can distribute one or more hardware resource for I/O function (114) by hardware topology (148).
20. instrument according to claim 19 (110) is characterized in that, distributes one or more hardware resource automatically can for the I/O function of I/O model (111).
CN2011101804726A 2010-11-08 2011-06-30 Tool for implementing and/or configuring input/output model Pending CN102262695A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011101804726A CN102262695A (en) 2010-11-08 2011-06-30 Tool for implementing and/or configuring input/output model

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
CN201020677028.6 2010-11-08
CN201020677028 2010-11-08
CN2011101804726A CN102262695A (en) 2010-11-08 2011-06-30 Tool for implementing and/or configuring input/output model

Publications (1)

Publication Number Publication Date
CN102262695A true CN102262695A (en) 2011-11-30

Family

ID=45009319

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011101804726A Pending CN102262695A (en) 2010-11-08 2011-06-30 Tool for implementing and/or configuring input/output model

Country Status (1)

Country Link
CN (1) CN102262695A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104007753A (en) * 2013-02-21 2014-08-27 帝斯贝思数字信号处理和控制工程有限公司 Method for performing an inventory of the hardware components connected to a control unit test system
CN106647686A (en) * 2015-08-12 2017-05-10 帝斯贝思数字信号处理和控制工程有限公司 Method for connecting an input/output interface of a test device set up to develop a control device
US10025883B2 (en) 2013-02-22 2018-07-17 Dspace Digital Signal Processing And Control Engineering Gmbh Method for generating a configuration for a control unit test system
CN111881634A (en) * 2020-06-19 2020-11-03 成都天奥测控技术有限公司 Electronic system behavior level simulation verification method

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104007753A (en) * 2013-02-21 2014-08-27 帝斯贝思数字信号处理和控制工程有限公司 Method for performing an inventory of the hardware components connected to a control unit test system
US9633144B2 (en) 2013-02-21 2017-04-25 Dspace Digital Signal Processing And Control Engineering Gmbh Method for performing an inventory of the hardware components connected to a control unit test system
US10025883B2 (en) 2013-02-22 2018-07-17 Dspace Digital Signal Processing And Control Engineering Gmbh Method for generating a configuration for a control unit test system
CN106647686A (en) * 2015-08-12 2017-05-10 帝斯贝思数字信号处理和控制工程有限公司 Method for connecting an input/output interface of a test device set up to develop a control device
CN111881634A (en) * 2020-06-19 2020-11-03 成都天奥测控技术有限公司 Electronic system behavior level simulation verification method
CN111881634B (en) * 2020-06-19 2023-09-08 成都天奥测控技术有限公司 Electronic system behavior level simulation verification method

Similar Documents

Publication Publication Date Title
CN107784152B (en) Simulation comprising a plurality of simulators
CN100573535C (en) Simulation system and being used to is simulated the computer-implemented method with the access control system
CN101523232B (en) Networked test system
CN106940428B (en) Chip verification method, device and system
US10551807B2 (en) Method for connecting an input/output interface of a tester equipped for control unit development
WO2017066294A1 (en) Determining device system tags for commissioning portions of a disconnected process control loop
US20080313126A1 (en) Method for a distributed control system
CN104572370B (en) For the system and method by test environment test controller
CN102262695A (en) Tool for implementing and/or configuring input/output model
CN105765468B (en) System constructing servicing unit
JP2007057541A (en) Test emulator
CN102750401A (en) System and method for generation of CIM-based power system circuit models
CN100498799C (en) Simulation system and computer-implemented method for simulation and verifying a control system
CN111191336B (en) Aeroengine control prototype closed-loop simulation method and system and storage medium
CN106909084B (en) A main control system for fuel cell vehicle power comprehensive test instrument
Himmler et al. Flexible avionics testing-from virtual ecu testing to hil testing
US20240176938A1 (en) Method for preparing and providing an fpga build result of an fpga model
CN204347152U (en) A kind of Multi-bus circuit board test diagnosis system
CN115345098B (en) SOC verification method and device, electronic equipment and storage medium
Kotzian et al. Can based distributed control system modeling using UML
CN201145858Y (en) Spacecraft test equipment based on industry configuration
CN113341767A (en) Method, system and computer readable storage medium for automated testing
EP2375335A1 (en) Method for automated testing of a system and automated testing system for such a method
CN114721286A (en) Distributed compiled parallel real-time simulation system and simulation method
CN112925285A (en) Endurance test system and method for electronic controller

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20111130