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.

    MoExpression

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

MoExpression_0

NameLabelDescriptionData TypeValid Values

nin

Number of inputs

Number

exprs

Modelica expression

String

useinputnames

Use custom input names

Number

0
1

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

NameTypeDescriptionIO TypeNumber

Port 1

implicit

input

nin

Port 2

implicit

output

1