Engee documentation

Logic Decision

The threshold value crossing detector at the input of the binary process.

blockType: SubSystem

Path in the library:

/Mixed-Signal/Utilities/Logic Decision

Description

Block Logic Decision generates an output event with a fixed delay, almost from the moment when the input signal crosses the decision threshold. This block provides a transition from a uniformly sampled input signal to an event-driven digital logic subsystem.

Ports

Input

# wave — Input signal
a discrete signal with a fixed pitch | discrete signal with variable pitch | scalar

Details

An input signal specified as a floating-point scalar. The input signal can be inherited or defined by a block Logic Decision as a discrete signal with a fixed pitch.

Data types

Float64, Bool

Complex numbers support

I don’t

# vth — the value of the decision threshold
scalar

Details

The value of the decision threshold, set as a scalar. The value on the port vth determines the moment of delay of the input signal by a fixed amount.

Data types

Float32 | Float64

Complex numbers support

I don’t

Output

# events — Output signal
0 | 1

Details

The output signal returned as 0 or 1.

Data types

Float64 | Bool

Complex numbers support

I don’t

Parameters

Parameters

# Sample Time — the source of the sampling period
Inherited | Fixed

Details

The source of the sampling period:

  • Choose Inherited to inherit the sampling period from the previous block.

  • Choose Fixed to set a fixed value for the sampling period.

Values

Inherited | Fixed

Default value

Inherited

Program usage name

SampleTimeSource

Tunable

No

Evaluatable

Yes

# Sample time value — the actual value of the sampling period

Details

The actual value of the sampling period, set as a real number not equal to zero.

Dependencies

To use this parameter, set for the parameter Sample Time meaning Fixed.

Default value

2.0e-11

Program usage name

SampleTimeIn

Tunable

No

Evaluatable

Yes

# Minimum delay value — minimum propagation delay

Details

The minimum propagation delay for a block, set as a positive scalar value. For a discrete signal with a fixed sampling period, the actual delay is equal to the maximum value of this parameter and a fixed step size.

Default value

1e-15

Program usage name

Delay

Tunable

No

Evaluatable

Yes

# Buffer size — number of crossings of the threshold for buffering

Details

The number of pending output events that can be stored in a block, set as a positive integer scalar.

Default value

1

Program usage name

BufferSizeIn

Tunable

No

Evaluatable

Yes