User`s guide
Getting Star ted with RTDX™
To specify the number of messages to read and the data format in your
workspace, you used the
siz and nummsgs options set to [2 5] and 2.
14 You can look at both matrices in outdata by dereferencing the cell array
again.
outdata{1,:}
ans =
6 8 10 12 14
7 9 11 13 15
ans =
7 9 11 13 15
810121416
15 For a cha n ge, rea d a messa ge from the queue into a column vector.
outdata = cc.rtdx.readmsg('ochan','int16',[10 1])
outdata =
8
9
10
11
12
13
14
15
16
17
16 Embedded IDE L ink CC provides a function for reading messages into
matrices–
readmat.Usereadmat toreadamessageintoa5-by-2matrixin
MATLAB software.
outdata = readmat(cc.rtdx,'ochan','int16',[5 2])
outdata =
914
10 15
11 16
2-37