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.

S-Functions Using Math Functions

Possible problem — When you create your own S-functions that include math functions, the S-functions compile, but you cannot build the application.

Solution — Add the Simulink® Desktop Real-Time™ header to your S-function. For example, add:

#include <math.h>
#include "sldrtkernel.h"

The header #include <math.h> must precede the header #include "sldrtkernel.h".

Was this topic helpful?