MATLAB EMBEDDED IDE LINK 4 - FOR USE WITH TEXAS INSTRUMENTS CODE COMPOSER STUDIO Uživatelská příručka Strana 387

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 575
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 386
writemsg
enable(rx,'ichannel');
inputdata(1:25);
writemsg(rx,'ichannel',int16(inputdata));
As a further illustration, the following code snippet writes the messages
in matrix
indata to the write-enabled channel specied by ichan.
Note again that this example works only when
ichan is dened by the
program on the processor and enabled for write a ccess .
indata = [1 4 7; 2 5 8; 3 6 9];
writemsg(cc.rtdx,'ichan',indata);
The matrix indata is w ritten by colum n t o ichan.Thepreceding
function syntax is equivalent to
writemsg(cc.rtdx,'ichan',[1:9]);
See Also readmat, readmsg, write
7-165
Zobrazit stránku 386
1 2 ... 382 383 384 385 386 387 388 389 390 391 392 ... 574 575

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

Žádné komentáře