User`s guide
3 Basic Procedures
3-50
Changing Model Parameters
You must use Simulink external mode to change model parameters. While
external mode is running, you can open any Simulink block and change a
parameter value. External mode will automatically transfer the new value to
the real-time application during execution.
After you start running your real-time application, you can change parameters
and observe the changes to the signals. To start a real-time application, see
“Running a Real-Time Application” on page 3-26. This procedure uses the
Simulink model
rtwin_model.mdl as an example. It assumes you have created
a real-time application and are executing it:
1 From the Simulation menu, click Start Real-Time code.
The real-time execution starts running and signal data is displayed in the
Scope window.
2 From the Simulink block diagram, double-click the Transfer Function block.
The
Block Parameters: Transfer Fcn dialog box opens.