User`s guide
Parameter Tuning and Inlining Pa rameters
2 To reset to the previous v alues, type
setparam(tg,pt.parIndexVec,pt.OldValues)
ans =
parIndexVec: 5
OldValues: 800
NewValues: 100
Parameter Tuning with Simulink External Mode
You use Simulink external mode to connect your Simulink block diagram to
your ta rget applicatio n. The block diagram becomes a graphical user interface
to you r target application. You set up the Simulink interface in external mode
to establish a communication channel between your Simulink block window
and your target application.
In Simulink external mode, wherever you change parameters in the Simulink
block diagram, the Simulink software downloads those parameters to
the target application while it is running. This feature lets you change
parameters in your program without rebuilding the Simulink model to create
a new target application.
Note Opening a dialog box for a source block causes Simulink to pause. While
Simulink is paused, you can edit the parameter values. You must close the
dialog box to h av e the changes take effect and allow Simulink t o continue.
After you dow nload your target application to the target PC, you can connect
your Simulink model to the target application. This procedure uses the
Simulink model
xpcosc.mdl as an exampl e, and assumes you have cre ated
and downloaded the target application for that model.
1 In the Simulink window, and from the Simulation menu, click External.
A check mark appears next to the menu item External, and Simulink
external mode is activated.
2 In the Simulink block window, and from the Simulation menu, click
Connect to target.
3-73