MATLAB MODEL PREDICTIVE CONTROL TOOLBOX - S Dokumentacja Strona 97

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 166
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 96
Design Controller Using the Design Tool
3-47
You could define the required MPC2 object in one of the following ways:
Import MPC2 from a MAT-file (assuming you had saved it as explained in “Exporting a
Controller” on page 3-44).
Load the model's project file, which contains a copy of MPC2.
To use the second approach, open the design tool by typing
mpctool
in the MATLAB Command Window. This creates a blank Model Predictive Control
Toolbox project called MPC Design Task. Click Load on the toolbar.
This opens a dialog box similar to that shown in Dialog Box for Saving a Controller
Design Project. Use it to select the project file you've saved, and then click OK to load the
project. It should appear in the tree. Verify that it contains a controller named MPC2.
Run the CSTR_MPC model in Simulink. The block mask automatically retrieves MPC2
from the design tool, and the simulation runs. In other words, loading the project
automatically restores the link between the design tool and the MPC Controller block.
Przeglądanie stron 96
1 2 ... 92 93 94 95 96 97 98 99 100 101 102 ... 165 166

Komentarze do niniejszej Instrukcji

Brak uwag