Model Predictive Control Toolbox Previous page   Next Page 
 Provide feedback about this page

Exporting a Controller

To export a controller, do one of the following:

All of the above open the MPC Exporter dialog (see example below). The following sections describe the dialog box options.

Dialog Options

The following sections describe the dialog's options.

Controller Source

Use this to select the project/task containing the controller to be exported. It defaults to the project/task most recently active.

Controller to Export

Use this to specify the controller to be exported. It defaults to the controller most recently selected in the tree.

Name to Assign

Use this to assign a valid MATLAB variable name (no spaces). It defaults to the selected controller's name (with spaces removed, if any).

Export to Workspace

Select this option if you want the controller to be exported to the MATLAB workspace.

Export to MAT-file

Select this option if you want the controller to be exported to a MAT-file.

Buttons

Export

If you've selected the to Workspace option, clicking Export causes a new mpc object to be created in your MATLAB workspace. (If one having the assigned name already exists, you'll be asked if you want to overwrite it.) You can use the MATLAB whos command to verify that the controller has been exported.

If you've selected the to MAT-file option, clicking Export opens a standard file chooser that allows you to specify the file.

In either case, the dialog window remains visible, allowing you to export additional controllers.

Close

Click Close to close the dialog window. You can also click the close icon on the window's title bar.


 Provide feedback about this page 

Previous page Importing a Controller Signal Definition View Next page

© 1984-2007 The MathWorks, Inc. Terms of Use Patents Trademarks Acknowledgments


Your Ad Here