MATLAB REAL-TIME WORKSHOP 7 - TARGET LANGUAGE COMPILER Podręcznik Użytkownika Strona 322

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 386
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 321
12 Configuring Real-Time Workshop for Your Application
12-18
S-Function Code Format
The S-function code format (corresponding to the RTW S-function target)
generates code so that you can use the model as a (C MEX) S-function block in
another model. This format has these applications:
Componentize a model — You can generate an object file for a model,
m1,in
the S-function format. Then, you can place the generated S-function block in
another model,
m2. Regenerating code for m2 will not require regenerating
code for
m1.
Speeding up simulation — You can generate an S-function for your model
and then use different inputs to test the model. For example, the model
sfun
is pictured below.
Generating code and compiling it for an S-function target results in the block
sfun_sf, which is an RTW S-Function block that contains all the
Przeglądanie stron 321
1 2 ... 317 318 319 320 321 322 323 324 325 326 327 ... 385 386

Komentarze do niniejszej Instrukcji

Brak uwag