| //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) |