modelAssign
Assignment to attributes or variables
Information
The Assign module is equivalent to the ExternalAssign block of the SIMANLib library. It represents an assignment to an attribute or variable, which is also communicated through the Y and CHANGE ports.
When an entity is received, the attribute or variable defined in the module is assigned with the Value. The Y port is also assigned with that value and the port CHANGE switches its value to represent the new assignment to the value of Y.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| SIMANLib.SRC.Elements.Object | O | Variable or Attribute to assign value | |
| Integer | row | 1 | Row to assign |
| Integer | col | 1 | Column to assing |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| DEVSLib.SRC.Interfaces.inPort | In | ||
| DEVSLib.SRC.Interfaces.outPort | Out | ||
| Modelica.Blocks.Interfaces.RealOutput | y | ||
| Modelica.Blocks.Interfaces.BooleanOutput | change |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Real | Value | 1 | Value to assign |
| SIMANLib.Blocks.Assign | assign | ||
| Integer | e | last entity that left the module | |
| DEVSLib.AuxModels.DICO | dICO | ||
| DEVSLib.AuxModels.DUP | dUP | ||
| DEVSLib.Examples.SimpleModels.SetValue.setValue | setValue |