MATLAB EMBEDDED IDE LINK 4 - FOR USE WITH TEXAS INSTRUMENTS CODE COMPOSER STUDIO Podręcznik Użytkownika Strona 562

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 575
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 561
B Reported Limitations and Tips
add(cc.type,'mytypedef','int')
To access type without the error, reference the individual elements of cc as
follows:
cc(1).type
add(cc(2).type,'mytypedef','int')
Changing the represent Property of an Object
An object’s represent property is writable. You can change it to modify the
access format. For example, an object with
represent set to float can be
changed to
represent set to signed. After the change, the data is read as
a signed integer. Likewise, the data is written as a signed integer.
Here’s one example of changing the property value for represent. Create
a
ticcs object to s tart.
x = createobj(cc,'g_double')
NUMERIC Object stored in memory:
Symbol name : g_double
Address : [ 14648 0]
Data type : double
Word size : 64 bits
Address units per value : 8 au
Representation : float
Size : [ 1 ]
Total address units : 8 au
Array ordering : row-major
Endianness : little
read(x)
ans =
17.0010
set(x,'represent','signed')
read(x)
ans =
B-6
Przeglądanie stron 561
1 2 ... 557 558 559 560 561 562 563 564 565 566 567 ... 574 575

Komentarze do niniejszej Instrukcji

Brak uwag