Documentation Center

  • Trial Software
  • Product Updates

Contents

Signal Specification

Configure input and output ports for S-Functions

S-Function Callback Methods

mdlInitializeSizes Specify the number of inputs, outputs, states, parameters, and other characteristics of the C MEX S-function
mdlOutputs Compute the signals that this block emits
mdlSetDefaultPortComplexSignals Set the numeric types (real, complex, or inherited) of ports whose numeric types cannot be determined from block connectivity
mdlSetDefaultPortDataTypes Set the data types of ports whose data types cannot be determined from block connectivity
mdlSetDefaultPortDimensionInfo Set the default dimensions of the signals accepted or emitted by a C MEX S-function's ports
mdlSetInputPortComplexSignal Set the numeric types (real, complex, or inherited) of the signals accepted by an input port
mdlSetInputPortDataType Set the data types of the signals accepted by an input port
mdlSetInputPortFrameData Specify whether an input port accepts frame data
mdlSetInputPortSampleTime Set the sample time of an input port that inherits its sample time from the port to which it is connected
mdlSetOutputPortComplexSignal Set the numeric types (real, complex, or inherited) of the signals accepted by an output port
mdlSetOutputPortDataType Set the data type of the signals emitted by an output port
mdlSetOutputPortSampleTime Set the sample time of an output port that inherits its sample time from the port to which it is connected

SimStruct Functions

ssSetNumInputPorts Specify the number of input ports that a block has
ssSetInputPortComplexSignal Set the numeric type (real or complex) of an input port
ssSetInputPortDataType Set the data type of an input port
ssSetInputPortDirectFeedThrough Specify the direct feedthrough status of a block's ports
ssSetInputPortFrameData Specify whether a port accepts signal frames
ssSetInputPortOffsetTime Specify the offset time of an input port
ssSetInputPortRequiredContiguous Specify that the signal elements entering a port must be contiguous
ssSetInputPortSampleTime Specify the sample time of an input port
ssSetNumOutputPorts Specify the number of output ports that a block has
ssSetOutputPortComplexSignal Set the numeric type (real or complex) of an output port
ssSetOutputPortDataType Set the data type of an output port
ssSetOutputPortFrameData Specify whether a port outputs framed data
ssSetOutputPortOffsetTime Specify the offset time of an output port
ssSetOutputPortSampleTime Specify the sample time of an output port
ssGetInputPortComplexSignal Determine whether an input port accepts complex signals.
ssGetInputPortDataType Get the data type of an input port
ssGetInputPortDirectFeedThrough Determine whether a port has direct feedthrough
ssGetInputPortFrameData Determine whether a port accepts signal frames
ssGetInputPortOffsetTime Get the offset time of an input port
ssGetInputPortRequiredContiguous Determine whether the signal elements entering a port must be contiguous
ssGetInputPortSampleTime Get the sample time of an input port
ssGetInputPortSampleTimeIndex Get the sample time index of an input port
ssGetOutputPortComplexSignal Get the numeric type (complex or real) of an output port
ssGetOutputPortDataType Get the data type of an output port
ssGetOutputPortFrameData Determine whether a port outputs signal frames
ssGetOutputPortOffsetTime Get the offset time of an output port
ssGetOutputPortSampleTime Get the sample time of an output port
ssAllowSignalsWithMoreThan2D Enable S-function to work with multidimensional signals
ssSetOneBasedIndexInputPort Specify that an input port expects one-based indices
ssSetOneBasedIndexOutputPort Specify that an output port emits one-based indices.
ssSetZeroBasedIndexInputPort Specify that an input port expects zero-based indices
ssSetZeroBasedIndexOutputPort Specify that an output port emits zero-based indices.
Was this topic helpful?