Differences From Artifact [aa22fb9cbe]:
- File
mttroot/mtt/lib/rep/sfun_rep/sfun_interface.c.tmpl
— part of check-in
[0ae1960649]
at
2002-05-23 17:08:21
on branch origin/master
— `mtt sys sfun zip` now produces an input block and an interface block for MTT models.
Models can be embedded within larger Simulink models by the 2 ports.
The user must edit 2 code blocks in <sys>_sfun_interface.c before compiling with mex. (user: geraint@users.sourceforge.net, size: 5604) [annotate] [blame] [check-ins using] [more...]
To Artifact [028019b642]:
- File mttroot/mtt/lib/rep/sfun_rep/sfun_interface.c.tmpl — part of check-in [cbc3f2e90e] at 2002-05-27 13:19:09 on branch origin/master — Added "#include <math.h>". (user: geraint@users.sourceforge.net, size: 5622) [annotate] [blame] [check-ins using] [more...]
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | + | /* -*-c-*- Put emacs into c-mode * <mtt_model_name>_sfun_interface.c: * Matlab S-function to process inputs and outputs of <mtt_model_name> */ #define S_FUNCTION_NAME <mtt_model_name>_sfun_interface #define S_FUNCTION_LEVEL 2 #include <math.h> #include <stdio.h> #include <stdlib.h> #include "simstruc.h" #include "sfun_debug.h" #include "<mtt_model_name>_def.h" static double *mttu; /* pointer to inputs */ |
︙ |