Adding ASCET, FMU, Simulink Models, TSim Plugin
|
NOTICE |
|---|
|
Potential malicious code from external source For FMU, ASCET and TSiM model types, ASCMO-MOCA executes an external runnable during model evaluation. Make sure that the external runnable of the model comes from a trustworthy source. |
You can add the following models to your MOCA project:
- ASCET Models (generated with ASCET-PSL)
- FMU Models
- Simulink Models
- TSim Plugins
These models can then be used in the function.
|
Note |
|---|
|
FMU models that use FMI 2.x or FMI 3.x are supported by ASCMO-MOCA. FMU models that use FMI 1 cannot be used. |
-
Open the Models Step.
-
In the Models Step, click on Add Model and select Connect to ASCET Model / Connect to FMU Model / Connect to Simulink Model / Connect to TSim Plugin.
A new line with a default model name is added to the model list; additional options are displayed in the lower part of the
Models Step. See also Models Step – ASCET Model Variant / Models Step – FMU Model Variant / Models Step – Simulink Model Variant / . -
Optionally, use the Rename button to rename the model.
-
In the "ASCET-PSL Model" / "FMU Model" / "Simulink Model" / "TSim Plugin" field, enter or select (via the
button) path and name of the model to be optimized.Examples files are given:
-
ASCET <installation>\Example\Moca\Torque_Ascet_Psl.dll
-
FMU <installation>\Example\Moca\Torque_with_FMU.fmu
-
Simulink <installation>\Example\Moca\Torque.mdl
-
Simulink <installation>\Example\Moca\PID.slx
-
TSim <installation>\Example\Moca\TorquePlugin.mexw64.
-
-
Map the Inputs, Parameters and Outputs.
(see Map ASCET parameters / Map FMU parameters / Map Simulink Parameters, Map ASCET Inputs / Map Simulink Inputs, and Map ASCET Outputs / Map Simulink Outputs) -
Use the ASCET/FMU/Simulink model or TSim Plugin in the function.
Note
Using
/
in the Model Step after building the function has an impact on the order of arguments in the Function.
See also
Models Step (for description of the GUI elements)
Using an ASCET, FMU or Simulink Model