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

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 386
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 300
Interrupt Handling
11-23
This will cause blocks up- or downstream from it, which would otherwise
inherit from the function-call subsystem, to use the sample time specified.
Note that if the signal width is greater than 1, data consistency is not
guaranteed, which may or may not an issue, see next option.
The Rate Transition block does not introduce any system delay. It only
specifies the sample time of the downstream blocks. This block is typically
used for scalar signals that do not require double buffering.
Use the Double Buffer block pair. This not only will set the sample time of
the blocks up or downstream that would otherwise inherit from the
function-call subsystem, and also guarantees consistency of the data on the
signal. See the Double Buffer block for more information on data consistency.
The third option is to allow the blocks to inherit their sample time. The
inherited sample time can be seen by turning on sample time colors in
Simulink. If you achieve the required sample times, no further action is
required.
Rate Transition Block Parameters
This picture shows the VxWorks Rate Transition block’s dialog box:
There is only one parameter:
Sampletime—setthesampletimetothedesiredrate.
Przeglądanie stron 300
1 2 ... 296 297 298 299 300 301 302 303 304 305 306 ... 385 386

Komentarze do niniejszej Instrukcji

Brak uwag