Primitive properties

Compile Options

You can use this property to define a string of additional compiler options such as additional include search paths.

Derive

Defines a primitive to derive from. The primitive inherits all ports, parameters and shared model elements such as Events, Memories and Resources from the selected primitive. Used to generate the derivedfrom item in the primitive source code. 

Domain

Defines the modeling domain, that determines the model of computation for your model component. The property value is selected using a drop-down menu which contains entries for all known domains. If you select an experimental, unsupported domain, a warning message is displayed. For primitives this property is used to generate the domain item in the primitive source code. This property cannot be changed in primitive models.

Execution Condition

General description on how inputs are dealt with. Shown in the Inputs section in the online documentation.

Linked Objects

You can use this property to define objects (shared libraries, static libraries or object files) from external libraries. This enables usage of external functionality within your primitive or system.

Load Mode

Defines the load mode. You can select the load mode as dynamic or permanent.

If you select load mode dynamic, a shared library containing the primitive code is created on loading. This shared library is linked dynamically to the simulation process so the primitive can be reloaded after changes are made to it without re-entering simulation mode

In contrast, by selecting load mode permanent, the primitive is linked to the simulation process when entering simulation mode as is the case with built-in primitives (MLDesigner Libraries). Changes to permanently loaded Primitives or Probes only take effect after re-entering simulation mode.

It only makes sense to set the load mode to permanent if you are going to create new primitives derived from the permanently loaded primitive. In such cases the permanently loaded primitive is known as the base primitive.