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

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 575
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 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
Vista de página 314
1 2 ... 310 311 312 313 314 315 316 317 318 319 320 ... 574 575

Comentários a estes Manuais

Sem comentários