MATLAB EMBEDDED IDE LINK 4 - FOR USE WITH TEXAS INSTRUMENTS CODE COMPOSER STUDIO Guia do Utilizador Página 276

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 575
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 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
Vista de página 275
1 2 ... 271 272 273 274 275 276 277 278 279 280 281 ... 574 575

Comentários a estes Manuais

Sem comentários