Writing S-Functions    
mdlSetDefaultPortDataTypes

Set the data types of ports whose data types cannot be determined from block connectivity.

Syntax

Arguments

S
   SimStruct representing an S-Function block.

Description

Simulink invokes this method if the block has ports whose numeric types cannot be determined from connectivity. (This usually happens when the block is unconnected or is part of a feedback loop.) This method must set the numeric types of all ports whose numeric types are not set.

If the block does not implement this method and at least one port is known to be complex, Simulink sets the unknown ports to COMPLEX_YES; otherwise, it sets the unknown ports to COMPLEX_NO.

Languages

C

See Also

ssSetOutputPortComplexSignal, ssSetInputPortComplexSignal


  mdlSetDefaultPortComplexSignals mdlSetDefaultPortDimensionInfo