NRZ-OOK Transmitter

OCSim Modules

Modern Fiber Optic Communication Systems Simulations with Advanced Level Matlab Modules


Module 4a


Modulation Schemes


NRZ-OOK Transmitter


Company Researchers & Developers

Integrate the Modules with your in-house and Commercial Software & Hardware Products


(1) Use the Existing Modules / Components for Your Research & Development.
(2) Modify the Modules / Components to the Next Level for Your Research & Development.
(3) Integrate Different Modules / Components in the OCSim Package to Realize Your Own Fiber Optic Communication Systems.
(4) Modify the Modules for Co-Simulations with the Third Party Commercial Optical Communication Systems Softwares.


Source Code:


NRZ-OOK transmitter that uses dual drive Mach-Zehnder modulator (MZM) is simulated. The MZM is driven by polar NRZ signal. The pulse shape is assumed to be raised-cosine.

This Module calls the following Sub Modules and Components:

(1) power_meter.m
Calculates the average optical power in dBm units.

(2) tx_nrz_ook.m
Modulates the output of the laser with OOK data using dual drive Mach-Zehnder modulator.

(3) eye_diagram.m
Plots the eye diagram of the optical power.

Explore Further this Module:

4a.1 Roll-off factor alpha (defined in tx_nrz_ook.m) determines the steepness of the pulse edge. Modify the source code by changing alpha from 0 to 0.9 with a step of 0.1 and plot the time diagram, eye diagram and spectrum.

4b.2 Change the pulse shape to Gaussian and change the duty cycle of the electrical signal to 50% and plot the eye diagram and spectrum. Compare the bandwidth of the 50% duty cycle (RZ) and 100% duty cycle (NRZ) pulses.

4c.3 Change the variances of transmitter electronic noise and optical noise and observe how the eye diagram provides the visual information about the noise. Also observe how the noise floor in the spectrum increases as optical and/or electronic noise variance increases.



.Selected Simulated Results Using this Module 



Time Diagram




Eye Diagram










OCSim Modules details can be seen by clicking the pages below:

OCSim Modules Overview | OCSim Modules (1-18) in the Package

Module (1a) | Module (1b) | Module (1c) | Module (2a) | Module (2b) | Module (2c) | Module (3a) | Module (3b) | Module (4a) | Module (4b) | Module (4c) | Module (4d) | Module (5) | Module (6a) | Module (6b) | Module (7) | Module (8a) | Module (8b) | Module (8c) | Module (9a) | Module (9b) | Module (10) | Module (11a) | Module (11b) | Module (12) | Module (13) | Module (14) | Module (15) Module (16) Module (17) Module (18)

OCSim Modules Brochure | OCSim Modules Selected Publication ReferencesOCSim Modules Application Examples |

OCSim Modules Selected Simulated Results OCSim Modules Videos       


Contact Us: Headquarter: Ottawa, Canada covering USA and EuropeDistributors: South AmericaJapanIndiaAustraliaChina, South Korea.