Main Content

作的t Measured Response Data for Plant Estimation

此示例显示了如何使用PID Tunerto import measured response data for plant estimation.

If you have System Identification Toolbox™ software, you can usePID Tunerto estimate the parameters of a linear plant model based on time-domain response data.PID Tunerthen tunes a PID controller for the resulting estimated model. The response data can be either measured from your real-world system, or obtained by simulating your Simulink®model. Plant estimation is especially useful when your Simulink model cannot be linearized or linearizes to zero. For plant identification, you must specify a finite value for the Simulink model stop time.

When you import response data,PID Tunerassumes that your measured data represents a plant connected to the PID controller in a negative-feedback loop. In other words,PID Tuner假设系统的以下结构。PID Tunerassumes that you injected an input signal atuand measured the system response aty, as shown.

You can import response data stored in the MATLAB®workspace as a numeric array, atimeseriesobject, or aniddata(System Identification Toolbox)object. To import response data:

  1. InPID Tuner, in thePID Tunertab, in thePlant菜单,选择Identify New Plant.

  2. In the植物鉴别tab, clickGet I/O data. Select the type of measured response data you have. For example, if you measured the response of your plant to a step input, selectStep Response. To import the response of your system to an arbitrary stimulus, select任意I/O数据.

  3. In the Import Response dialog box, enter information about your response data. For example, for step-response data stored in a variableoutputy和采样每0.1年代:

    Click作的t. The植物鉴别tab opens, displaying the response data and the response of an initial estimated plant.

  4. Depending on the quality and features of your response data, you might want to perform some preprocessing on the data to improve the estimated plant results. ThePreprocessmenu gives you several options for preprocessing response data, such as removing offsets, filtering, or extracting on a subset of the data. In particular, when the response data has an offset, it is important for good identification results to remove the offset.

    In the植物鉴别tab, clickPreprocessand select the preprocessing option you want to use. A tab opens with a figure that displays the original and preprocessed data. Use the options in the tab to specify preprocessing parameters.

    (For more information about preprocessing options, seePreprocess Data.)

    When you are satisfied with the preprocessed signal, clickUpdateto save the change to the signal. Click返回到植物鉴别tab.

    PID Tunerautomatically adjusts the plant parameters to create a new initial guess for the plant based on the preprocessed response signal.

You can now adjust the structure and parameters of the estimated plant to obtain the estimated linear plant model for PID Tuning. SeeInteractively Estimate Plant from Measured or Simulated Response Datafor more information.

相关话题