Abstract:
Graphical programming or modeling environments in which a coding standard can be applied to graphical programs or models are disclosed. The present invention provides mechanisms for applying the coding standard to graphical programs/models in the graphical programming/modeling environments. The mechanisms may detect violations of the coding standard in the graphical model and report such violations to the users. The mechanisms may automatically correct the graphical model to remove the violations from the graphical model. The mechanisms may also automatically avoid the violations in the simulation and/or code generation of the graphical model.
Abstract:
A first request is received for one or more service interface specifications. The first request includes information about one or more model element interface specifications usable for identifying the one or more service interface specifications. The one or more model element interface specifications are part of or are extracted from one or more executable model elements of an executable graphical model. The one or more service interface specifications correspond to respective services that include features complying with the one or more model element interface specifications and are associated with information necessary for implementing semantics of the one or more model elements. The information about the one or more model element interface specifications is analyzed, comprising evaluating semantics of the one or more executable model elements within the executable graphical model. The one or more service interface specifications are identified based on the analyzing. Information is provided representing the identified one or more service interface specifications for display and selection. A selection of at least one of the identified one or more service interface specifications is stored after the selection is made.
Abstract:
A device may receive function information that describes a caller element that calls a called element that is separate from the caller element. The function information may identify a name or reference of the called element, a passed input, and a passed output. The passed input may be provided by the caller element to the called element, and the passed output may be received by the caller element from the called element. The caller element may be associated with a caller model, and the called element may be associated with a called model. The device may identify the called element, and may execute the caller element in a simulation environment. Execution of the caller element may cause execution of the called element without causing execution of an entirety of the called model. The device may receive the passed output from the called element based on executing the called element.
Abstract:
A device may generate code for a caller element of a first graphical model and a called element of a second graphical model by generating a first function and a second function. The first function may represent an interface between the caller element and the called element. The first function may include a first input argument corresponding to an input variable and a first output argument corresponding to an output variable. The second function may represent an underlying function of the called element. The underlying function may include the input variable passed from the caller element and the output variable. The underlying function may further include an internal input variable and an internal output variable. The second function may include second input arguments corresponding to the input variable and the internal input variable, and may include second output arguments corresponding to the output variable and the internal output variables.