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

  • 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 314
msgcount
Purpose Number of m essages in read-enabled channel queue
Note Support for msgcount on C5000 and C6000 processors will be
removed in a future version.
Syntax msgcount(rx,'channel')
Description msgcount(rx,'channel') returns the number of unread messages in
the read-enabled queue speci ed by
channel for the RTDX interface rx.
You cannot use
msgcount on channels congured for write access.
Examples If you have created and loaded a program to the processor, you can
writedatatotheprocessor,thenuse
msgcount to determine the number
of messages in the read queue.
1 Create and load a program to the processor.
2 Write data to the processor from MATLAB software.
indata=1:100;
writemsg(cc.rtdx,'ichannel', int32(indata));
3 Use msgcount to determine the number o f messages available in
the queue.
num_of_msgs = msgcount(cc.rtdx,'ichannel')
See Also read, readmat, readmsg
7-93
Vue de la page 314
1 2 ... 310 311 312 313 314 315 316 317 318 319 320 ... 574 575

Commentaires sur ces manuels

Pas de commentaire