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

TypeNameDefaultDescription
SIMANLib.SRC.Elements.ObjectOVariable or Attribute to assign value
Integerrow1Row to assign
Integercol1Column to assing

Connectors

TypeNameDefaultDescription
DEVSLib.SRC.Interfaces.inPortIn
DEVSLib.SRC.Interfaces.outPortOut
Modelica.Blocks.Interfaces.RealOutputy
Modelica.Blocks.Interfaces.BooleanOutputchange

Components

TypeNameDefaultDescription
RealValue1Value to assign
SIMANLib.Blocks.Assignassign
Integerelast entity that left the module
DEVSLib.AuxModels.DICOdICO
DEVSLib.AuxModels.DUPdUP
DEVSLib.Examples.SimpleModels.SetValue.setValuesetValue