Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

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.

Introduced before R2006a

Was this topic helpful?