MoExpression
The output of this block is a real scalar obtained by evaluating the Modelica expressions specified as block parameters. The expression is given in terms of variables u1,...un (except if using custom input names) where ui is the ith scalar input.
Library
Activate/CustomBlocks
Description
The output of this block is a real scalar obtained by evaluating the Modelica expressions specified as block parameters. The expression is given in terms of variables u1,...un (except if using custom input names) where ui is the ith scalar input.
Parameters
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
nin | Number of inputs | Number | ||
exprs | Modelica expression | String | ||
useinputnames | Use custom input names | Number | 0 | |
inputnames | Input names | The variable names of inputs | Structure | |
inputnames/inputname | Input name | Input variable name | Cell of strings | |
nparams | Number of parameters | Number | ||
params | Parameters | Parameters names and values | Structure | |
params/name | Name | Parameter name | Cell of strings | |
params/value | Value | Parameter value | Cell of scalars |
Ports
Name | Type | Description | IO Type | Number |
---|---|---|---|---|
Port 1 | implicit | input | nin | |
Port 2 | implicit | output | 1 |