Setting Up And Using The Sine Generator In Optisystem


How to setup the sine generator in Optisystem. The sine generator generates an electrical sine waveform signal. We will then change various properties of the sine generator to see how the properties will affect the generated waveform.

Using the Component

The sine generator block can be used to generate and electrical sine waveform signal. Because the signal generated is electrical, we will connect it to an oscilloscope to visualize it. Double clicking on the Sine generator we can see the general properties . We can go into file and calculate the project to see the waveform created using the default values. Double clicking on the oscilloscope, we can see the sine wave that is produced. Going back into the Sine generator we can change the frequency to see the effect it will have. We can then calculate the project and click on the visualizer to see the output. As you can see the frequency is now double what it was before. We do however start to notice that our waveform is resembling less and less of a sine wave. This is because the sample rate is low relative to the frequency. Going into simulation and clicking beside sample rate will open up the parameter script editor for sample rate. Currently our sample rate is defined by the global sample rate which is defined in the global parameters. Pressing evaluate will show us what our current sample rate is. The sample rate can also be changed to be dependent on another layout parameter or a function. Clicking anywhere on the work space will take you into the global parameters window where you can change various global parameters including what sample rate is currently defined as. We can type a larger number into samples per bit which will in turn change the sample rate. Running the program, we can see that we now have better signal resolution because of our new sample rate. Going back into the sine generator and increasing amplitude to 2 will make the maximum of the sinusoidal wave 2 and the minimum will be -2. Changing bias to -1 will make sine wave’s DC component equal to -1. changing the phase will give it a phase shift of whatever value we enter. So, a phase shift of 0 should make the wave originate from the origin. Checking out the visualizer we can see the output is as expected.