Creates an optical signal from an electrical signal. It models an ideal laser diode by transfering the electrical signal to an optical.
This class is usually used after the class pypho_signalsrc
.
pypho_lasmod.__init__(glova, power, Df, teta)
Instantiation and parameter setting.
Parameter | Type | Description |
---|---|---|
glova |
instance | Global parameters |
power |
float | Mean signal power in dBm. |
Df |
float | Frequency deviation of the signal in GHz. Default value is 0 GHz. |
teta |
float | Rotation of the polarisation in rad. Default value is 0: Only optical signal power in X-polarisation. |
Output | Type | Description |
---|---|---|
User defined variable | pypho_lasmod.pypho_lasmod |
pypho_lasmod.__call__(esig, power (optional), Df (optional), teta (optional))
Parameter | Type | Description |
---|---|---|
esig |
numpy.ndarray | Electrical signal representing a bitsequence. |
Optional paramter | As defined above |
Output | Type | Description |
---|---|---|
User defined variable | list | Returns a list in which the optical data and noise signal are defined. Read here about data signal and noise representation. |