The DC bias generator acts as a DC source. In this example we combine the output of a DC bias generator to the output of a sine generator to observe the effect of adding a DC component. We will also modify the properties of the generator to observe the effects that result from changing each property.

About The Component

The bias generator is a block that acts as a Dc source. Double clicking the block you can see the general properties of the Bias generator. Under the main window we can change the amplitude. This will modify the dc voltage output. Running the project and clicking the visualizer we can see that a constant DC signal of 3 units is produced.  Going into the simulation window we can view the sample rate by clicking beside the box. Sample rate shouldn’t have an effect on the DC signal because it doesn’t vary But it can still be viewed by clicking evaluate. It can also be changed to be dependent on other parameters or a function. Currently it is defined by the global parameter sample rate. Any global parameter can be changed by double clicking the work space and modifying whatever parameter you wish to modify. The setup below will demonstrate how a dc bias generator can be combined with a sinusoidal wave to create a sinusoidal signal with a dc bias. We will then block out the dc component so we can compare the original signal to the signal with the added bias. Running the program we can see in the visualizer that the bottom signal is the signal with the DC component blocked and has a DC bias of 0. The signal up top is the signal of the DC bias combined with the sinusoidal wave and has a DC component added to it!