Threshold Debouncer navigation bar

Table of Contents

One Shot

The One Shot block produces a pulse signal with the specified width whenever the input signal meets user defined trigger condition.

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

One Shot

The One Shot block produces a pulse signal with specified width whenever the input signal meets user defined trigger condition. The trigger condition can be defined through the Trigger type parameter, while the width of the pulse is defined by the Pulse width (samples) parameter. The behavior of the block, when it comes to redundant trigger signals, is regulated by the Redundant pulse parameter. A redundant trigger signal is a trigger signal fed to the trigger port while the block is processing a previous trigger signal. Please refer to Redundant pulse section for more details.

Input Ports

trigger

An edge on this signal triggers a change in the block output.

untriggered output

Output signal when the input signal is not triggered.

triggered output

Output signal when the input signal is triggered.

width

This port appears when the Source of pulse width is set to External input port, and sets the width (in samples) of output pulse.

Output Ports

output

Outputs triggered output signal when there is an edge signal at input meets the settings of Trigger type and Redundant pulse, otherwise outputs the signal at untriggered output.

Data Type Support

The block outputs are of type double.

Parameters and Dialog Box

One Shot

Trigger type (tunable online)

Specifies the condition when the input signal is considered triggered. The options are Falling, Rising, and Either.

Redundant pulse (tunable online)

Specifies the behavior of the output signal when redundant triggered signal is received. Take the following model for example (Trigger type is Falling):

Example model to test One Shot block

If this parameter is set to Ignore extraneous pulse, the redundant signals are ignored, while the block is dealing with the output signal from the previous trigger signal.

Ignore extraneous pulse

If this parameter is set to Extend pulse width, the width of the output pulse is recalculated from the last trigger signal.

Extend pulse width

Source of pulse width

The source of the pulse width, and options are Specify via dialog and External input port.

Pulse width (tunable online)

This parameter appears when the Source of pulse width is set to Specify via dialog, and sets the width (in samples) of output pulse.

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