This block enables the overwriting of a control signal by an external program, as well as reading of its meta-data, without the need to explicitly propogate the external input or activation switch to a top-level model.
This block is typically used by the BOPTEST framework (see BOPTEST) to identify and activate control signals that can be overwritten by test controllers. It is used in combination with a dedicated parser to perform this task (see Parser Code).
The input u is the signal to be overwritten. The
output y will be equal to the input signal if the
activate flag is false and will be equal
to the external input signal uExt if the flag is
true.
It is important to add a brief description of the signal using
the description parameter and assign a
min, max, and unit to the
input variable u by modifying its attributes.
boptestOverwrite unprotected. This is
for #1585.Description to
description.