MATLAB EMBEDDED IDE LINK 4 - FOR USE WITH TEXAS INSTRUMENTS CODE COMPOSER STUDIO Guide de l'utilisateur Page 302

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 575
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 301
iswritable
Like the isreadable, read,andwrite functions, iswritable checks
for valid address values. Illegal address values would be any address
space larger than the available space for the processor 2
32
for the
C6xxx processor family and 2
16
for the C5xxx series. When the function
identies an illegal address, it returns an error m essage stating that
theaddressvaluesareoutofrange.
iswritable(rx,'channel') returns a Boolean value signifying
whether the RTDX channel specied by
channel and rx,iscongured
for write operations.
Examples When you write scripts to run models in MATLA B software and CCS
IDE, the
iswritable function is very useful. Use iswritable to check
that the channel to which you are writing to is indeed congured
properly.
cc = ticcs;
rx = cc.rtdx;
% Define read and write channels to the processor linked by cc.
open(rx,'ichannel','r');
open(rx,'ochannel','w');
enable(rx,'ochannel');
enable(rx,'ichannel');
iswritable(rx,'ochannel')
ans=
1
iswritable(rx,'ichannel')
ans=
0
Nowthatyourscriptknowsthatitcanwriteto'ichanne'l, it proceeds
towritemessagesasrequired.
See Also hex2dec, isreadable, read
7-80
Vue de la page 301
1 2 ... 297 298 299 300 301 302 303 304 305 306 307 ... 574 575

Commentaires sur ces manuels

Pas de commentaire