MATLAB EMBEDDED IDE LINK 4 - FOR USE WITH TEXAS INSTRUMENTS CODE COMPOSER STUDIO Betriebsanweisung Seite 230

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 575
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 229
address
Examples After you load a program to your processor, address lets you read
and write to specic entries in the symbol table for the program. For
example, the following function reads the value of symbol
ddat’from
the symbol table in CCS IDE.
ddatv = read(cc,address(cc,'ddat'),'double',4)
ddat
is an entry in the current symbol table. address searches for the
string
ddat and returns a value when it nds a match. read returns
ddat to MATLAB software as a double-precision value as specied by
the string
double’.
To change values in the s ymbol table, use
address with write:
write(cc,adddress(cc,'ddat'),double([pi 12.3 exp(-1)...
sin(pi/4)]))
After executing this write operation, ddat contains double-precision
values for π, 12.3, e
-1
, and sin(π/4). Use read to verify the contents
of
ddat:
ddatv = read(cc,address(cc,'ddat'),'double',4)
MATLAB software returns
ddatv =
3.1416 12.3 0.3679 0.7071
See Also load, read, symbol, write
7-8
Seitenansicht 229
1 2 ... 225 226 227 228 229 230 231 232 233 234 235 ... 574 575

Kommentare zu diesen Handbüchern

Keine Kommentare