System and method for transforming graphical models
First Claim
Patent Images
1. A method comprising:
- receiving a first graphical model representing a dynamic system and a configuration set for the first graphical model, where;
the configuration set includes a user-specified change to be performed on the first graphical model,the user-specified change changes a numerical or timing behavior of the first graphical model,the user-specified change includes;
adding or removing one or more graphical elements to/from the first graphical model;
ormodifying one or more parameters associated with the first graphical model;
converting the first graphical model into an intermediate representation (IR);
altering the IR based on the user-specified change included in the configuration set, where;
the altering generates an altered IR,the altered IR represents the dynamic system with the user-specified change;
generating a second graphical model based on the altered IR and the configuration set; and
generating code in a target language, the code in the target language generated from the second graphical model.
1 Assignment
0 Petitions
Accused Products
Abstract
A modeling system includes a graphical programming environment that receives a first graphical model from a user. The system may also receive a configuration control set for the first graphical model. A code generation engine converts the first graphical model into an intermediate representation (IR). A second graphical model is created from the IR and the configuration control set. The second graphical model is displayed to the user, and may be subject to one or more modifications. Code in a target language may be generated from the second graphical model.
-
Citations
24 Claims
-
1. A method comprising:
-
receiving a first graphical model representing a dynamic system and a configuration set for the first graphical model, where; the configuration set includes a user-specified change to be performed on the first graphical model, the user-specified change changes a numerical or timing behavior of the first graphical model, the user-specified change includes; adding or removing one or more graphical elements to/from the first graphical model;
ormodifying one or more parameters associated with the first graphical model; converting the first graphical model into an intermediate representation (IR); altering the IR based on the user-specified change included in the configuration set, where; the altering generates an altered IR, the altered IR represents the dynamic system with the user-specified change; generating a second graphical model based on the altered IR and the configuration set; and generating code in a target language, the code in the target language generated from the second graphical model. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A method comprising:
-
receiving a first graphical model representing a dynamic system and a configuration set, where; the configuration set includes a plurality of user-specified parameters to be applied to one or more graphical elements of the first graphical model, the plurality of parameters specify a plurality of behaviors for the one or more graphical elements of the first graphical model; converting the first graphical model into an intermediate representation (IR); applying a transform operation to the IR to alter the IR, where; the applying generates an altered IR, the transform operation being controlled by the plurality of parameters, the altered IR represents the dynamic system with a change in a behavior as specified by one or more of the plurality of parameters; generating a second graphical model from the altered IR; and generating code in a target language, the code in the target language generated from either the altered IR or the second graphical model.
-
-
9. A non-transitory computer-readable memory medium storing program instructions that, when executed by a computer, cause the computer to:
-
receive a first graphical model that models a system and a configuration set, where; the configuration set includes a user-specified change to be performed on the first graphical model, the user-specified change changes a behavior of the first graphical model, the user-specified change includes; adding or removing one or more graphical elements to/from the first graphical model;
ormodifying one or more parameters associated with the first graphical model; convert the first graphical model into a first intermediate representation (IR); apply a transform operation to the first IR to alter the first IR, where; the applying generates an altered IR, the transform operation is controlled by the configuration set, the altered first IR represents the system with the user-specified change; generate one or more modifications based on the altered first IR; apply the one or more generated modifications to the first graphical model to produce a second graphical model that models the system; receive from the user one or more modifications to the second graphical model to produce a third graphical model; convert the third graphical model into a second IR suitable for conversion to a target language; and generate code in the target language, the code in the target language generated from either the third graphical model or the second IR. - View Dependent Claims (10, 11, 12)
-
-
13. An apparatus for validating a graphical model, the apparatus comprising:
-
means for receiving a first graphical model representing a dynamic system and a configuration set, where; the configuration set includes a user-specified change to be performed on the first graphical model, the user-specified change changes a behavior of the first graphical model, the user-specified change includes; adding or removing one or more graphical elements to/from the first graphical model;
ormodifying one or more parameters associated with the first graphical model, and the first graphical model includes multiple source languages; means for converting the first graphical model into a single intermediate representation (IR), the single IR suitable for conversion to a target language; means for altering the IR of the first graphical model based on the user-specified change included in the configuration set, where the altered IR represents the dynamic system with the user-specified change; means for converting the altered IR into a second graphical model; and means for displaying the second graphical model to a user for validation. - View Dependent Claims (14, 15, 16, 17)
-
-
18. A system comprising:
a processor for; receiving a first graphical model representing a dynamic system in one or more source languages and a configuration set from a user, where; the configuration set includes a user-specified change to be performed on the first graphical model, the user-specified change changes a behavior of the first graphical model, the user-specified change includes; adding or removing one or more graphical elements to/from the first graphical model;
ormodifying one or more parameters associated with the first graphical model, converting the first graphical model into an intermediate representation (IR) that is suitable for conversion to a target language and that is independent of the one or more source languages, applying one or more transform operations to the IR to produce an altered IR, the one or more transform operations being controlled by the configuration set, where the altered IR represents the dynamic system with the user-specified change, converting the altered IR into a second graphical model for display to the user, and generating in the target language, the code in the target language generated code from either the second graphical model or the altered IR. - View Dependent Claims (19, 20, 21, 22, 23, 24)
Specification