User`s guide
read
Input Response
n
Read n values into a column vector. Return t he
vector in
mem.
[m,n]
Read (m* n) values from memory into an m-by-n
matrix in column major order. Return the matrix
in
mem.
[m,n,p,...]
Read (m*n*p*...) values from the pro cesso r
memory in colum n major order. Return the data
in an
m-by-n-by-p-by... multidimensional matrix
and return the matrix in
mem.
datatype — a string that represents a MATLAB data type. The total
memory block size i s derived from the value of
count and the specified
datatype. datatype dete rmine s how many bytes to check for each
memory value.
read supports the following data types:
datatype Stri
ng
Description
'double'
Double-prec
ision fl oating point values
'int8'
Signed 8-bit
integers
'int16'
Signed 16-bi
t integers
'int32'
Signed 32-bi
t integers
'single'
Single-prec
ision floating point data
'uint8'
Unsigned 8-bit integers
'uint16'
Unsigned 16-bit integers
'uint32'
Unsigned 32
-bit integers
To limit the time that read spends transferring data from the processor,
the optional argument
timeout tells the data transfer process to stop
after
timeout seco nds. timeout is defined as the number of seconds
allowed to complete the read operation. You might find this useful for
limiting prolonged data transfer operations. If you om it the
timeout
option in the syntax, read defaults to the global timeout defined in cc.
7-116