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

Waveform generator class implementation. More...

Inherits module.

Public Member Functions

function WaveformGenerator_v1 (in param)
 Class constructor. More...
 
- Public Member Functions inherited from module
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...
 
- 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
 Number of inputs.
 
Property nOutputs
 Number of outputs.
 
- Public Attributes inherited from module
Property nInputs
 Number of input arguments (required)
 
Property nOutputs
 Number of output arguments (required)
 
- 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.
 

Additional Inherited Members

- Protected Member Functions inherited from module
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...
 
- Protected Attributes inherited from module
Property outputBuffer
 Where output signal is stored.
 

Detailed Description

Waveform generator class implementation.

Waveform generator.

This is a waveform generator which contains a symbol generator and pulseshaper.

Block diagram illustrating dependencies:

WaveformGenerator_v1_blockdiagram.png

Example

param.M = 4;
param.modulationFormat = 'QAM';
param.samplesPerSymbol = 16;
param.pulseShape = 'rrc';
param.rollOff = 0.2;
sigOut = wg.traverse();
Author
Rasmus Jones
Version
1
Date
February 2016

Definition at line 29 of file WaveformGenerator_v1.m.

Constructor & Destructor Documentation

function WaveformGenerator_v1::WaveformGenerator_v1 ( in  param)

Class constructor.

Constructs an object of type WaveformGenerator_v1. It also constructs a SymbolGenerator_v1 and a PulseShaper_v1

Parameters
param.nOutputsNumber of outputs
param.MModulation order
param.LOutput sequence length [symbols].
param.PRBSOrderPolynomial order (any integer 2-23; 27, 31)
param.modulationFormatModulation format
param.MModulation order
param.NNumber of Modes (or polarizations)
param.samplesPerSymbolIt is the desired output number of samples per symbol.
param.symbolRateYou are able to define a symbol rate for your signal here. The output sample frequency will be define as symbolRate*samplesPerSymbol.
param.pulseShapeChoose among 'rc', 'rrc', 'rz33', 'rz50', 'rz67', 'nrz' or 'custom';
param.filterCoeffsYou should define this as a vector if you chose 'custom' 'pulseShape'.
param.filterSymbolLengthYou should define a symbol length for 'rc' or 'rrc' filters. The default value is 202.
param.rollOffThe Roll-Off factor. You should define this value if you are using 'rc' or 'rrc' shapings. Usually, this number varies from 0 to 1.
Return values
objAn instance of the class WaveformGenerator_v1

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