Sunteți pe pagina 1din 8

2016

Microdaq Function Generator


Tenet Technetronics is official Training Partners for

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.

Uses of function generator:


Designing, testing, troubleshooting, and repairing electronic or electroacoustic
dev ices.

Blocks required:
Designation

Representation

Sub palette

Sine wave generator

MicroDAQ/mdaq_sinus

Square wave generator

MicroDQA/mdaq_square

Configures Xcos model


for MicroDAQ

MicroDAQ/mdaq_setup

Reads signal data from


MicroDAQ DSP
application

MicroDAQ/mdaq_signal

Super block

User defined
function/super_f

Tenet Technetronics | Varsity


#9/3, Shree Lakshmi Complex, 2nd Floor, Opp. To Vivekananda Park, Girinagar, Bangalore - 560085.
Ph. No: 080-26722726., Website: www.tenettech.com, Email: info@tenettech.com

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.

Sine wave generator:

Tenet Technetronics | Varsity


#9/3, Shree Lakshmi Complex, 2nd Floor, Opp. To Vivekananda Park, Girinagar, Bangalore - 560085.
Ph. No: 080-26722726., Website: www.tenettech.com, Email: info@tenettech.com

Tenet Technetronics 3
Application Notes

Sine waveform output:

Tenet Technetronics | Varsity


#9/3, Shree Lakshmi Complex, 2nd Floor, Opp. To Vivekananda Park, Girinagar, Bangalore - 560085.
Ph. No: 080-26722726., Website: www.tenettech.com, Email: info@tenettech.com

Tenet Technetronics 4
Application Notes
Square wave generator:

Tenet Technetronics | Varsity


#9/3, Shree Lakshmi Complex, 2nd Floor, Opp. To Vivekananda Park, Girinagar, Bangalore - 560085.
Ph. No: 080-26722726., Website: www.tenettech.com, Email: info@tenettech.com

Tenet Technetronics 5
Application Notes
Square waveform output:

Example 1: Sine wave generator

Tenet Technetronics | Varsity


#9/3, Shree Lakshmi Complex, 2nd Floor, Opp. To Vivekananda Park, Girinagar, Bangalore - 560085.
Ph. No: 080-26722726., Website: www.tenettech.com, Email: info@tenettech.com

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 | Varsity


#9/3, Shree Lakshmi Complex, 2nd Floor, Opp. To Vivekananda Park, Girinagar, Bangalore - 560085.
Ph. No: 080-26722726., Website: www.tenettech.com, Email: info@tenettech.com

Tenet Technetronics 7
Application Notes
After simulation,
In scilab console w indow
Type A.time & A.v alues
Where, A variable name

For more information please visit: www.tenettech.com


For technical query please send an e-mail: info@tenettech.com

Tenet Technetronics | Varsity


#9/3, Shree Lakshmi Complex, 2nd Floor, Opp. To Vivekananda Park, Girinagar, Bangalore - 560085.
Ph. No: 080-26722726., Website: www.tenettech.com, Email: info@tenettech.com

S-ar putea să vă placă și