Robochameleon
v1.0
|
polmux emulation - delay, rotate polarization, add More...
Inherits module.
Public Member Functions | |
function | PolMux_v1 (in varargin) |
Class constructor. | |
![]() | |
function | module () |
Create sink for internal output buffers. | |
function | view (in obj) |
Show biograph through module_view-class. | |
function | getOutput (in obj) |
Function to access module output for various intentions. | |
function | keepOutput (in obj) |
Function tells outputBuffer sink not to delete itself after traverse. | |
function | traverse (in obj, in varargin) |
Traverse function for modules. 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 | nInputs |
Number of input arguments (required) | |
Property | nOutputs |
Number of output arguments (required) | |
![]() | |
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. | |
Additional Inherited Members | |
![]() | |
function | exportModule (in obj, in varargin) |
Construct module. More... | |
function | connectInputs (in obj, in destInternalUnits, in destInternalInputs) |
Connect input signal to internal unit(s) More... | |
![]() | |
Property | outputBuffer |
Where output signal is stored. | |
polmux emulation - delay, rotate polarization, add
Gets 2 signals and puts it into one with 2 colums. Syntax can be the same as Delay_v1.m: P = PolMux_v1(N, 'mode') Default mode is 'samples', other options are 'symbols' and 'bits' (equivalent) Parameters can also be passed as a structure, with fields 'delay' and 'mode'
Notes: Doesn't track the power. Use it only in digital domain, not in optical domain where power requires to be tracked.
Example:
Will build two equivalent pol-mux emulators with a delay of 100 symbols
Definition at line 31 of file PolMux_v1.m.