User`s guide
Appendix
VEE User’s Guide 523
In the same program, create another function called AddNoise
that calls the first function NoiseGen. AddNoise should add the
noisy waveform from the NoiseGen function to a sine wave.
AddNoise should have two inputs, one for the NoiseGen
amplitude and one for the sine wave. It should have one output
for the result.
Build a simple main program with a slider for the noise
amplitude, and the Virtual Source ⇒ Function Generator (sine wave,
Freq = 100 Hz) for the good waveform to add to the noise. Display
the resultant waveform.
Solution—UserFunctions, Step 2
Figure 294 shows a solution for step 2.
Figure 294 User Functions, Step 2
UserFunctions, Step 3
In the same program, call the AddNoise function again, this
time from a Formula object, taking the absolute value of the
result. Display the absolute value waveform on the same
display. Next prepare to edit the AddNoise function. Turn on