Robochameleon
v1.0
|
Applies a time delay to a signal. More...
Inherits unit.
Public Member Functions | |
function | Delay_v1 (in varargin) |
Constructor. More... | |
function | traverse (in obj, in sig) |
Traverse function. More... | |
![]() | |
function | traverseNode (in obj) |
Set unique ID when creating a unit. More... | |
function | connectOutput (in obj, in uobj, in unitOutput, in nextUnitInput) |
Specify where signal should go next. More... | |
function | connectOutputs (in obj, in units, in destInputs) |
Specify where signal should go next. More... | |
function | writeInputBuffer (in obj, in sig, in inputId) |
write input buffer | |
function | horzcat (in varargin) |
horizontal concatenation | |
function | vertcat (in varargin) |
vertical concatenation | |
function | setparams (in obj, in params, in REQUIRED_PARAMS, in QUIET_PARAMS) |
set parameters More... | |
function | view (in obj) |
Show interactive GUI through unit_view-class. | |
Public Attributes | |
Property | nInputs |
Property | nOutputs |
Property | delay |
Delay to apply. | |
Property | mode |
apply delay to symbols or samples {'symbols' | 'samples'} | |
![]() | |
Property | inputBuffer |
Buffer for storing inputs as we traverse the graph. | |
Property | nextNodes |
Children nodes. | |
Property | destInputs |
Destination inputs in children. | |
Property | results |
For storing results. | |
Property | label |
Property | draw |
enable/disable plotting | |
Property | nInputs |
Number of signals traverse expects. | |
Property | nOutputs |
Number of outputs traverse expects. | |
Applies a time delay to a signal.
Delays a signal_interface by the number of samples specified first argument indicates the delay and second indicates weather it's 'symbols' or 'samples'
Definition at line 13 of file Delay_v1.m.
function Delay_v1::Delay_v1 | ( | in | varargin | ) |
Constructor.
There are two ways of using this, "old" and "standard": parameters can either be passed as two arguments, or a single structure.
P and Q are equivalent. P2 is similar, but the delay is applied at the sample level rather than the symbol level.
|
virtual |
Traverse function.
Time shift is applied circularly to the signal - be careful at edges.
Reimplemented from unit.