Discrete Second-Order Low-Pass Filter Discretized Transfer Function navigation bar

Table of Contents

Discretized State-Space

Implements a continuous-time state-space system in discrete-time.

Library

QUARC Targets/Discrete

MATLAB Command Line

Click to copy the following command line to the clipboard. Then paste it in the MATLAB Command Window:

qc_open_library('quarc_library/Discrete')

Description

Discretized State-Space

The Discretized State-Space block converts a continuous-time LTI system in state-space form to a discrete-time state-space system according to the specified discretization method.

Installation Requirements

Install In order to use the Discretized State-Space block, the MathWorks Control System toolbox should be installed with your MATLAB software.

Input Ports

The input signal to the transfer function.

Output Ports

The output signal from the transfer function.

Data Type Support

This block accepts input of type double. The output is of type double.

Parameters and Dialog Box

Discretized State-Space

A

The A matrix for the continuous-time system. The A matrix appears in the state equation x' = Ax + Bu.

B

The B matrix for the continuous-time system. The B matrix appears in the state equation x' = Ax + Bu.

C

The C matrix for the continuous-time system. The C matrix appears in the state equation y = Cx + Du.

D

The D matrix for the continuous-time system. The D matrix appears in the state equation y = Cx + Du.

Initial Conditions

The initial states for the continuous-time system.

Discretization Method

The method used to discretize the continuous-time system. The methods provided with this block are those supported by the c2d command with the exception of the prewarp method, which is not supported by this block.

Sample Time

The sample time for the equivalent discrete-time system.

Targets

Target Name

Compatible*

Model Referencing

Comments

QUARC Win32 Target

Yes

Yes

QUARC Win64 Target

Yes

Yes

QUARC Linux Nvidia Target

Yes

Yes

QUARC Linux QBot Platform Target

Yes

Yes

QUARC Linux QCar 2 Target

Yes

Yes

QUARC Linux QDrone 2 Target

Yes

Yes

QUARC Linux Raspberry Pi 3 Target

Yes

Yes

QUARC Linux Raspberry Pi 4 Target

Yes

Yes

QUARC Linux RT ARMv7 Target

Yes

Yes

QUARC Linux x64 Target

Yes

Yes

QUARC Linux DuoVero Target

Yes

Yes

QUARC Linux DuoVero 2016 Target

Yes

Yes

QUARC Linux Verdex Target

Yes

Yes

QUARC QNX x86 Target

Yes

Yes

Last fully supported in QUARC 2018.

Rapid Simulation (RSIM) Target

Yes

Yes

S-Function Target

No

N/A

Old technology. Use model referencing instead.

Normal simulation

Yes

Yes

* Compatible means that the block can be compiled for the target.

 

navigation bar