Function Generator PDF
Function Generator PDF
SCILAB.
M. Mohamed Ibrahim
Tenet Technetronics
30-DEC -16
Tenet Technetronics 1
Application Notes
Introduction:
Function generator is a signal source that has capability of producing different
waveform as its output signal. The most common w aveforms are Sine waves, Square
waves, Triangular waves & Sawtooth waves. Function generators are used in the
development, test and repair of electronic equipment.
We can control and configure function generators directly from SCILAB_XCOS using
MicroDAQ Toolbox. We can create the waveforms in SCILAB_XCOS and use the toolbox
to upload them to the instrument. We can also build graphical interfaces to verify
dev ice performance, compare real-world data to models created in SCILAB_XCOS
and automate the tests.
Blocks required:
Designation
Representation
Sub palette
MicroDAQ/mdaq_sinus
MicroDQA/mdaq_square
MicroDAQ/mdaq_setup
MicroDAQ/mdaq_signal
Super block
User defined
function/super_f
Tenet Technetronics 2
Application Notes
Clock
MicroDAQ/Sources/clock_c
Visualization
MicroDAQ/sinks/cscope
Steps:
Step 1: To generate sine waveform in Scilab/XCOS using MicroDAQ toolbox. Select
MicroDAQ Sine wave generator block & MicroDAQ Square wave generator.
Step 2: Make connection to the required blocks and then simulate the diagram to get a
sine and square waveform.
Tenet Technetronics 3
Application Notes
Tenet Technetronics 4
Application Notes
Square wave generator:
Tenet Technetronics 5
Application Notes
Square waveform output:
Tenet Technetronics 6
Application Notes
Purpose of Gain & Workspace Block:
Gain Block:
In this example Gain is used to product the amplitude of sine wave.
Workspace Block:
That block is used to put simulated data in the scilab workspace.Each sampling time,
both dates and values of input are recorded.Records are av ailable after the simulation
in Scilab's workspace as variable.time and variable.values w here variable is the name
given in the Scilab variable name field.
OUTPUT:
Tenet Technetronics 7
Application Notes
After simulation,
In scilab console w indow
Type A.time & A.v alues
Where, A variable name