simulink.compiler.setExternalInputsFcn
Set callback to specify data to each external root inport port block at the start of each simulation step
Since R2020b
Description
in = simulink.compiler.setExternalInputsFcn(
function registers a callback that dynamically provides values for every external root input
port block specified by in
, @(id, time) getInput(id, time)
)id
at the specified time
at
the root level of a model during simulation. The callback is required to return the value to
be set at the inport block. To return the value from the callback, use the syntax,
returningValue = getInput(id, time)
.
Input Arguments
Version History
Introduced in R2020b