Compensating for delay in modeling environments
AssigneeThe MathWorks, Inc.
InventorsMartin Clark, Michael H. McLernon
Life of this patent
Estimating the term…
Abstract
Methods and systems for automatically reporting delay incurred in a model is disclosed. The delay may be incurred in a part or in an entire portion of the model. Delay incurred in each component of the model is determined and reported to users before executing the model. The delay of each component of the model may be determined based on intrinsic information of the component. If the intrinsic information of the component does not provide information on the delay of the component, the component may be simulated to determine the delay of the components. The model may be automatically compensated for the delay. The delay is reported prior to the execution of the model, and compensated for without executing the model.
Claims31
A computer-implemented method for building a compensated model of a system to compensate for algorithmic delay in a model of the system in a modeling environment, the method comprising:
- calculating an amount of algorithmic delay that would be incurred in the model if the model was executed, the calculating being performed prior to execution of the model;
- identifying a location in the model for inserting a compensation component, the identified location selected by a user;
- inserting a compensation component in the model at the identified location to create a compensated model, the compensation component being a component for compensating for the algorithmic delay that would be incurred in the model if the model was executed;
- and
- saving the compensated model in a storage element.
A computer-implemented method for building a compensated model of a system to compensate for algorithmic delay in a model of the system in a modeling environment, the method comprising:
- calculating an amount of algorithmic delay that would be incurred in the model if the model was executed, the calculating being done prior to execution of the model, wherein the amount of the delay is represented in terms of frames;
- inserting a compensation component in the model to create a compensated model, the compensation component being a component for compensating for the algorithmic delay that would be incurred in the model if the model was executed;
- and
- saving the compensated model in a storage element.
A computer-implemented method for building a compensated model of a system to compensate for algorithmic delay in a model of the system in a modeling environment, the method comprising:
- providing a pair of components with the model, the pair of components including a first component and a second component, wherein the model operates on multi-rate signals at multiple rates including a first rate and a second rate;
- calculating an amount of algorithmic delay that would be incurred in the first and second components if the model was executed;
- compensating for the amount of the algorithmic delay that would be incurred in the pair of components if the model was executed by adding delay to one of the first and second components;
- and
- saving the compensated model in a storage element.
A medium holding instructions executable in an electronic device that when executed cause the electronic device to build a compensated model of a system to compensate for algorithmic delay in a model of the system in a modeling environment, said instructions for:
- reporting algorithmic delay that would be incurred in the model prior to execution of the model;
- inserting a compensation component in the model for compensating for the algorithmic delay that would be incurred in the model, wherein the compensation component is inserted in a location in the model selected by a user;
- and
- saving the compensated model in a storage element.
A medium holding instructions executable in an electronic device that when executed cause the electronic device to build a compensated model of a system to compensate for algorithmic delay in a model of the system in a modeling environment, said instructions for:
- providing a pair of components with the model, the pair of components including a first component and a second component, wherein the model operates on multi-rate signals at multiple rates including a first rate and a second rate;
- calculating an amount of the algorithmic delay that would be incurred in the first and second components if the model was executed;
- compensating for the amount of the algorithmic delay that would be incurred in the pair of components if the model was executed by adding delay to one of the first and second components;
- and
- saving the compensated model in a storage element.
A system for building a compensated model of an object to compensate for algorithmic delay in a model of the object in a modeling environment, the system comprising:
- an editor for initiating a calculation of an amount of algorithmic delay that would be incurred in the model if the model was executed, the calculation occurring prior to execution of the model, and for enabling a compensation component to be inserted to the model to compensate for the amount of the algorithmic delay that would be incurred in the model if the model was executed, wherein the compensation component is inserted in a location in the model selected by a user;
- and
- a storage element for saving the model with the compensation component.
A system for building a compensated model of an object to compensate for algorithmic delay in a model of the object in a modeling environment, the system comprising:
- an editor for providing a first component and a second component in the model, wherein the first and second components include dual components in the model, wherein the editor initiates a calculation of an amount of algorithmic delay that would be incurred in the first and second components if the model was executed and enables compensation delay to be added to one of the first and second components to compensate for the amount of the algorithmic delay that would be incurred in the first and second components if the model was executed;
- and
- a storage element for saving the model with the compensation delay added.
Dependencies are inferred from the claim text.