Products & Services Solutions Academia Support User Community Company

Learn more about Simulink Design Optimization   

Importing Data into the GUI

How To Import Time-Domain Data into the GUI

After you create an estimation project, as described in Creating an Estimation Project, you can import the estimation data into the GUI. To learn more about the types of data for parameter estimation, see Types of Data for Parameter Estimation in the Simulink Design Optimization Getting Started Guide.

To import transient (measured) data for your dynamic system:

  1. In the Control and Estimation Tools Manager, select Transient Data under the Estimation Task node of the Workspace directory tree.

  2. Right-click Transient Data and select New to create a New Data node. Alternatively, you can use the New button to create this node.

  3. Select the New Data node under the Transient Data node.

    The Control and Estimation Tools Manager GUI now resembles the next figure.

    Import Data into the Control and Estimation Tools Manager

    The table rows in the Input Data tab corresponds to the Inport block BPAV in the engine_idle_speed model. Similarly, the rows in the Output Data tab corresponds to the Outport block Engine Speed.

    The idle-speed model of an automotive engine contains the measured data stored in the iodata array. The array contains two columns: the first for input data, and the second for output data. You must import both the input and the output data, as described in the following sections:

Importing Input Data and Time Vector

To import the input data for the port BPAV:

  1. In the New Data node, click the Input Data tab.

  2. Right-click the Data cell and select Import to open the Data Import dialog box. Alternatively, you can use the Import button to open this dialog box.

  3. In the Data Import dialog box, select iodata from the list of variables.

  4. Enter 1 in the Assign the following columns to selected channel(s) field, and then click Import.

  5. In the Input Data tab, select the Time/Ts cell.

  6. Select time in the Data Import dialog box.

  7. Click Import to import the time vector for the input data.

  8. Click Close to close the Data Import dialog box.

Importing Output Data and Time Vector

To import the output data for the port Engine Speed:

  1. In the New Data node, select the Output Data tab.

  2. Right-click the Data cell and select Import to open the Data Import dialog box.

  3. In the Data Import dialog box, select iodata from the list of variables.

  4. Enter 2 in the Assign the following columns to selected channel(s) field to use the second column of iodata, and then click Import.

  5. In the Output Data tab, select the Time/Ts cell.

  6. Select time in the Data Import dialog box.

  7. Click Import to import the time vector for the output data.

  8. Click Close to close the Data Import dialog box.

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS