Writing S-Functions | ![]() ![]() |
Specify whether an input port can be overwritten.
C Syntax
Ada Syntax
procedure ssSetInputPortOverWritable(S : in SimStruct; port : in Integer := 0; isOverwritable : in Boolean);
Arguments
S
SimStruct representing an S-Function block or a Simulink model.
port
Index of the input port whose overwritability is being set.
Value specifying whether port
is overwritable.
Description
Use in mdlInitializeSizes
(after ssSetNumInputPorts
) to specify whether the input port is overwritable by an output port. The default is isOverwritable=0
, which means that the input port does not share memory with an output port. When isOverwritable=1
, the input port shares memory with an output port.
Note
ssSetInputPortReusable and ssSetOutputPortReusable must both be set to 1, meaning that neither port involved can have global and persistent memory.
|
Languages
See Also
ssSetNumInputPorts, ssSetInputPortReusable, ssSetOutputPortReusable, ssGetInputPortBufferDstPort
![]() | ssSetInputPortOffsetTime | ssSetInputPortRequiredContiguous | ![]() |