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

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 210
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 98
Overview of the C MEX S-Function Routines
3-55
routineoryourS-functionhas a“simulationmode”and a “real-timemode”such
as a hardware I/O S-function that simulates the I/O device in Simulink and
interacts with the I/O device in real-time.
To inline an S-function in the generated code, you must use the Target
Language Compiler. Details on this can be found in the Real-Time Workshop
User’s Guide and Target Language Compiler Reference Guide. Inlining of
S-functions alters the code generation process by adding information to the
generated
model.rtw file. This is achieved by adding an mdlRTW routine to your
S-function.See
simulink/src/sfuntmpl.doc for more details. For an example,
see
simulink/src/sfun_multiport.c and toolbox/simulink/blocks/
sfun_multiport.tlc
.
Przeglądanie stron 98
1 2 ... 94 95 96 97 98 99 100 101 102 103 104 ... 209 210

Komentarze do niniejszej Instrukcji

Brak uwag