LabVIEW Control Design and Simulation Module

sys_order2 (MathScript RT Module Function)

  • Updated2023-03-14
  • 2 minute(s) read

sys_order2 (MathScript RT Module Function)

Owning Class: construct

Requires: Control Design and Simulation Module and MathScript RT Module

Syntax

[A, B, C, D] = sys_order2(wn, dr)

[num, den] = sys_order2(wn, dr)

Legacy Name: ord2

Description

Constructs the components of a second-order system model based on a damping ratio and natural frequency you specify. You can use this function to create either a state-space model or a transfer function model, depending on the output parameters you specify.

Examples

Inputs

Name Description
wn Specifies the natural frequency of the resulting model. wn is a real scalar.
dr Specifies the damping ratio of the resulting model. dr is a real scalar.

Outputs

Name Description
A Returns the n x n state matrix of the resulting model, where n is the number of states. A is a real matrix.
B Returns the n x m input matrix of the resulting model, where m is the number of inputs. B is a real matrix.
C Returns the r x n output matrix of the resulting model, where r is the number of outputs. C is a real matrix.
D Returns the r x m direct transmission matrix of the resulting model. D is a real matrix.
num Returns the coefficients of the numerator polynomial function of the resulting model. num is a real vector.
den Returns the coefficients of the denominator polynomial function of the resulting model. den is a real vector.

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

dr = 0.5
wn = 20
[num, den] = sys_order2(wn, dr)
SysTF = tf(num, den)
[A, B, C, D] = sys_order2(wn, dr)
SysSS = ss(A, B, C, D)

Related Topics

damp
tf
ss