writebin - Write binary data to processor memory

Syntax

writebin(mm,data)
writebin(mm,data,[])
writebin(mm,data,index)
writebin(...,timeout)

Description

writebin(mm,data) writes a block of binary strings data into the memory block described by mm. data is string containing 0 or 1 or a cell array of binary strings of 0s and 1s. Writing to the target fails when data has more entries than the memory range covers as specified by mm. Conversely, when data has fewer elements than the memory range allows, writebin starts writing data at the first address in the memory location.

writebin(mm,data,[]) same as writebin(mm,data).

writebin(mm,data,index) Writes a single binary string data to the specified index (the address offset).

writebin(...,timeout) adds the optional timeout input argument to specify the time allowed for the write operation to finish. Changing the default time out value may be necessary when you write large arrays to memory. Note that when MATLAB® software returns an error that the time-out period expired, it does not necessarily mean the write failed. Only that MATLAB software did not receive notification about the write operation finishing before the allotted time passed. The write operation usually works correctly in spite of the message.

See Also

read, 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