Skip to content

Usage of External Objects in Modelica #3819

@XXing-dc

Description

@XXing-dc

Can the meaning of this sentence in Section 12.9.7 be interpreted as follows: The declaration of an external object component must include a declaration equation (since it cannot be modified or assigned a value afterwards)?
Image


Defining a variable of this type in Dymola enables it to load and display the Modelica_DeviceDrivers library.

model Unnamed
  Modelica_DeviceDrivers.Blocks.Packaging.SerialPackager.Internal.PartialSerialPackager a;
equation 
end Unnamed;

In the block Modelica_DeviceDrivers.Blocks.Packaging.SerialPackager.Internal.PartialSerialPackager, the connector component pkgIn contains an external object variable, and a normal equality equation for the external object is generated after connection processing. There is also a normal equality equation for the external object component in the equation section below. I would like to confirm whether assigning a value to an external object variable using an equality equation in the equation section is a standard usage?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions