User`s guide
writemsg
Purpose Writemessagestospecified RTDX channel
Note Support for writemsg on C5000 and C6000 processors will be
removed in a future version.
Syntax data = writemsg(rx,channelname,data)
data = writemsg(rx,
channelname,data)
Description data = writemsg(rx,channelname,data) writes data to a channel
associated with
rx. channelname id en ti fi es the channel q ueue, which
must be configured for write access. All m essage s must be the same
type for a single w r ite op e ra tion.
writemsg takes the elements of matrix
data in column-major order.
To limit the time that
writemsg spends transferring messages from the
processor, the optional argument
timeout tells the message transfer
process to stop after
timeout seco nds. timeout is defined as the number
of seconds allowed to complete the write operation. You may find this
useful for limiting prolonged data transfer operations. If you omit the
timeout option in the syn tax, write defaults to the global timeout
period defined in
cc.
writemsg supports the following data types: uint8, int16, int32,
single,anddouble.
data = writemsg(rx,channelname,data) uses the global timeout
setting assigned to
cc when you create the link.
Examples After you load a program to your processor, configure a link in RTDX
for write access and use
writemsg to write data to the processor. Recall
that the program loaded on the processor must define
ichannel and th e
channel must be configured for w rite access.
cc=ticcs;
rx = cc.rtdx;
open(rx,'ichannel','w'); % Could use rx.open('ichannel','w')
7-164