Mapping to PMP objects

Simulink models use concepts such as inports, parameters, outports and testpoints to provide the model input data, update parameter values and read out simulation values. After code generation a Simulink model is visible in a PMP (simulated) controller as a Processing block. This processing block can contain the interfaces Inputs, Signals, Updatables and Events to change Simulink parameter values and read values of Simulink outputs and test points after deployment.

The following sections describe how Simulink concepts can be mapped to PMP interfaces after the generated code is deployed.

Default signal properties

Interface definition functions can be used to add property values to a generated Signal. Default properties listed in Default property values for generated PMP signals are set when no workspace variable is found during code generation.

Default property values for generated PMP signals

PMP signal property

Default value

LowerBound

“Min” or “False”

UpperBound

“Max” or “True”

Description

  • “Simulink inport: “

  • “Simulink outport: “

  • “Simulink testpoint: “

  • “Simulink parameter: “

Unit

“”

Where:

  • LowerBound and UpperBound is dependent on datatype, boolean will result in False/True.

  • The default description reflects the signal type, i.e., inport, outport, test-point or parameter.

The min and max property do not have any effect on the behavior and are only visible on the interface.