LabVIEW Control Design and Simulation Module

d_to_d (MathScript RT Module Function)

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

d_to_d (MathScript RT Module Function)

Owning Class: convert

Requires: Control Design and Simulation Module and MathScript RT Module

Syntax

SysOutDis = d_to_d(SysInDis, Ts)

Legacy Name: d2d

Description

Resamples a discrete system model. Resampling involves converting a discrete model to another discrete model with a different sampling time.

Examples

Inputs

Name Description
SysInDis Specifies a discrete model in transfer function, zero-pole-gain, or state-space form.
Ts Specifies the sampling time this function uses to resample the discrete model SysInDis. The default value is 1. Ts is a real scalar.

Outputs

Name Description
SysOutDis Returns the discrete model SysInDis with new sampling time Ts.

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 = [0.5, 0.25; 0, 0.1]
B = [1, 0]';
C = [-1, 0]
SysInDis = ss(A, B, C, 0, 0.1)
SysOutDis = d_to_d(SysInDis, 0.2)

Related Topics

c_to_d
d_to_c