Mdaq AN3 STD Mode

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 10

2017

Running MicroDAQ in Standalone Mode

M.Mohamed Ibrahim
Tenet Technetronics
03-JAN-17

Tenet Technetronics 1
Application Notes

Contents
Introduction

MicroDAQ E1100 Specification 2


Modes

Standalone Mode 3
Ext Mode
Steps involved

3
..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 2
Application Notes

Introduction:
MicroDAQ is an ideal platform for developers, scientists and geeks involved in
real-time measurement and control development.
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:
upto 456MHz CPU
upto 32GB user memory
Ethernet
Wi-Fi
USB2.0
32 DIO lines
8 analog inputs
8 analog outputs
Matlab/Simulink, LabVIEW, Scilab support
Mode:
Generally MicroDAQ runs in two modes,
1. Standalone mode
2. Ext mode
These modes can be used in different ways and on a different model
development stages.

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

Standalone Mode:
When Standalone mode is selected generated application can contain single
TI-RTOS task (clock function) which is executed on the DSP with selected sample
rate. Generated model is executed periodically and there is no communication
with Xcos like in Ext mode. MicroDAQ palette provides blocks which can be
used to access Standalone application parameters. In order to change
Standalone parameters during its execution 'MEM read' block and
mdaq_mem_set() function can be used. In case when user wants to download
data from Standalone application 'MEM Write' and mdaq_mem_get() function
can be a solution. The Standalone application generated from XCos diagram
can be uploaded on MicroDAQ and will create independent controlmeasurement system.

Figure 1: Standalone Mode


Ext Mode:

During control or measurement application development often user wants to


have live application data access to verify if model works as expected or it
needs to be modified. MicroDAQ toolbox for Scilab provides integrated way
which allows access to live DSP data without external tools. User can use
standard XCos sinks (e.g Scope, To workspace) block to view data for real-time
application running on MicroDAQ DSP. When user selects Ext mode generated
application will be constructed from two tasks. Same as in Standalone mode Ext
mode application have real-time task which executes code generated from
model and additional low priority task which is taking care of TCP/IP
communication with Xcos. Model code runs as a high priority real-time task, idle
task on the other hand has the lowest profity and it is executed only when
model real-time execution is done. Dedicated MicroDAQ drivers delegates
TCP/IP handling from DSP to ARM core which increase processing capabielities
and improve real-time processing.
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: Ext Mode


In Ext mode user can use execution profiling feature to measure model
execution times.
Steps Involved in Standalone Mode:
Step 1: MicroDAQ blocks are used to access the MicroDAQ hardware.
MicroDAQ bocks are available in XCOS palette browser under MicroDAQ
palette.

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

Step 2: Objective is to create an XCOS model using MicroDAQ LED blocks (see
Figure 4). Pick all the blocks specified in the fig 3, set the appropriate parameters
and make the connections as shown in the diagram.

Figure 4:LED_XCOS Model

Step 3: Now, we need to change the mode of MicroDAQ. Select SETUP Block
and make changes as shown in Figure 5.

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: Setup block settings

Step 4: Select Tools MicroDAQ build model (See Figure 6)

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 6: Build model


Step 5: After build model, select Tools MicroDAQ load model (see Figure7)

Figure 7: Load Model

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 6: Select Tools MicroDAQ upload model (See Figure 8)

Figure 8: Upload Model


Step 7: After upload model (See Figure 9), Application will be stored in a MicroDAQ
nonvolatile memory.

Figure 9: Scilab Message

Step 8: Let us connect power source and see how our standalone DSP
application works (see Figure 10,11).

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 10: Power up_MicroDAQ

Figure 11:Output_D1 LED Blinks


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