# Identifying Continuous-Time State-Space Models (System Identification Toolkit)

LabVIEW 2013 System Identification Toolkit Help

Edition Date: June 2013

Part Number: 372458D-01

»View Product Info

After physical modeling, you can describe the direct circuit (DC) servomotor by using the following differential equations:

Set Ki to be equal to Ke to transform these differential equations. If you want to design an analog state feedback controller, transform these differential equations to the following dynamic system model:

Transform the dynamic system model to the following continuous-time state-space model.

 where A, B, and C are matrices of this continuous-time state-space model. ω is the rotational speed of the shaft. U is the driving voltage. i is the armature current.

You must estimate the values of the A, B, and C matrices to identify a state-space model.

## Using the SI Model Estimation Express VI

Complete the following steps to identify the continuous-time state-space model by using the SI Model Estimation Express VI.

1. Add the SI Model Estimation Express VI to the block diagram of the VI you created.

The Configure SI Model Estimation dialog box appears.
2. Select the State-Space button in the Select Model Type section to identify state-space models. The Model Diagram section displays a mathematical equation for the selected model type and a diagram of the model.
3. Select the SISO button in the Select System Dims section to identify single-input single-output (SISO) dynamic models.
4. Select the Waveform button in the Select Data Type section to identify dynamic models by using waveform input signals.
5. Enter 2 in the Number of states text box because the continuous-time state-space model contains two states: rotational speed ω and armature current i.
6. Click the OK button to close the configuration dialog box and return to the block diagram.
7. Wire the stimulus signal and response signal outputs of the SI Data Samples VI to the corresponding inputs of the SI Model Estimation Express VI.
8. Add the SI Convert Discrete to Continuous Model VI to the block diagram.

9. Wire the system model out output of the SI Model Estimation Express VI to the system model in input of the SI Convert Discrete to Continuous Model VI.
10. Add the SI Draw Model VI to the block diagram.

11. Wire the system model out output of the SI Convert Discrete to Continuous Model VI to the system model input of the SI Draw Model VI.
12. Create an indicator for the model output of the SI Draw Model VI. The following figure shows the block diagram.

13. Wire all error in and error out terminals on the block diagram.
14. Run this VI to identify the dynamic system model.

## Using the SI Estimate State-Space Model VI

Complete the following steps to identify the continuous-time state-space model by using the SI Estimate State-Space Model VI.

1. Add the SI Estimate State-Space Model VI to the block diagram of the VI you created.

2. Wire the stimulus signal and response signal outputs of the SI Data Samples VI to the corresponding inputs of the SI Estimate State-Space Model VI.
3. Create a control for the structure selector input of the SI Estimate State-Space Model VI.
4. Set all the Boolean controls of the structure selector input to FALSE because you need to estimate the A, B, and C matrices only.
5. Create a control for the number of states input of the SI Estimate State-Space Model VI.
6. Set the number of states input to 2 because the continuous-time state-space model contains two states: rotational speed ω and armature current i.
7. (Optional) Switch to the front panel, right-click all controls, and select Data Operations»Make Current Value Default from the shortcut menu. LabVIEW uses the current values as the default values for these controls.
8. Add the SI Convert Discrete to Continuous Model VI to the block diagram.

9. Wire the system model out output of the SI Estimate State-Space Model VI to the system model in input of the SI Convert Discrete to Continuous Model VI.
10. Add the SI Draw Model VI to the block diagram.

11. Wire the system model out output of the SI Convert Discrete to Continuous Model VI to the system model input of the SI Draw Model VI.
12. Create an indicator for the model output of the SI Draw Model VI. The following figure shows the block diagram.

13. Wire all error in and error out terminals on the block diagram.
14. Run this VI to identify the dynamic system model.

## Verifying Resulting Dynamic System Models

If you use the SI Data Samples VI to generate the input and output data in Part 2, LabVIEW returns the following system model:

 where A matrix is . B matrix is . C matrix is [–0.0480361 –0.0142187]. e(t) is the system noise.