Writing S-Functions    
mdlInitializeSizes

Specify the number of inputs, outputs, states, parameters, and other characteristics of the S-function.

Syntax

Arguments

S
   SimStruct representing an S-Function block.

Description

This is the first of the S-function's callback methods that Simulink calls. This method should perform the following tasks:

Dynamically Sized Block Features

You can set the parameters NumContStates, NumDiscStates, NumInputs, NumOutputs, NumRWork, NumIWork, NumPWork, NumModes, and NumNonsampledZCs to a fixed nonnegative integer or tell Simulink to size them dynamically:

Languages

Ada, C, M

Example


  mdlInitializeSampleTimes mdlOutputs