Documentation Center

  • Trial Software
  • Product Updates

Import Data (GUI)

Creating an Estimation Project

Before you begin data import, you must create and set up an estimation project by configuring the appropriate parameters, solvers, and cost functions. Simulink® Design Optimization™ software provides a Graphical User Interface (GUI) that makes setting up the estimation project quick and easy.

To create an estimation project:

  1. Open the nonlinear idle speed model of an automotive engine by typing :

    engine_idle_speed
    

    at the MATLAB® prompt.

    The model appears as shown next.

    The model contains the Inport block BPAV and Outport block Engine Speed for importing input and output data, respectively. To learn more, see Model Requirements for Importing Data.

  2. Open the Control and Estimation Tools Manager GUI by selecting Analysis > Parameter Estimation in the Simulink model window.

    Control and Estimation Tools Manager GUI

    The project tree displays the project name Project - engine_idle_speed. Estimation tasks are organized inside the Estimation Task node.

      Note:   The Simulink model must remain open to perform parameter estimation tasks.

Importing 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 Supported Data.

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 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.

Importing Time-Series Data into the GUI

Time-series data is stored in time-series objects. For more information, see Time Series Objects in the MATLAB documentation.

When you import time-series data for parameter estimation, specify the data and time vector as t.data and t.time in the Data and Time/Ts columns of the New Data node, respectively. For more information on how to import data into the GUI, see Importing Time-Domain Data into the GUI.

Importing Complex Data into the GUI

Complex-valued data is data whose value is a complex number. For example, a signal with the value 1+2j is complex. You can use complex data to estimate parameters of electrical systems, such as the magnitude and phase.

    Note:   You must sample the real and imaginary parts of the data as a function of the same time vector.

To use complex data for parameter estimation:

  1. Split the data into two data sets that contain the real and imaginary parts. To split the data, use the MATLAB functions real, and imag.

  2. Import both data sets into the GUI, as described in Importing Time-Domain Data into the GUI.

  3. Specify both the data sets together as estimation data, as described in Specify Estimation Data.

  4. Estimate the parameters, as described in Run Estimation.

Was this topic helpful?