poplaaward.blogg.se

How to write matlabcode in optisystem
How to write matlabcode in optisystem







The course culminated with a system simulation project that involved the design and optimization of a 2400 km link.

how to write matlabcode in optisystem

The detailed course content is presented below in Table 1.

How to write matlabcode in optisystem code#

Some aspects of the assignments required students to write their own code Matlab, while other aspects were based on the use of the OptiSystem simulation package generously provided to NGON by Optiwave Systems Inc. Practical training took the form of six assignments involving numerical simulations of devices or systems.

how to write matlabcode in optisystem

Students were able to participate by asking questions verbally or using a chat window, as well as having access to archived video of the three hour lectures. The thirteen week course was given on-line using Elluminate, an environment that allows the instructor to share desktop applications and demonstrate simulation tools. Jin (clockwise) discussing an simulation assignment on OptiSystem. One outcome was the creation of a common graduate course on the simulation of optical communications systems, first offered during the winter semester 2012.įigure 1: Prof. In Canada, the Next Generation Optical Networks (NGON) consortia was created at Queen’s University, Université Laval and McGill University to provide graduate students with targeted training with industrial input and participation. Preparation of highly qualified personnel to drive the optical communications industry and spur innovation requires training adapted to that industry’s requirements. On-Line Graduate Course on Simulation of Optical Communication Systems with OptiSystem Please refer to the Creating a component to handle optical signals application note for the instructions of the Matlab debug mode.ĩ Optiwave 7 Capella Court Ottawa, Ontario, K2E 7X1, Canada Tel.Contributing to Society with latest technologies and our specialized services in Process Control, Analytical Instruments, Public Addressing Notification Systems & Photonic Design and Simulation Software. The command workspace opens the Matlab workspace. In order to see the file structure in the Matlab workspace (Figure 3), first you need to run the OptiSystem program, then use the command open InputPort1 in the Matlab Command Window, to see the file structure for each port. Following is the Matlab code:Ĩ % This program simulates an electrical attenuator % Input parameter - Attenuation constant % create an output structure similar to the input OutputPort1 = InputPort1 % Attenuation constants Attenuation = Parameter0 if(inputport1.typesignal = 'Electrical') cs = length(inputport1.sampled) if( cs > 0 ) % Calculate the signal attenuated = * exp( * Attenuation/2) end cp = length(inputport1.noise) if( cp > 0 ) % Calculate the noise attenuated = * exp( * Attenuation/2) end cn = length(inputport1.individualsample) if( cn > 0 ) % Calculate the signal attenuated = * exp( * Attenuation/2 ) end end In this example, the code was written for the Sampled, Noise and IndividualSample, however, according to the application, the user can define those ones required for the simulation, e.g. After defining the Matlab component properties, you can start writing the program (Matlab code) that simulates the electrical attenuator. More parameters can be added by using Add Parameter button. The only parameter necessary for this component is the attenuation constant, which can be defined by the Parameter0 in the User Parameters tab. Using the command open ElectricalAttenuator.m, you can open the m-file in the Matlab Editor. In this window, first choose the code directory by cd ( c:\temp ) command.

how to write matlabcode in optisystem

This will open the Matlab Command Window. In order to see the file structure and the m-file, go to the Matlab component properties, on the main tab, check Load Matlab box and click OK. To be able to run this program, the path for this file must be in the Matlab search path, in this example the ElectricalAttenuator.m is located at c:\temp. The Matlab program (m-file) that will simulate the attenuator is named ElectricalAttenuator and that is the command at Run command parameter field. In this case the matlab component is set to have one input port and one output port for electrical signals. 1.1 Matlab program: Based on the signal structure, an electrical attenuator is implemented using the Matlab component. 7 (a) (b) Figure 9: (a) Signal structure launched into the workspace, (b) Individual sample structure.







How to write matlabcode in optisystem