.DESLib.SIMANLib.SRC.Blocks.ExternalAssign

Information

This block assigns a value to an entity attribute or a system variable. It also updates the value of its external ports y and change.
This model corresponds to a coupled DEVS model, composed by an Assign block, and a DUP, setValue and DICO models.

Each time an entity is received, the block updates the value of the attribute (or creates the attribute and assigns the value if this is its first assignment) or the variable. If the attribute or the variable are defined in matrix form, the row and col parameters indicate the position to update.

Once the assignment has been performed, the entity is duplicated. One copy is sent to the next block and continues its way in the system.
The other copy is sent to the setValue model, that sends a message with the recently assigned value to the DICO model. The DICO model updates the value of the y port (that corresponds to the assigned value) and switches the value of the change port (indicating that an assignment has been performed).


Generated at 2024-04-28T18:16:21Z by OpenModelicaOpenModelica 1.22.3 using GenerateDoc.mos