AUBRAUX
 

 

Exim

Ensemble

Quantum

JitLab

PCScope

Modules:

SigGen

SoundImp

SoundExp

Plot

Meas

Stats

FileImp

TextImp

TextExp

Filter

FFT

DspWnd

Visa

Arithmetic

Plugins:

CodeEditor

SchEditor

Wizards:

JitLab

Help:

Getting Started

Examples:

PC Oscilloscope

Signal Generator

Amp. Modulation

Freq. Modulation

Phase Modulation

AM, FM & PM

PAM

PWM

Text Imp. & Exp.

 

SigGen: Signal Generator


You can use the SigGen module to generate sine, square or sawtooth waves, and use the Plot module to display them. The following example generates sine waves and plots it.

You can also use other modules to process the generated data. For example, you can save the data in binary or text format and also perform various measurements.

Open the SigGen.dsp project in DspSee to see this example in action. Click to download DspSee dsp software.


Below is a description of the SigGen.dsp project file. Feel free to change it to try different things.


//SigGen.dsp
//Copyright www.aubraux.com
//DspSee sample file. Shows usage of SigGen module.
//Requires SigGen and Plot modules.

//Signal Generator
load sg1="SigGen"//Loads the SigGen module. This module can generate waveforms of different shapes.
sg1.type="sine"//Sets signal type as sine
sg1.freq=1.01M//Sets frequency to 1.01 MHz
sg1.samplerate=100M//Sets sample rate to 100 MSPS
sg1.pk2pk=2//Sets peak-peak voltage to 2V
sg1.offset=0//Sets DC offset voltage to 0V
sg1.reclen=1000//Sets record length to 1000
sg1.gui.wnd="sg"//Sets the gui window name
sg1.gui.title="SigGen Setup"//Sets the gui window title
sg1.gui.move(500,0)//Moves the window to (x=500, y=0)
 
//Plot
load p1="Plot"//Loads the Plot module. This module can display input data in various formats.
p1.plot.title="Plot Window"//Sets the title of the plot window to "Plot Window"
p1.setup.title="Plot Setup"//Sets the title of the plot setup window to "Plot Setup"
link p1.src.ch1=sg1.out//Links the SoundImp output to Plot input
p1.ch1.label="Synth Output"//Sets the Plot ch1 label to "Synth Output"
p1.setup.move(280,0)//Moves the plot setup gui to (x=280, y=0)
p1.plot.move(0,220)//Moves the plot window to (x=0, y=220)
p1.plot.size(1000,420)//Resizes the plot window to (width=1000, height=420)
 
©Aubraux

All Rights
Reserved