Skip to Main Content Skip to Search
Product Documentation

mdlSetDefaultPortComplexSignals - Set the numeric types (real, complex, or inherited) of ports whose numeric types cannot be determined from block connectivity

Required

No

C Syntax

#define MDL_SET_DEFAULT_PORT_COMPLEX_SIGNALS
void mdlSetDefaultPortComplexSignals(SimStruct *S)

C Arguments

S

SimStruct representing an S-Function block.

Description

The Simulink engine 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. This method is only valid for simulation, and must be enclosed in a #if defined(MATLAB_MEX_FILE) statement.

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

Languages

C, C++

See Also

ssSetOutputPortComplexSignal, ssSetInputPortComplexSignal

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS