Robochameleon
v1.0
|
PPG Pulse pattern generator. More...
Inherits unit.
Public Member Functions | |
function | PPG_v1 (in param) |
Class constructor. More... | |
function | setLevels (in obj, in levels) |
Set the amplitude levels of the PPG generator. More... | |
function | traverse (in obj) |
![]() | |
virtual | traverse (in obj, in varargin) |
Main function call. | |
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 |
Number of inputs. | |
Property | nOutputs |
Number of outputs. | |
Property | order |
PRBS order. | |
Property | total_length |
Output sequence length. | |
Property | Rs |
Symbol rate. | |
Property | level1 |
Amplitude of high level. | |
Property | level0 |
Amplitude of low level. | |
![]() | |
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. | |
PPG Pulse pattern generator.
Outputs a 2^order - 1 pseudorandom sequence repeated up to total_length bits with Rs symbol rate. If block attribute is set, the unit is set to do block-processing.
Example PRBS sequence generator polynomials
function PPG_v1::PPG_v1 | ( | in | param | ) |
Class constructor.
Constructs an object of type PRBS
param.nOutputs | Number of output sequences. [Default: 1]. |
param.total_length | Output sequence lenghts [symbols]. |
param.Rs | Symbol rate |
param.levels | Amplitude levels as vector [level0 level1]. Takes precedence respect level0/1 |
param.level0 | Amplitude of high level. [Default: 1]. |
param.level1 | Amplitude of low level. [Default: 0]. |
obj | An instance of the class PPG_v1 |
function PPG_v1::setLevels | ( | in | obj, |
in | levels | ||
) |
Set the amplitude levels of the PPG generator.
levels | If scalar the value is assigned to level1. If vector the max is assigned to level1 and the min to level0. |