Simulink Control Design™ - MathWorks

(Tuis.) #1

writeBlockValue


Update block values in Simulink model

Syntax


writeBlockValue(st)
writeBlockValue(st,blockid)
writeBlockValue(st,m)

Description


writeBlockValue(st) writes tuned parameter values from the slTuner interface, st,
to the Simulink model that st describes. Use this command, for example, to validate
parameters of a control system that you tuned using systune or looptune.

writeBlockValue skips blocks that cannot represent their tuned value in a
straightforward and lossless manner. For example, suppose you tune an user defined
Subsystem or S-Function block. writeBlockValue will skip this block because there is
no clear way to map the tuned value to a Subsystem or S-Function block. Similarly, if you
parameterize a Gain block as a second-order transfer function, writeBlockValue will
skip this block, unless the transfer function value is a static gain.

writeBlockValue(st,blockid) only updates the block or blocks referenced by
blockid.

writeBlockValue(st,m) writes tuned parameter values from a generalized model, m,
to the Simulink model described by the slTuner interface, st.

Examples


Update Simulink Model with All Tuned Parameters

Create an slTuner interface for the model.

15 Alphabetical List

Free download pdf