Writing S-Functions    
mdlSetInputPortComplexSignal

Set the numeric type (real, complex, or inherited) of the signals accepted by an input port.

Syntax

Arguments
S
   Simstruct representing an S-function block.

port
   Index of a port

csig
   Numeric type of signal

Description

Simulink calls this routine to set the input port signal type. The S-function must check if the specified signal type is a valid type for the specified port. If it is valid, the s-function must set the signal type of the specified input port. Otherwise, it must report an error using ssSetErrorStatus. The s-function can also set the signal type of other input and output ports with unknown signal types. Simulink reports an error if the S-function changes the signal type of a port whose signal type is known.

If the S-function does not implement this routine, Simulink assumes that the S-function accepts a real or complex signal and sets the input port signal type to the specified value.

Languages

C

See Also

ssSetInputPortComplexSignal, ssSetErrorStatus


 mdlSetDefaultPortDimensionInfo mdlSetInputPortDataType