Skip to Main Content Skip to Search
Product Documentation

ssWarning - Display a warning message

Syntax

void ssWarning(SimStruct *S, const char_T *msg)

Arguments

S

SimStruct representing an S-Function block or a Simulink model.

msg

Warning message.

Description

Displays msg. This macro expands to mexWarnMsgTxt when compiled for use with the Simulink product. When compiled for use with the Simulink Coder product, the macro expands to printf("Warning:%s from '%s'\n",msg, ssGetPath(S));, if the target has stdio facilities; otherwise, it expands to a comment.

Languages

C, C++

Example

See the S-function sfun_dynsize.c used in sfcndemo_sfun_dynsize.mdl.

See Also

ssSetErrorStatus, ssPrintf

  


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