Programmatically connect a Dashboard block to a signal
Use a Simulink.HMI.SignalSpecification
object to
programmatically connect a Dashboard block to a signal.
The SignalSpecification
object contains the block path, port index,
and frame processing mode for a signal. To connect a Dashboard block to a signal,
specify the corresponding SignalSpecification
object as the value for
the Binding
parameter for the block using the set_param
function.
creates an empty sigSpec
= Simulink.HMI.SignalSpecificationSimulink.HMI.SignalSpecification
object.
Specify the block path and port index that correspond to the origin of the
signal you want to connect.