regulator (MathScript RT Module Function)
- Updated2023-03-14
- 1 minute(s) read
regulator (MathScript RT Module Function)
Owning Class: ssdesign
Requires: Control Design and Simulation Module and MathScript RT Module
Syntax
SysRegSS = regulator(SysInSS, L, K)
Legacy Name: reg
Description
Constructs a state regulator based on the estimator gain matrix and controller gain matrix of a state-space system model.
Inputs
| Name | Description |
|---|---|
| SysInSS | Specifies a linear time-invariant (LTI) model in state-space form. |
| L | Specifies the estimator gain matrix. You can obtain L using the ackermann or poleplace function. L is a real matrix. |
| K | Specifies the controller gain matrix. You can obtain K using the ackermann or poleplace function. K is a real matrix. |
Outputs
| Name | Description |
|---|---|
| SysReg | Returns the state-space model of a state regulator. |
Details
The following table lists the support characteristics of this function.
| Supported in the LabVIEW Run-Time Engine | Yes |
| Supported on RT targets | Yes |
| Suitable for bounded execution times on RT | Not characterized |
Examples
A = [1, 1; -1, 2]
B = [1, 2]'
C = [2, 1]
SysInSS = ss(A, B, C, 0)
L = ackermann(A', C', [-1, -3])'
K = ackermann(A, B, [-0.5, -0.75])
SysRegSS = regulator(SysInSS, K, L)