- This topic has 1 reply, 2 voices, and was last updated 2 years ago by .
Viewing 2 reply threads
Viewing 2 reply threads
- You must be logged in to reply to this topic.
Optiwave software can be used in different industries and applications, including Fiber Optic Communication, Sensing, Pharma/Bio, Military & Satcom, Test & Measurement, Fundamental Research, Solar Panels, Components / Devices, etc..
Download our 30-day Free Evaluations, lab assignments, and other freeware here.Â
Optiwave software can be used in different industries and applications, including Fiber Optic Communication, Sensing, Pharma/Bio, Military & Satcom, Test & Measurement, Fundamental Research, Solar Panels, Components / Devices, etc..
Download our 30-day Free Evaluations, lab assignments, and other freeware here.Â
Hi ,
I tried using the MATLAB component in Optisystem to generate an LFM signal. My code was as follows
OutputPort1 = InputPort1;
InputPort1.Sampled.Time;
% Define parameters
chirp_period = 6e-6; % in seconds
bandwidth = 625e6; % in Hz
center_freq = 6e9; % in Hz
% Define time vector
dt = 1e-9; % time step size in seconds
t = 0:dt:chirp_period-dt;
% Calculate chirp rate
chirp_rate = bandwidth / chirp_period;
% Generate LFM signal
lfm_signal = exp(1j * 2 * pi * (center_freq * t + 0.5 * chirp_rate * t.^2));
lfm_signal = OutputPort1.Sampled.Signal;
Can anyone help me how to define the input and output ports.
Not getting the output. Hope someone will come forward to help.
Thank you.
Dear Arjun,
you need to identify the type of the input and output ports of the Matlab component as desired. This can be set in the component properties window (scroll down on Signal type (output 1). However, you need to set first the number of input and output ports.
I think you are generating an electrical signal that you need to modulate a laser with it. This means that the output signal should be electrical. You need to identify the type of signal for the input port.
Regards,
Ahmad
Dear Arjun,
you need to identify the type of the input and output ports of the Matlab component as desired. This can be set in the component properties window (scroll down on Signal type (output 1). However, you need to set first the number of input and output ports.
I think you are generating an electrical signal that you need to modulate a laser with it. This means that the output signal should be electrical. You need to identify the type of signal for the input port.
Regards,
Ahmad