Inport Block¶
The Simulink Inport block describes an input of a Simulink model. For every Inport block at the top-level in the Simulink model for which code is generated, a corresponding Input instance is created in PMP. The name of this input instance corresponds with the name of the Inport block as discussed in Inports, outports and testpoints. The datatype of the input instance is inherited from the Simulink model.
Signal properties LowerBound, UpperBound, Description and Unit are added to the Value signal of the input instance when a PT.Signal object is present in the MATLAB workspace with an identical name as the inport. This object can be created using PmpSignal in MATLAB which sets the required properties of the object.
Default properties listed in Default property values for generated PMP signals are set to the signal instances when no workspace variable is found during code generation.