LabVIEW Control Design and Simulation Module

grammian (MathScript RT Module Function)

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

grammian (MathScript RT Module Function)

Owning Class: ssanals

Requires: Control Design and Simulation Module and MathScript RT Module

Syntax

Gr = grammian(SysInSS, type)

Legacy Name: gram

Description

Calculates the controllability or observability Grammians of a stable linear time-invariant (LTI) system model in state-space form.

Examples

Inputs

Name Description
SysInSS Specifies a linear time-invariant (LTI) model in state-space.
type Specifies whether this function computes the controllability or observability Grammians of the SysInSS model. type is a string that can take the following values:

'c' Specifies that this function computes the controllability Grammian.
'o' Specifies that this function computes the observability Grammian.

Outputs

Name Description
Gr Returns the controllability or observability Grammian of the SysInSS model, depending on the value you specify for the type input. Gr is a real matrix.

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

SysIn = ss([-5, 1; -1, -2], [1, 2]', [2, 1], 0)
Gr = grammian(SysIn, 'O')

Related Topics

balance_grammian
ss
balance_diag
ctrbstairs
ctrbmx
obsvmx
obsvstair