User`s guide

Generating Simulink S-Functions
3-9
Data Type
The input and output vectors for the Simulink S-function must be
double-precision vectors or scalars. You must ensure that the variables you use
in the M-code for input and output are also double-precision values.
Note Simulink S-functions that are generated via the -S option of the
Compiler are not currently compatible with Real-Time Workshop
®
. They can,
however, be used to rapidly prototype code in Simulink.