MATLAB EMBEDDED IDE LINK 4 - FOR USE WITH TEXAS INSTRUMENTS CODE COMPOSER STUDIO Guia do Utilizador Página 59

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 575
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 58
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
Vista de página 58
1 2 ... 54 55 56 57 58 59 60 61 62 63 64 ... 574 575

Comentários a estes Manuais

Sem comentários