readhex - Data from DSP memory as hexadecimal strings

Syntax

data = readhex(nn)
data = readhex(nn,[],timeout)
data = readhex(nn,index)
data = readhex(nn,...)

Description

data = readhex(nn) returns, as hexadecimal strings, the data accessed by numeric object nn. When nn refers to an array, the returned values stored in data compose a cell array of hexadecimal strings. If the size property of nn is 1, indicating that nn accesses a scalar, the output in data is an array of hexadecimal characters.

data = readhex(nn,[],timeout) returns all the values accessed by nn, as indicated by the empty square brackets, []. During read operations, the timeout property of nn determines the time allowed to complete the read. Including a value for the timeout input argument lets you override the timeout property setting for nn with the value you enter for argument timeout. For reading large data arrays, setting the timeout value as an input option may be necessary to let readhex run to completion. Note that using the timeout input option does not change the timeout property value for nn.

data = readhex(nn,index) returns the data element at the index specified by index from the data block accessed by nn Enter index as a scalar to return one data value, or a vector to return two or more values from the data array.

data = readhex(nn,...) returns hexadecimal strings as specified by your combination of all the optional input arguments.

See Also

cast, readbin, write

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS
 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS