You are on page 1of 9

2017

MicroDAQ Hardware Access


Blocks_1

Tenet Technetronics is official Training Partners for

SCILAB.

M.Mohamed Ibrahim
Tenet Technetronics
03-JAN-17

Tenet Technetronics 1
Application Notes

Contents
Introduction 2
Feature

MicroDAQ hardware access blocks in XCOS model

...3

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

Introduction
MicroDAQ toolbox combines Scilab/XCos environment with Embedded
Solutions. MicroDAQ real-time control measurement system equipped with TI
C6000 DSP. Module extends Scilab by allowing user to automatically generate
DSP applications directly from XCos scheme. User can use custom XCos blocks,
which gives access to MicroDAQ hardware (ADC, DAC, DIO, PWM, UART, and
Quadrature Encoder). A DSP application generated can utilize SYS/BIOS realtime operating system combined with code generated from XCos scheme.
Libraries of blocks allow seamless to create Models/Diagrams in either
XCOS/SIMULINK/NI Labview and also create optimized C-Code, Compile and
link with the target compiler and download it for deployment. In addition to this
the platform allows for high frequency real-time data acquisition to capture or
tune parameters from the hardware in real-time.

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

Toolbox feature:
Automatic code generation for MicroDAQ DSP
Xcos blocks for MicroDAQ peripherals
Live data access from generated DSP application via Ethernet and WiFi with
standard Xcos sinks
Application loading with Ethernet and WiFi
Standalone mode
Easy integration of custom user C code
MicroDAQ hardware (ADC, DAC...) access macros
DSP model utilization with Scilab script, C/C++ application and LabVIEW
Execution profiling
Toolbox as a part for Atoms installer
Support for Linux and Windows

MicroDAQ Hardware access blocks in XCOS Model:


1. IFTHEL_f Block (Synchronous Block If_Then_Else)
One event arrives into the input port at the same time, one output event is
generated in one of the output ports, depending on the condition whether the
reference signal is greater than zero or not. During the time reference signal is >
0, the events are passed onto the output port1 otherwise the events are
available at output port2,

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
Example 1
Connections make 1st Port of IFTHEL_f

Output for 1ST port:

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
Connections make 2nd port of IFTHEL_f

Output for 2nd port:

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
NOTE:

If the output is derived from


1st port, it generates events during positive half cycle of the sine wave.
2nd port, it generates events during negative half cycle of the sine wave

2. CEVENTSCOPE Block:
The block is used to visualization of input event signals.

Example 1

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

3. SELECT_m Block:
The selector block accepts the input as vector or Matrix. It determine the
elements to select differs slightly, depending on the type of input.

Example 1:

Note:

When condition of IFTHEL_f is true input 1 of SELECT_m is transferred to output port,


else input 2 of SELECT_m is transferred to output port.

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
Output:

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