You are on page 1of 13

2017

MicroDAQ - Analog Demo


Tenet Technetronics is official Training Partners for

SCILAB.

M.Mohamed Ibrahim
Tenet Technetronics
05-JAN-17

Tenet Technetronics 1
Application Notes

Contents
MicroDAQ 2
MicroDAQ E1100....2
Specification...2
Purpose of ADC & DAC Blocks ......3

Steps .5
Method 1

Method 2

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

MicroDAQ
MicroDAQ is an ideal platform for developers, scientists and geeks
involved in real-time measurement and control development. The platform
supports design flow from popular model based tools like SCILAB, MATLAB, and
LABVIEW. The user has the choice to either go with a complete open source
software toolchain or with the existing access to proprietary tools in the house.
It provides MicroDAQ block set which gives user an access to MicroDAQ
hardware and many features which are helpful during real-time control and
measurement application development.

MicroDAQ E1100:
The MicroDAQ E1100/E1100 is a DSP real-time control measurement device
designed to solve complex problems. This device combines TI C6000
fixed/floating point DSP core and an ARM9 core. The MicroDAQ E1100 is
equipped with upto 8 channel analog input with a sample rate upto 166 KSPS.

MicroDAQ E1100 Specification:


up to 456MHz CPU
up to 32GB user memory
Ethernet
Wi-Fi
USB2.0
32 DIO lines
8 analog inputs
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

8 analog outputs
Matlab/Simulink, LabVIEW, Scilab support

Purpose of DAC & ADC Blocks.

DAC Digital to Analog Converter

Figure 1: DAC Block

This block is used to set Analog Output (AO) in MicroDAQ hardware.


Select analog output type by providing Converter parameters
accordingly to MicroDAQ hardware configuration. (See Figure 2)

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

Figure 2: DAC Configuration

ADC Analog to Digital Converter

Output 1 16 Bit raw ADC Value ; Output 2 Measured value in volts


Figure 3: ADC Block

This block is used to read Analog Input (AI) in MicroDAQ hardware.


Select analog input type by providing Converter parameters accordingly
to MicroDAQ hardware configuration. (See Figure 4)

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

Figure 4: ADC Configuration

Steps Involved:
Method 1:
Step 1: MicroDAQ blocks are used to access the MicroDAQ hardware.
MicroDAQ bocks are available in XCOS palette browser under MicroDAQ
palette.

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

Figure 5: MicroDAQ Palette

Step 2: Objective is to create an XCOS model using MicroDAQ DAC and ADC
blocks (see Figure 6). Pick all the blocks specified in the fig 6b, set the
appropriate parameters and connect as shown in the diagram.

Figure 6a: Super block _Analog Demo

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

Figure 6b: MicroDAQ Analog Demo


Note:
Sine block gives an output in volts to DAC Block, so we are giving an analog sine wave
as input to DAC block. Connect MicroDAQ AO1 pin and GND to CRO. Now you can
visualize the generated Sine wave in CRO (See figure 7).

Figure 7: Sine wave as input in volts to DAC


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 8
Application Notes

Step 3: Connect potentiometer as analog input through the pin AI1in MicroDAQ
(see Figure 8).

Figure 8: Potentiometer connection

Step 4: Connect LED to analog output pin AO1 in MicroDAQ (See Figure 9).
Simulate the model. Now the output plots for ADC & DAC Blocks are displayed
(see Figure 10).
During positive half cycle of sine wave LED glows and negative half cycle LED
turns off.

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 9
Application Notes

Figure 9: Connection diagram

Figure 10: 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 10
Application Notes

Figure 11: MicroDAQ_ Analog_demo.

Method 2:
Step1: Replace the input of the ADC, potentiometer with sine wave as input by
shorting the pins AI1 and AO1 in the MicroDAQ hardware module.
Step 2: Now simulate the model observe for changes in graph as shown in figure.

Figure 11: Connection diagram

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 11
Application Notes

Figure 12: Connection diagram

Figure 12: Output graph

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 12
Application Notes

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

You might also like