Main Content

read

Class: target.DebugIOTool
Namespace: target

Read specified byte stream from variable in memory

Since R2021a

Syntax

[variableData, errFlag] = myDebugIOTool.read(byteStream, variable)

Description

[variableData, errFlag] = myDebugIOTool.read(byteStream, variable), through the debugger, reads the specified byte stream from the variable in memory. The method returns the byte stream and an error flag.

Input Arguments

expand all

Byte stream to write to memory.

Example: [vd,ef] = myDebugIOTool.read('myByteStream', myVariable)

Variable in memory.

Example: [vd,ef] = myDebugIOTool.read('myByteStream', myVariable)

Data Types: uint64

Output Arguments

expand all

Byte stream from variable in memory.

Outcome of the write operation:

  • true –– Error occurred during write operation.

  • false –– Write operation completed.

Version History

Introduced in R2021a