MATLAB Link for Code Composer Studio Development Tools    
msgcount

Return the number of messages in a read-enabled channel queue

Syntax

Description

msgcount(rx,'channel') returns the number of unread messages in the read-enabled queue specified by channel for the RTDX link rx. You cannot use msgcount on channels configured for write access.

Examples

If you have created and loaded a program to the target processor, you can write data to the target, then use msgcount to determine the number of messages in the read queue.

  1. Create and load a program to the target.
  2. Write data to the target from MATLAB.
  3. Use msgcount to determine the number of messages available in the queue.

See Also
read, readmat, readmsg


  load new