MATLAB REAL-TIME WORKSHOP 7 - TARGET LANGUAGE COMPILER Uživatelská příručka Strana 211

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 386
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 210
Sample Rate Transitions
7-11
Sample Rate Transitions
There are two possible sample rate transitions that can exist within a model:
A faster block driving a slower block
A slower block driving a faster block
In singletasking systems, there are no issues involved with multiple sample
rates. In multitasking and pseudomultitasking systems, however, differing
sample rates can cause problems. To prevent possible errors in calculated data,
you must control model execution at these transitions. In transitioning from
faster to slower blocks, you must add Zero-Order Hold blocks between fast to
slow transitions and set the sample rate of the Zero-Order Hold to that of the
slower block:
Figure 7-6: Transitioning from Faster to Slower Blocks (T = sample period)
becomes
Faster Slower
BlockBlock
T=1sec T=2sec
Faster
Slower
Block
T=1sec
T=2sec
Zero-Order
Hold
Block
T=2sec
Zobrazit stránku 210
1 2 ... 206 207 208 209 210 211 212 213 214 215 216 ... 385 386

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

Žádné komentáře