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

  • 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 292
isreadable
family and 2
16
for the C5xxx series. W h en the function identi fies an
illegal address, it returns an error message stating that the address
values are out of range.
Note isreadable relies on the memory map optio n in CCS IDE. If
you did not properly define the memory map for the processor in CC S
IDE,
isreadable does not produce useful results. Refer to your Texas
Instruments’ C ode Composer Studio documen t a t ion f or information on
configuring m emory maps.
Examples When you write scripts to run models in the M ATLAB environment and
CCS IDE, the
isreadable function is very useful. Use isreadable
to check that the channel from which you are reading is confi gured
properly.
cc = ticcs;
rx = cc.rtdx;
% Define read and write channels to the processor linked by cc.
open(rx,'ichannel','r');s
open(rx,'ochannel','w');
enable(rx,'ochannel');
enable(rx,'ichannel');
isreadable(rx,'ochannel')
ans=
0
isreadable(rx,'ichannel')
ans=
1
Now that your script knows that it can read from ichannel, it proceeds
to read messages as required.
See Also hex2dec, iswritable, read
7-71
Zobrazit stránku 292
1 2 ... 288 289 290 291 292 293 294 295 296 297 298 ... 574 575

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

Žádné komentáře