Robochameleon  v1.0
Public Member Functions | Public Attributes | List of all members
Delay_v1 Class Reference

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...
 
- Public Member Functions inherited from unit
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'}
 
- Public Attributes inherited from unit
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.
 

Detailed Description

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'

Author
Miguel Iglesias Olmedo
Version
1

Definition at line 13 of file Delay_v1.m.

Constructor & Destructor Documentation

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 = Delay_v1(100, 'symbols')
P2 = Delay_v1(100)
params = struct('delay', 100, 'mode', 'symbols');
Q = Delay_v1(params);

P and Q are equivalent. P2 is similar, but the delay is applied at the sample level rather than the symbol level.

Member Function Documentation

function Delay_v1::traverse ( in  obj,
in  sig 
)
virtual

Traverse function.

Time shift is applied circularly to the signal - be careful at edges.

Reimplemented from unit.


The documentation for this class was generated from the following file: