| Contents | Index |
The controller and plant model networks that you develop are stored within Simulink controller blocks. At some point you might want to transfer the networks into other applications, or you might want to transfer a network from one controller block to another. You can do this by using the Import Network and Export Network menu options. The following demonstration leads you through the export and import processes. (The NARMA-L2 window is used for this demonstration, but the same procedure applies to all the controllers.)
Repeat the first three steps of the NARMA-L2 demonstration Using the NARMA-L2 Controller Block. The NARMA-L2 Plant Identification window should then be open.
Select Export from the File menu, as shown below.

This opens the following window.

Select Export to Disk. The following window opens. Enter the file name test in the box, and select Save. This saves the controller and plant networks to disk.

Retrieve that data with the Import menu option. Select Import Network from the File menu, as in the following figure.

This causes the following window to appear. Follow the steps indicated to retrieve the data that you previously exported. Once the data is retrieved, you can load it into the controller block by selecting OK or Apply. Notice that the window only has an entry for the plant model, even though you saved both the plant model and the controller. This is because the NARMA-L2 controller is derived directly from the plant model, so you don't need to import both networks.

The data that you generate to train networks exists only in the corresponding plant identification or controller training window. You might want to save the training data to the workspace or to a disk file so that you can load it again at a later time. You might also want to combine data sets manually and then load them back into the training window. You can do this by using the Import and Export buttons. The following demonstration leads you through the import and export processes. (The NN Predictive Control window is used for this demonstration, but the same procedure applies to all the controllers.)
Repeat the first five steps of the NN Predictive Control demonstration Using the NN Predictive Controller Block. Then select Accept Data. The Plant Identification window should then be open, and the Import and Export buttons should be active.
Select the Export button. This causes the following window to open.

Select Export to Disk. The following window opens. Enter the filename testdat in the box, and select Save. This saves the training data structure to disk.

Now retrieve the data with the import command. Select the Import button in the Plant Identification window. This causes the following window to appear. Follow the steps indicated on the following page to retrieve the data that you previously exported. Once the data is imported, you can train the neural network plant model.

![]() | Model Reference Control | Radial Basis Networks | ![]() |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |