Simulink.sdi.setDataAccess
Specify settings for streaming signal data to MATLAB callback function during simulation
Since R2026a
Syntax
Description
sets the data access settings for a signal identified by the block path or handle and the
port index using one or more name-value arguments. For example, to specify the name of the
data access callback function that processes or visualizes signal data during simulation,
set dataAccess = Simulink.sdi.setDataAccess(block,portIndex,Name=Value)CallbackFunction to the name of that callback function, such as
"myCallback".
sets the data access settings for a signal specified using the output port handle.dataAccess = Simulink.sdi.setDataAccess(portHandle,Name=Value)
sets the data access settings for a signal specified using the line handle.dataAccess = Simulink.sdi.setDataAccess(lineHandle,Name=Value)
Examples
Input Arguments
Name-Value Arguments
Version History
Introduced in R2026a