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

  • 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 275
flush
flush(rx,channel) removesallpendingdatamessagesfromthe
RTDX channel queue specied by
channel in rx.Unlikethepreceding
syntax o ptions, you use this statem ent to r e mov e messages for both
read-congured a nd write-congured channels.
flush(rx,'all') removes all data messages from all RT DX channel
queues.
When you use
flush with a write-congured RTDX channel, Embedded
IDE Link CC sends all the messages in the write q ueue to the p rocessor.
For read-congured channels,
flush removes one or more messages
from the queue depending on the input argument
num you supply and
disposes of them.
Examples To demonstrate flush, this example writes data to the proc essor ove r
the input channel, then uses
flush to remove a m essage from the read
queue for the output channel:
cc = ticcs;
rx = cc.rtdx;
open(rx,'ichan','w');
enable(rx,'ichan');
open(rx,'ochan','r');
enable(rx,'ochan');
indata = 1:10;
writemsg(rx,'ichan',int16(indata));
flush(rx,'ochan',1);
Now ush the remaining messages from the read channel:
flush(rx,'ochan','all');
See Also enable, open
7-54
Vue de la page 275
1 2 ... 271 272 273 274 275 276 277 278 279 280 281 ... 574 575

Commentaires sur ces manuels

Pas de commentaire