User`s guide
read
defaults to a value of 1. This syntax reads one memory location of
datatype.
Note To ensure seamless read operatio n, use address to extract
address values that are compatible with the alignment required by your
processor.
read does not force data type alignment in your processor
memory.
Certain combinations of address and datatype are difficult for some
processors to use. To ensure seamless
read operation, use the address
function to extract address values that are com patible with the
alignment required by your processor.
Like the
isreadable, iswritable,andwrite functions, read checks
for valid a ddress values. Illegal a ddress values are any addre s s s p ace
largerthantheavailablespacefortheprocessor—2
32
for the C6xxx
processor family and 2
16
for the C5xxx series. When read identifies an
illegal address, it returns an error message stating that the address
values are out of range.
Examples read reads data that y ou w rote to the processor.
cc = ticcs;
indata = 1:25;
write(cc,0,indata,30);
outdata=read(cc,0,'double',25,10)
outdata =
Columns 1 through 13
12345678910111213
Columns 14 through 25
7-118