| Writing S-Functions | ![]() |
Specify whether one of an S-function's input ports can be overwritten by one of its output ports.
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 port is overwritable by one of the S-function's output ports. Simulink uses this setting as one criterion in determining whether one of the output ports of this S-function can share memory with port. If isOverwritable=1 and the other criteria are satisfied, Simulink allocates a common block of memory for the input port and one of the S-function's output ports, thus reducing simulation memory requirements. The default is isOverwritable=0, which means that port cannot share memory with any of the S-function's output ports.
Languages
See Also
ssSetNumInputPorts, ssSetInputPortOptimOpts, ssSetOutputPortOptimOpts, ssGetInputPortBufferDstPort
| ssSetInputPortOptimOpts | ssSetInputPortRequiredContiguous | ![]() |
© 1994-2005 The MathWorks, Inc.