MATLAB SIMULINK 7 - DEVELOPING S-FUNCTIONS Uživatelská příručka Strana 62

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 210
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 61
3 Writing S-Functions As C-MEX files
3-18
Alternate Calling Structure for External Mode
When running Simulink in external mode, the calling sequence for S-function
routines changes. This picture shows the correct sequence for external mode:
Figure 3-3: S-Function Calling Sequence when Simulink Runs in External
Mode
Simulink calls mdlRTW once when it enters external mode and again each
time a parameter changes or when you select
Update Diagram under your
model’s
Edit menu.
Note Running Simulink in external mode requires the Real-Time Workshop.
For more information about external mode, see the Real-Time Workshop
User’s Guide.
mdlRTW For code generation only
p. 3-54
mdlTerminate
p. 3-53
mdlSetInputPortWidth/mdlSetOutputPortWidth
mdlInitializeSizes
mdlInitializeSampleTimes
mdlSetWorkWidths
mdlStart
p. 3-28
p. 3-35
p. 3-46
p. 3-48
p. 3-36
mdlSetInputPortSampleTime/mdlSetOutputPortSampleTime
p. 3-33
mdlInitializeConditions
p. 3-48
External mode
parameter change loop
Zobrazit stránku 61
1 2 ... 57 58 59 60 61 62 63 64 65 66 67 ... 209 210

Komentáře k této Příručce

Žádné komentáře