MATLAB SIMULINK 7 - DEVELOPING S-FUNCTIONS Guida Utente Pagina 170

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 210
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 169
4 Guidelines for Writing C MEX S-Functions
4-4
The MathWorks has a dopted terminology for these different requirements.
Respectively, the situations described above map to this terminology:
1 Noninlined S-function
2 Wrapper S-function
3 Fully inlined S-function
Noninlined S-Functions
A noninlined S-function is a C-MEX S-function that is treated identically by
Simulink and the Real-Time Workshop. In general, you implement your
algorithm once according to the S-function API. Simulink and the Real-Time
Workshop call the S-function routines (e.g.,
mdlOutputs) at the appropriate
points during model execution.
Significant memory and computation resources are required for each instance
of a noninlined S-function block. However, this routine of incorporating
algorithms into Simulink and the Real-Time Workshop is typical during the
prototyping phase of aprojectwhere efficiencyis notimportant.The advantage
gained by foregoing efficiency is the ability to change model parameters and/or
structures rapidly.
Note that writing a noninlined S-function does not involve any TLC coding.
Noninlined S-functionsare the default case for the Real-Time Workshop in the
sense that once you’ve built a C-MEX S-function in your model, there is no
additional preparation prior to clicking
Build in the RTW Page of the
Simulation Parameters dialog box for your model.
Wrapper S-Functions
A wrapper S-function is ideal for interfacing hand-written code or a large
algorithm t hat is encapsulated within a few procedures. In this situation,
usually the procedures reside in modules that are separate from the C-MEX
S-function. The S-f unction module typically contains a few calls to your
procedures. Since t he S-functi on module does not contain any parts of y our
algorithm, b ut o nly calls yo ur code, it is referred to as a wrapper S-function.
In addition to the C-MEX S-func tion wra p per, you n eed to create a TL C
wrapper that complements your S -function. The TLC wrapper is similar to the
S-function wrapper in that it contains calls to your algorithm.
Vedere la pagina 169
1 2 ... 165 166 167 168 169 170 171 172 173 174 175 ... 209 210

Commenti su questo manuale

Nessun commento

AEG A1283GS7 podręczniki

Instrukcje obsługi i podręczniki użytkownika dla Zamrażarki AEG A1283GS7.
Dostarczamy 1 pdf podręczników AEG A1283GS7 do pobrania za darmo według typów dokumentów: Instrukcja Użytkownika






Więcej produktów i instrukcji dla Zamrażarki AEG

Modele Rodzaj dokumentu
AG88850I Instrukcja Użytkownika   Aeg AG88850I Benutzerhandbuch, 12 strony
AG78850I Instrukcja Użytkownika    Aeg AG78850I Handleiding, 22 strony
SFB41211AS Instrukcja Użytkownika      Aeg SFB41211AS Handleiding, 64 strony
A71100TSX0 Instrukcja Użytkownika    Aeg A71100TSX0 Manuel utilisateur, 36 strony
SKS68800S2 Instrukcja Użytkownika      Aeg SKS68800S2 Handleiding, 44 strony
S83600CSM1 Instrukcja Użytkownika     Aeg S83600CSM1 Korisnički priručnik [de] [en] , 48 strony
SC41840-1I Instrukcja Użytkownika    Aeg SC41840-1I Handleiding [de] , 26 strony
SK81240I Instrukcja Użytkownika Aeg SK81240I Brugermanual, 30 strony
ABB68811LS Instrukcja Użytkownika      Aeg ABB68811LS Handleiding [en] , 56 strony
SK71000-4I Instrukcja Użytkownika     Aeg SK71000-4I User Manual, 18 strony
AGS68200F0 Instrukcja Użytkownika      Aeg SKS68200F0 User Manual, 56 strony
A81000TNX1 Instrukcja Użytkownika   Aeg A81000TNX1 User Manual, 20 strony
S3258DT8 Instrukcja Użytkownika   Aeg S3258DT8 User Manual, 21 strony
SFB58821AS Instrukcja Użytkownika      Aeg SFB58821AS Handleiding [de] , 64 strony
SKS68200F0 Instrukcja Użytkownika Aeg SKS68200F0 Brukermanual [en] [fr] [nl] , 16 strony
OEKOA.1343-6E Instrukcja Użytkownika   Aeg OEKOA.1343-6E User Manual [es] [it] [nl] [pt] , 27 strony
ABS6821VAF Instrukcja Użytkownika   Aeg ABS6821VAF User Manual, 16 strony
AGS68800S1 Instrukcja Użytkownika      Aeg AGS68800S1 Handleiding [fr] [nl] , 48 strony
SKS88840C0 Instrukcja Użytkownika     Aeg SKS98849C0 Handleiding, 56 strony
SKB41211AS Instrukcja Użytkownika       Aeg SKB41211AS Handleiding, 52 strony