One Shot End of trail navigation bar

Table of Contents

Debouncer

Debounces a switch signal.

Library

QUARC Targets/Discontinuities

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/Discontinuities')

Description

Debouncer

The Debouncer block is able to determine the on/off state of a switch signal. When the input signal value retains above the preset Threshold for more than Rise time, the block determines the switch is on, likewise if the input signal value retains blow the preset Fall time, the block determines the switch is off.

Input Ports

input

The switch signal to be debounced.

threshold

The threshold value to determine the state of the switch. This port only appears when Source of parameters is set to External input port.

rise time

The time frame the input signal is expected to bounce when switching from off to on. This port only appears when Source of parameters is set to External input port.

fall time

The time frame the input signal is expected to bounce when switching from on to off. This port only appears when Source of parameters is set to External input port.

Output Ports

output

The switch state determined by the block.

Parameters and Dialog Box

Debouncer

Initial state

Specifies the initial state of the input signal. The options are on and off.

Source of parameters

Specifies the source of parameters of the selected controller. The options are Specify via dialog and External input port.

Threshold

If the average input signal amplitude is above this limit for too long (based on the Peak Time Limit) then the input signal is saturated to this value.

Rise time

The time frame the input signal is expected to bounce when switching from off to on. This port only appears when Source of parameters is set to Specify via dialog.

Fall time

The time frame the input signal is expected to bounce when switching from on to off. This port only appears when Source of parameters is set to Specify via dialog.

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