Threshold crossing detector at input to binary process
Mixed-Signal Blockset / Utilities
Logic Decision block produces an output event at a fixed delay from almost exactly the time the input signal crosses a decision threshold. This block helps transitioning from a uniformly sampled input waveform to an event driven digital logic subsystem.
wave— Input signal
Input signal, specified as a floating point scalar. The input signal can either be inherited, or defined by the Logic Decision block as a fixed step discrete sample time.
vth— Decision threshold value
Decision threshold value, specified as a scalar. The value at vth port determines when the input signal is delayed by a fixed amount.
events— Output signal
Output signal, returned as either
Sample time— Source of sample time
Source of sample time.
Inherited to inherit sample time from previous
Fixed to set discrete sample time to a fixed
get_param(gcb,'SampleTimeSource') to view the
current source of Sample time.
set_param(gcb,'SampleTimeSource',value) to set
Sample time to a specific value.
Sample time value— Actual value of sample time
20e-12(default) | real scalar excluding zero
Actual value of sample time, specified as a real scalar excluding zero.
To enable this parameter, select
Fixed in Sample
get_param(gcb,'SampleTimeIn') to view the current
Sample time value.
set_param(gcb,'SampleTimeIn',value) to set
Sample time value to a specific value.
Minimum delay value— Minimum propagation delay value
1e-15(default) | positive scalar
The minimum propagation delay for the block, specified as a positive scalar. For a fixed discrete input sample time, the actual delay is the maximum of this parameter value and the fixed step size.
get_param(gcb,'Delay') to view the current
Minimum delay value.
set_param(gcb,'Delay',value) to set Minimum
delay value to a specific value.
Buffer size— Number of threshold crossings to buffer
1(default) | positive integer scalar
The number of pending output events that can be stored in the block, specified as a positive integer scalar.
get_param(gcb,'BufferSizeIn') to view the current
set_param(gcb,'BufferSizeIn',value) to set
Buffer size to a specific value.