LabVIEW Control Design and Simulation Module

select (MathScript RT Module Function)

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

select (MathScript RT Module Function)

Owning Class: reduce

Requires: Control Design and Simulation Module and MathScript RT Module

Syntax

SysSel = select(SysIn, i)

SysSel = select(SysIn, i, j)

SysSel = select(SysIn, i, j, k)

SysSel = select(SysIn, i, j, ord)

SysSel = select(SysIn, i, j, k, ord)

Description

Constructs a new system model by selecting inputs and/or outputs from an existing model. You also can select states from a state-space model.

Examples

Inputs

Name Description
SysIn Specifies a linear time-invariant (LTI) model in transfer function, zero-pole-gain, or state-space form.
i Specifies a list of model inputs to keep from the SysIn model. The default value is empty. A value of -1 specifies that you want to keep all inputs. i is a real vector.
j Specifies a list of model outputs to keep from the SysIn model. The default value is empty. A value of -1 specifies that you want to keep all outputs. j is a real vector.
k Specifies a list of model states to keep from the SysIn model. The default value is empty. A value of -1 specifies that you want to keep all states. This input is valid only if you specify a state-space model. k is a real vector.
ord Specifies whether the SysSel model orders the selected inputs/outputs/states in the order in which you selected them. To enable this behavior, specify a value of 1 for this input. If you specify a value of 0, the SysSel contains the selected inputs/outputs/states in the order in which they existed in the SysIn model. The default value is 0.

Outputs

Name Description
SysSel Returns the SysIn model with only the specified inputs and outputs. If you specified a state-space model for the SysIn input, the SysSel model also contains the specified states.

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 = tf(1, 2, 3, 4, 5, 6, -1, -2, -3, -4, -5, -6, [2 3]);
SysSel= select(SysIn, [2 1], [2 1], 1);

Related Topics

remove
mreduce