MATLAB SIMULINK 7 - DEVELOPING S-FUNCTIONS Podręcznik Użytkownika Strona 50

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 210
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 49
3 Writing S-Functions As C-MEX files
3-6
mdlOutputs
Calculation of outputs. For our timestwo
S-function, mdlOutputs takes the input,
multiplies it by two, and writes the
answer to the output. This routine is
called du ring the simulation loop each
time t he output of
timestwo needs to be
updated. For the above block diagram, it
is called at every time step.
mdlTerminate
Perform tasks at end of simulation. The
timestwo S-function has no t ermination
tasks to perform; therefore, this routine is
empty.
Table 3-1: S-Function Routines Called
During Simulation of the timestwo Example (Continued)
S-Function Routine Description
Przeglądanie stron 49
1 2 ... 45 46 47 48 49 50 51 52 53 54 55 ... 209 210

Komentarze do niniejszej Instrukcji

Brak uwag