Technical data
3
Writing Target Language Files
3-34
void
MdlOutputs(tid)
{
/* S-Function block: foo */
{
Simstruct *s = ssGetSFunction(S, 0);
real_T *sfcnU = ssGetU(s);
real_T *sfcnX = ssGetX(s);
real_T *sfcnY = ssGetY(s);
sfcnOutputs(sfcnY, sfcnX, sfcnU, s, tid);
}
}
void
MdlUpdate(tid)
{
/* S-Function block: foo */
{
Simstruct *s = ssGetSFunction(S, 0);
real_T *sfcnX = ssGetX(s);
real_T *sfcnU = ssGetU(s);
sfcnUpdate(sfcnX, sfcnU, s, tid);
}
}
Unnecessary call to
empty function
mdlUpdate in foogain.c.