| Contents | Index |
msgcount(rx,'channel')
This function supports the following IDEs:
Texas Instruments Code Composer Studio v3
msgcount(rx,'channel') returns the number of unread messages in the read-enabled queue specified by channel for the RTDX interface rx. You cannot use msgcount on channels configured for write access.
If you have created and loaded a program to the processor, you can write data to the processor, then use msgcount to determine the number of messages in the read queue.
Write data to the processor from MATLAB software.
indata=1:100; writemsg(IDE_Obj.rtdx,'ichannel', int32(indata));
Use msgcount to determine the number of messages available in the queue.
num_of_msgs = msgcount(IDE_Obj.rtdx,'ichannel')

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |