Engee documentation

d2d

Page in progress.

Change in the sampling period of a discrete system.

Library

EngeeControlSystems

Syntax

Function call

  • newsys = d2c(sys, ts) changes the sampling step of a discrete model sys to a new one ts using a zero-order extrapolator as a resampling method.

  • newsys = d2c(sys, ts, method) changes the sampling step of a discrete model sys to a new one ts by the method of oversampling method.

  • newsys = d2c(sys, ts, method; w_prewarp=0) changes the sampling step of a discrete model sys to a new one ts by the method of oversampling method. When using a bilinear transformation, the frequency of pre-images is additionally indicated w_prewarp by default equal to zero.

Arguments

Input arguments

# sys is a discrete model of a dynamic system

+ dynamic system model

Details

The initial discrete model of a dynamical system.

Data types

Pid, PidStd

# ts — new sampling step

+ scalar

Details

The discretization step of the resulting discrete system.

Data types

Float64

# method — oversampling method

+ :zoh (by default) | :tustin

Details

The oversampling method. You can choose one of the following values:

  • :zoh — Zero-order extrapolator (selected by default).

  • :tustin — bilinear transformation.

Data types

Symbol

# w_prewarp — frequency of pre-distortion

+ 0 (by default) | scalar

Details

The pre-distortion frequency in rad/s used in bilinear conversion. The value must be a positive number.

Data types

Float16, Float32, Float64, Int8, Int16, Int32, Int64, UInt8, UInt16, UInt32, UInt64

Output arguments

# newsys — a new discrete model of a dynamic system

+ dynamic system model

Details

The resulting discrete model of a dynamical system with a new sampling period.

Data types

Pid, PidStd