User`s guide

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