MATLAB REAL-TIME WORKSHOP 7 - TARGET LANGUAGE COMPILER Servisní příručka Strana 73

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 282
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 72
Target Language Compiler
2-53
1: %assign y = LibBlockOutputSignal(0, "", lcv, sigIdx)
1: %assign u = LibBlockInputSignal(0, "", lcv, sigIdx)
1: %assign k = LibBlockParameter(Gain, "", lcv, sigIdx)
1: %if InlineParameters == 1
0: %<FcnEliminateUnnecessaryParams(y, u, k)>\
1: %else
1: %<y> = %<u> * %<k>;
1: %endif
1: %endroll
1:
1: %endfunction
1:
1: %% [EOF] gain.tlc
This structure makes it easy to identify branches not taken and to develop new
tests that can exercise unused portions of the target files.
Zobrazit stránku 72
1 2 ... 68 69 70 71 72 73 74 75 76 77 78 ... 281 282

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

Žádné komentáře