Main Content

serdes.PassThrough

Propagates baseband signal without modification

Description

The serdes.PassThrough System object™ passes the input signal without any modification. This System object is used as a place holder within a SerDes system and as a template for user-authored system objects for use in SerDes Toolbox™.

To propagate the signal through a serdes.PassThrough:

  1. Create the serdes.PassThrough object and set its properties.

  2. Call the object with arguments, as if it were a function.

To learn more about how System objects work, see What Are System Objects?.

Creation

Description

PassThrough = serdes.PassThrough returns an empty pass through object that returns the input signal unchanged.

PassThrough = serdes.PassThrough(Name,Value) sets properties using one or more name-value pairs. Enclose each property name in quotes. Unspecified properties have default values.

Example: SatAmp = serdes.PassThrough('Modulation',4) returns a PassThrough object with PAM4 modulation scheme.

Properties

expand all

Unless otherwise indicated, properties are nontunable, which means you cannot change their values after calling the object. Objects lock when you call them, and the release function unlocks them.

If a property is tunable, you can change its value at any time.

For more information on changing property values, see System Design in MATLAB Using System Objects.

Modulation scheme, specified as 2 or 4.

Modulation ValueModulation Scheme
2Non-return to zero (NRZ)
4Four-level pulse amplitude modulation (PAM4)

Data Types: double

Time of a single symbol duration, specified as a real scalar in s.

Data Types: double

Uniform time step of the waveform, specified as a real scalar in s.

Data Types: double

Usage

Description

y = PassThrough(x)

Input Arguments

expand all

Input baseband signal.

Output Arguments

expand all

Unchanged output voltage, as specified by the serdes.PassThrough object.

Object Functions

To use an object function, specify the System object as the first input argument. For example, to release system resources of a System object named obj, use this syntax:

release(obj)

expand all

stepRun System object algorithm
releaseRelease resources and allow changes to System object property values and input characteristics
resetReset internal states of System object

Examples

collapse all

This example shows how to propagate an input waveform without modification using a serdes.PassThrough system object™.

Create the incoming waveform.

t = linspace(0,12,101);
y1 = sin(t);

Create the PassThrough object.

PT = serdes.PassThrough;

Process the input waveform with the PassThrough object.

y2 = PT(y1);

Plot the input and output waveforms.

figure, plot(t,y1,'--',t,y2,'.')
legend('Input','Output')
title('Using PassThrough to Propagate Signal');
xlabel('Time (s)'); 
ylabel('Amplitude (V)');

Verify the equality of input and output signals.

isequal(y1,y2)   
ans = logical
   1

Extended Capabilities

Introduced in R2019a