| Writing S-Functions | ![]() |
Specify whether an input port can be overwritten.
C Syntax
void ssSetInputPortOverWritable(SimStruct *S, int_T port, int_T isOverwritable)
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.
isOverwritable
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 0, meaning that neither port involved can have global and persistent memory.
|
Languages
See Also
ssSetNumInputPorts, ssSetInputPortReusable, ssSetOutputPortReusable, ssGetInputPortBufferDstPort
| ssSetInputPortOffsetTime | ssSetInputPortReusable | ![]() |