SlideShare a Scribd company logo
MATLAB Data Acquisition




M2M COMMUNICATIONS      MOBILE APPLICATION DEVELOPMENT   DIGITAL SIGNAL PROCESSING AND DATA ACQUISTION


WIRELESS APPLICATIONS   WIRELESS TEST AND MEASUREMENT    WIRELESS COMMUNICATION CHIPSETS AND MOBILE DEVICES
M2M COMMUNICATIONS      MOBILE APPLICATION DEVELOPMENT   DIGITAL SIGNAL PROCESSING AND DATA ACQUISTION


WIRELESS APPLICATIONS   WIRELESS TEST AND MEASUREMENT    WIRELESS COMMUNICATION CHIPSETS AND MOBILE DEVICES
Contents
  •   Introduction
       •   MATLAB
             •    MATLAB Environment
             •    Data Acquisition Toolbox
             •    USB-6008 DAQ Device
             •    NI DAQmx driver
       •   Simulink
  •   Data Acquisition
       •   Introduction
       •   MAX – Measurement and Automation Explorer
  •   DAQ in MATLAB
  •   DAQ Application
  •   DAQ in Simulink




M2M COMMUNICATIONS        MOBILE APPLICATION DEVELOPMENT   DIGITAL SIGNAL PROCESSING AND DATA ACQUISTION


WIRELESS APPLICATIONS     WIRELESS TEST AND MEASUREMENT    WIRELESS COMMUNICATION CHIPSETS AND MOBILE DEVICES
Introduction

  •   Matlab is a tool for technical computing, computation and visualization
      in an environment Eg-
        •   Math and computation
        •   Algorithm development
        •   Data acquisition
        •   Modeling, simulation, and prototyping
        •   Data analysis, exploration, and visualization
        •   Scientific and engineering graphics
        •   Application development, including graphical user interface building




M2M COMMUNICATIONS         MOBILE APPLICATION DEVELOPMENT              DIGITAL SIGNAL PROCESSING AND DATA ACQUISTION


WIRELESS APPLICATIONS      WIRELESS TEST AND MEASUREMENT               WIRELESS COMMUNICATION CHIPSETS AND MOBILE DEVICES
MATLAB Environment




M2M COMMUNICATIONS      MOBILE APPLICATION DEVELOPMENT   DIGITAL SIGNAL PROCESSING AND DATA ACQUISTION


WIRELESS APPLICATIONS   WIRELESS TEST AND MEASUREMENT    WIRELESS COMMUNICATION CHIPSETS AND MOBILE DEVICES
MATLAB Environment
  •    MATLAB has following windows
       •  Command Window
       •  Command History
       •  Workspace
       •  Current Directory
  •    The Command Window is the
       Main Window.
  •    Command Window is use to
       enter variables and to run
       functions and m-files scripts.




M2M COMMUNICATIONS       MOBILE APPLICATION DEVELOPMENT   DIGITAL SIGNAL PROCESSING AND DATA ACQUISTION


WIRELESS APPLICATIONS    WIRELESS TEST AND MEASUREMENT    WIRELESS COMMUNICATION CHIPSETS AND MOBILE DEVICES
Data Acquisition Toolbox
  •     Data Acquisition toolbox provides functions for connecting MATLAB to
        Data Acquisition Hardware
  •     Data Acquisition toolbox provides a complete set of tools for analog i/p,
        analog o/p and digital I/o from variety of PC compatible data Acquisition
        hardware
  •     The toolbox configure data acquisition hardware and read data into
  •     MATLAB and Simulink for immediate analysis and send out data
  •     Data Acquisition toolbox is use to write and read data from USB-6008
        DAQ device from National Instruments




M2M COMMUNICATIONS       MOBILE APPLICATION DEVELOPMENT        DIGITAL SIGNAL PROCESSING AND DATA ACQUISTION


WIRELESS APPLICATIONS    WIRELESS TEST AND MEASUREMENT         WIRELESS COMMUNICATION CHIPSETS AND MOBILE DEVICES
USB – 6008 DAQ Device
    NI USB – 6008 is a simple and low-cost multifunction I/o device from NI
    The device has following specifications
  •     8 Analog i/p’s (12 bits,10kS/s)
  •     Compatible with Lab View, Lab windows and Measurement Studio for
        visual studio.NET
  •     NI DAQmx Driver Software

   NI DAQmx Driver
  •     NI provides a native .NET API for NI – DAQmx
  •     This is available as a part of the NI - DAQmx
        driver and does not require a measurement
        Studio




M2M COMMUNICATIONS       MOBILE APPLICATION DEVELOPMENT      DIGITAL SIGNAL PROCESSING AND DATA ACQUISTION


WIRELESS APPLICATIONS    WIRELESS TEST AND MEASUREMENT       WIRELESS COMMUNICATION CHIPSETS AND MOBILE DEVICES
Simulink
  •    Simulink is developed by the MathWorks is a commercial tool for modeling,
       Simulating and analyzing dynamic systems
  •    Its primary interface is a graphical block diagramming tool and a customizable
       set of block libraries
  •    It offers tight integration with the rest of the MATLAB environment and can
       either drive MATLAB or be scripted from it
  •    Simulink is widely used in control theory and digital signal




M2M COMMUNICATIONS      MOBILE APPLICATION DEVELOPMENT        DIGITAL SIGNAL PROCESSING AND DATA ACQUISTION


WIRELESS APPLICATIONS   WIRELESS TEST AND MEASUREMENT         WIRELESS COMMUNICATION CHIPSETS AND MOBILE DEVICES
Data Acquisition
        Introduction
  •     The purpose of Data Acquisition is to measure an electrical or physical
        phenomenon such as Voltage, Current, temperature, pressure and sound
  •     PC-based Data uses a combination of modular hardware application
        Software and a computer to take measurements
  •     Data Acquisition is a process of acquiring signals from real world phenomena
        Digitizing the signals analyzing presenting and saving the data
  •     The DAQ systems has following
        parts
        • Physical inputs/output signals
        • DAQ device/hardware
        • Driver Software
        • Application Software




M2M COMMUNICATIONS       MOBILE APPLICATION DEVELOPMENT       DIGITAL SIGNAL PROCESSING AND DATA ACQUISTION


WIRELESS APPLICATIONS    WIRELESS TEST AND MEASUREMENT        WIRELESS COMMUNICATION CHIPSETS AND MOBILE DEVICES
Physical input/output signal
  •    A physical input/output signal is typically a voltage or current signal
       DAQ Device/Hardware
  •    DAQ hardware acts as the interface between the computer and the
        outside world
  •    It Primarily functions as a device that digitizes incoming analog signals
       so that the computer can interpret them
  •    A DAQ device(Data Acquisition Hardware) usually has these functions
        • Analog i/p
        • Analog o/p
        • Digital I/o
        • Counter/Timer




M2M COMMUNICATIONS       MOBILE APPLICATION DEVELOPMENT          DIGITAL SIGNAL PROCESSING AND DATA ACQUISTION


WIRELESS APPLICATIONS    WIRELESS TEST AND MEASUREMENT           WIRELESS COMMUNICATION CHIPSETS AND MOBILE DEVICES
•   Different DAQ devices such as
       • “Desktop DAQ devices” where we
             need to plug a PCI DAQ board
             into the computer. The Software
             is running on the computer
       • “Portable DAQ devices” for connection
             to USB port Wi-Fi connections etc
             The Software is running on Computer
       • “Distributed DAQ devices” Where the
             software is developed on the computer
             and then downloaded to the distributed
             DAQ device




M2M COMMUNICATIONS      MOBILE APPLICATION DEVELOPMENT   DIGITAL SIGNAL PROCESSING AND DATA ACQUISTION


WIRELESS APPLICATIONS   WIRELESS TEST AND MEASUREMENT    WIRELESS COMMUNICATION CHIPSETS AND MOBILE DEVICES
Driver Software
  •   Driver Software is the layer of software for easily communicating with the hardware
  •   Its forms the Middle Layer between the Application software and the hardware
  •   Driver Software also prevents a programmer from having to register level programming
      or complicated commands in order to access the hardware functions
  •   Driver Software from NI : NI-DAQmx
       Application Software
  •   Application Software adds analysis and presentation capabilities to the driver software.
      The software applications does the tasks as
        •   Real Time Monitoring
        •   Data analysis
        •   Data logging
        •   Control Algorithms
        •   Human Machine interface(HMI)
  •   In order to create a DAQ application we need a programming development tool such as
      Visual Studio/C#, Lab View etc




M2M COMMUNICATIONS      MOBILE APPLICATION DEVELOPMENT        DIGITAL SIGNAL PROCESSING AND DATA ACQUISTION


WIRELESS APPLICATIONS   WIRELESS TEST AND MEASUREMENT         WIRELESS COMMUNICATION CHIPSETS AND MOBILE DEVICES
MAX – Measurement and Automation Explorer
  •    Measurements and Automation Explorer ( MAX) provides access to the National
       Instruments devices
  •    With MAX we can
        •   Configure our NI hardware and software
        •   Create and edit channels, tasks, interfaces, scales, and virtual Instruments
        •   Execute system diagnostics
        •   View devices and instruments connected to the system
        •   Update the NI software




M2M COMMUNICATIONS         MOBILE APPLICATION DEVELOPMENT                DIGITAL SIGNAL PROCESSING AND DATA ACQUISTION


WIRELESS APPLICATIONS      WIRELESS TEST AND MEASUREMENT                 WIRELESS COMMUNICATION CHIPSETS AND MOBILE DEVICES
DAQ in MATLAB
  •    It is used to create DAQ applications with or without Measurement Studio
       in both situation NI – DAQmx driver library is needed
       NI – DAQmx
  •    NI provides a native .NET API for NI – DAQmx. This is available as a part of
       the NI – DAQmx driver and does not require Measurement Studio
  •    Data Acquisition Programming with DAQmx involves the following steps
        •   Start the task
        •   Perform a read operation
        •   Perform a write operation to DAQ
        •   Stop and clear the task
  •    Data Acquisition is a text – based programming is similar to Lab View
       NI – DAQmx programming its function calls is same as NI – DAQmxVIs




M2M COMMUNICATIONS        MOBILE APPLICATION DEVELOPMENT        DIGITAL SIGNAL PROCESSING AND DATA ACQUISTION


WIRELESS APPLICATIONS     WIRELESS TEST AND MEASUREMENT         WIRELESS COMMUNICATION CHIPSETS AND MOBILE DEVICES
DAQ Application
         Introduction
  •      Data Acquisition Toolbox in MATLAB create a simple Data Acquisition application
  •      A simple DAQ applications should follow these steps
          •      Initialization
          •      Read/Write
          •      Clean Up
  •      Initialization
  creating a device object
  In Initialization we need to specify what kind of device we are using. we can analog input()
  And analog output() function in data acquisition toolbox
  Example
  ai = analog input (‘nidaq’, ‘Dev1’);
  and:
  ao= analog output (‘nidaq’, Dev1’);




M2M COMMUNICATIONS       MOBILE APPLICATION DEVELOPMENT         DIGITAL SIGNAL PROCESSING AND DATA ACQUISTION


WIRELESS APPLICATIONS    WIRELESS TEST AND MEASUREMENT          WIRELESS COMMUNICATION CHIPSETS AND MOBILE DEVICES
•   The data Acquisition Toolbox supports DAQ devices from different vendors. In order to use a
      Device from NI we need to set “nidaq” as the adapter name.DevX is the default name created
      By the system
  •   Adding channels
      Example: ai0 = addchannel(ai, 0);
  •   Read/Write
      Example: a0_value =3.5;
      putsample(a0,a0_value)
      ai_value= getsample(ai)
  •   Cleanup
      delete(a1)




M2M COMMUNICATIONS      MOBILE APPLICATION DEVELOPMENT       DIGITAL SIGNAL PROCESSING AND DATA ACQUISTION


WIRELESS APPLICATIONS   WIRELESS TEST AND MEASUREMENT        WIRELESS COMMUNICATION CHIPSETS AND MOBILE DEVICES
Sample Code
    % Write and Read to a NI USB-6008 DAQ device
    clear
    clc
    % Initialization-----------------------
    % Analog Input:
    ai = analoginput('nidaq', 'Dev1');
    % Analog Output:
    ao = analogoutput('nidaq', 'Dev1');
    % Adding Channels-----------------------
    % Analog Input - Channel 0
    ai0 = addchannel(ai, 0);




M2M COMMUNICATIONS         MOBILE APPLICATION DEVELOPMENT   DIGITAL SIGNAL PROCESSING AND DATA ACQUISTION


WIRELESS APPLICATIONS      WIRELESS TEST AND MEASUREMENT    WIRELESS COMMUNICATION CHIPSETS AND MOBILE DEVICES
ao0 = addchannel(ao, 0);
    % Write Data---------------------------
    ao_value = 3.5;
    putsample(ao, ao_value)
    % Read Data----------------------------
    ai_value = getsample(ai)
    % Cleaning Up--------------------------
    delete(ai)
    delete(ao)




M2M COMMUNICATIONS       MOBILE APPLICATION DEVELOPMENT   DIGITAL SIGNAL PROCESSING AND DATA ACQUISTION


WIRELESS APPLICATIONS    WIRELESS TEST AND MEASUREMENT    WIRELESS COMMUNICATION CHIPSETS AND MOBILE DEVICES
DAQ in Simulink
  •   Simulink has built – in blocks for data acquisition, but depending on the
      version of MATLAB/Simulink they might not work properly with USB-6008
      DAQ device. In that case we can call MATLAB function from Simulink
      Simulink/Data Acquisition Toolbox (R2007a) is used




M2M COMMUNICATIONS      MOBILE APPLICATION DEVELOPMENT       DIGITAL SIGNAL PROCESSING AND DATA ACQUISTION


WIRELESS APPLICATIONS   WIRELESS TEST AND MEASUREMENT        WIRELESS COMMUNICATION CHIPSETS AND MOBILE DEVICES
Thank You




M2M COMMUNICATIONS      MOBILE APPLICATION DEVELOPMENT   DIGITAL SIGNAL PROCESSING AND DATA ACQUISTION


WIRELESS APPLICATIONS   WIRELESS TEST AND MEASUREMENT    WIRELESS COMMUNICATION CHIPSETS AND MOBILE DEVICES
www.ishiriya.in
                                    sales@ishiriya.in
                                    +91 22 67109602

                                    Shop 18, Ground Floor, Powai Plaza,
                                    Opp. Pizza Hut, Hiranandani Gardens,
                                    Hiranandani, Powai, Mumbai 400076,
                                    India




M2M COMMUNICATIONS      MOBILE APPLICATION DEVELOPMENT   DIGITAL SIGNAL PROCESSING AND DATA ACQUISTION


WIRELESS APPLICATIONS   WIRELESS TEST AND MEASUREMENT    WIRELESS COMMUNICATION CHIPSETS AND MOBILE DEVICES

More Related Content

PPTX
Ishiriya Wireless Technologies-NI Data Acquisition
PPTX
Incorporating Wireless Measurements with Wired Data Acquisition Systems
PPTX
Bringing Digital Transformation Into Focus
PPTX
RPASS - Ricoh Proactive ServiceS for Remote Monitoring & Backup
PPTX
Improving and Scaling SCADA Systems: Is WinCC OA Right for Me?
PPTX
Embedded Systems Design and Programming & Internet of Things
PDF
Graduation projects
PDF
Gi oss offering top cell_partnership (1)
Ishiriya Wireless Technologies-NI Data Acquisition
Incorporating Wireless Measurements with Wired Data Acquisition Systems
Bringing Digital Transformation Into Focus
RPASS - Ricoh Proactive ServiceS for Remote Monitoring & Backup
Improving and Scaling SCADA Systems: Is WinCC OA Right for Me?
Embedded Systems Design and Programming & Internet of Things
Graduation projects
Gi oss offering top cell_partnership (1)

What's hot (20)

PPTX
Design Like a Pro: Alarm Management
PPTX
Top 10 Design & Security Tips to Elevate Your SCADA System
PPTX
How Schneider Electric sees Ethernet in the Industrial Environment - Part 1
PDF
Girish Dambal Ver 1.1
PDF
Intelligent Switching: Bringing user and application knowledge and control to...
PDF
INTEREL GRMS -Catalogue
PDF
Plc documentation final
PPTX
Design Like a Pro: Alarm Management
PDF
iLumTech Sense and Control
PPTX
Embedded System and IoT - ALTEN Calsoft Labs
PPS
ENPAQ Brochure
PDF
Zenon introduction
PPTX
The differing ways to monitor and instrument
PPTX
Mobile Apps or Else
PPSX
M-Box Introduction
PDF
From the Splunk Front Lines: Unlocking Insights from IBM i Data
PPTX
Design Like a Pro: Planning Enterprise Solutions
PPTX
10 Steps to Architecting a Sustainable SCADA System
PDF
Realise the Value in modern Data Center Infrastructure
PPTX
Implementing a Disconnected Mobile Application with DSI for Field Operations
Design Like a Pro: Alarm Management
Top 10 Design & Security Tips to Elevate Your SCADA System
How Schneider Electric sees Ethernet in the Industrial Environment - Part 1
Girish Dambal Ver 1.1
Intelligent Switching: Bringing user and application knowledge and control to...
INTEREL GRMS -Catalogue
Plc documentation final
Design Like a Pro: Alarm Management
iLumTech Sense and Control
Embedded System and IoT - ALTEN Calsoft Labs
ENPAQ Brochure
Zenon introduction
The differing ways to monitor and instrument
Mobile Apps or Else
M-Box Introduction
From the Splunk Front Lines: Unlocking Insights from IBM i Data
Design Like a Pro: Planning Enterprise Solutions
10 Steps to Architecting a Sustainable SCADA System
Realise the Value in modern Data Center Infrastructure
Implementing a Disconnected Mobile Application with DSI for Field Operations
Ad

Viewers also liked (14)

PDF
Part 1 presentation 1
PPTX
Dtf matlab 20150319
PDF
Matlab 1
PDF
Matlab 3
PDF
Matlab 2
PDF
HIZLANDIRILMIŞ KÜMELENME DERSİ
PDF
SAĞLIĞIN AR-GE'Sİ "TEMİZ ODA"DAN ÇIKIYOR!
PDF
Ar ge
PDF
GE'NİN 2023 HAMLESİ
PPT
Lecture1 Intro To Signa
PDF
Değişim için Sosyal Girişim
PPT
Sensors update
PPT
Sns slide 1 2011
PPT
Entrepreneurship incentives
Part 1 presentation 1
Dtf matlab 20150319
Matlab 1
Matlab 3
Matlab 2
HIZLANDIRILMIŞ KÜMELENME DERSİ
SAĞLIĞIN AR-GE'Sİ "TEMİZ ODA"DAN ÇIKIYOR!
Ar ge
GE'NİN 2023 HAMLESİ
Lecture1 Intro To Signa
Değişim için Sosyal Girişim
Sensors update
Sns slide 1 2011
Entrepreneurship incentives
Ad

Similar to Ishiriya Wireless Technologies-MATLAB Data Acquisition (20)

PDF
Introduction to lab view 8.6 in 3 hours
PPTX
Lesson 1 - Setting Up Hardware.pptx
PPTX
Data acquisition softwares
PPTX
Introduction to lab view 8.6 in 3 hours
PPTX
micro manit.pptx
PDF
G code based data receiving and control system
PDF
MCC_ProductSelGuide.pdf
PPTX
2012 04-18 (educon2012) emadrid uned on design remote laboratories study lab ...
PPTX
Data Acquisition System
DOCX
Kmem 3116 al2 report (keb090001)
PDF
Acs frisco 2017
PPT
TMCS - Guide to Data Acquisition Systems (Daq).ppt
PDF
Lab view daq signal conditioniing
DOCX
An Internet Based Interactive Data Acquisition System
PPTX
LABVIEW Data Acquisition System overview.pptx
PPTX
Educon 2012- On the Design of Remote Laboratories
PPTX
ICP DAS USA Products Presentation
PPTX
Introduction to National Instrument Data Logging Machine Monitoring and Pow...
PPT
Cap.10
PDF
Making dataacquisitioneasy
Introduction to lab view 8.6 in 3 hours
Lesson 1 - Setting Up Hardware.pptx
Data acquisition softwares
Introduction to lab view 8.6 in 3 hours
micro manit.pptx
G code based data receiving and control system
MCC_ProductSelGuide.pdf
2012 04-18 (educon2012) emadrid uned on design remote laboratories study lab ...
Data Acquisition System
Kmem 3116 al2 report (keb090001)
Acs frisco 2017
TMCS - Guide to Data Acquisition Systems (Daq).ppt
Lab view daq signal conditioniing
An Internet Based Interactive Data Acquisition System
LABVIEW Data Acquisition System overview.pptx
Educon 2012- On the Design of Remote Laboratories
ICP DAS USA Products Presentation
Introduction to National Instrument Data Logging Machine Monitoring and Pow...
Cap.10
Making dataacquisitioneasy

More from bhadrah (6)

PPT
Ishiriya Wireless Technologies-M2M SMS Demo
PPTX
Ishiriya Wireless Technologies-Mobile Application Development
PPTX
Ishiriya Wireless Technologies-ARM Wireless
PDF
Ishiriya Wireless Technologies-4G Architecture, Networks and Protocols
PDF
Ishiriya Wireless Technologies-3G Architecture, Networks, Protocols
PPT
Wireless Standards - Generations
Ishiriya Wireless Technologies-M2M SMS Demo
Ishiriya Wireless Technologies-Mobile Application Development
Ishiriya Wireless Technologies-ARM Wireless
Ishiriya Wireless Technologies-4G Architecture, Networks and Protocols
Ishiriya Wireless Technologies-3G Architecture, Networks, Protocols
Wireless Standards - Generations

Recently uploaded (20)

PDF
cuic standard and advanced reporting.pdf
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Machine learning based COVID-19 study performance prediction
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PPT
Teaching material agriculture food technology
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
KodekX | Application Modernization Development
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Empathic Computing: Creating Shared Understanding
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PPTX
Big Data Technologies - Introduction.pptx
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
cuic standard and advanced reporting.pdf
“AI and Expert System Decision Support & Business Intelligence Systems”
Machine learning based COVID-19 study performance prediction
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Teaching material agriculture food technology
Agricultural_Statistics_at_a_Glance_2022_0.pdf
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Programs and apps: productivity, graphics, security and other tools
KodekX | Application Modernization Development
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
The Rise and Fall of 3GPP – Time for a Sabbatical?
Empathic Computing: Creating Shared Understanding
Building Integrated photovoltaic BIPV_UPV.pdf
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Per capita expenditure prediction using model stacking based on satellite ima...
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Big Data Technologies - Introduction.pptx
MIND Revenue Release Quarter 2 2025 Press Release
20250228 LYD VKU AI Blended-Learning.pptx
Advanced methodologies resolving dimensionality complications for autism neur...

Ishiriya Wireless Technologies-MATLAB Data Acquisition

  • 1. MATLAB Data Acquisition M2M COMMUNICATIONS MOBILE APPLICATION DEVELOPMENT DIGITAL SIGNAL PROCESSING AND DATA ACQUISTION WIRELESS APPLICATIONS WIRELESS TEST AND MEASUREMENT WIRELESS COMMUNICATION CHIPSETS AND MOBILE DEVICES
  • 2. M2M COMMUNICATIONS MOBILE APPLICATION DEVELOPMENT DIGITAL SIGNAL PROCESSING AND DATA ACQUISTION WIRELESS APPLICATIONS WIRELESS TEST AND MEASUREMENT WIRELESS COMMUNICATION CHIPSETS AND MOBILE DEVICES
  • 3. Contents • Introduction • MATLAB • MATLAB Environment • Data Acquisition Toolbox • USB-6008 DAQ Device • NI DAQmx driver • Simulink • Data Acquisition • Introduction • MAX – Measurement and Automation Explorer • DAQ in MATLAB • DAQ Application • DAQ in Simulink M2M COMMUNICATIONS MOBILE APPLICATION DEVELOPMENT DIGITAL SIGNAL PROCESSING AND DATA ACQUISTION WIRELESS APPLICATIONS WIRELESS TEST AND MEASUREMENT WIRELESS COMMUNICATION CHIPSETS AND MOBILE DEVICES
  • 4. Introduction • Matlab is a tool for technical computing, computation and visualization in an environment Eg- • Math and computation • Algorithm development • Data acquisition • Modeling, simulation, and prototyping • Data analysis, exploration, and visualization • Scientific and engineering graphics • Application development, including graphical user interface building M2M COMMUNICATIONS MOBILE APPLICATION DEVELOPMENT DIGITAL SIGNAL PROCESSING AND DATA ACQUISTION WIRELESS APPLICATIONS WIRELESS TEST AND MEASUREMENT WIRELESS COMMUNICATION CHIPSETS AND MOBILE DEVICES
  • 5. MATLAB Environment M2M COMMUNICATIONS MOBILE APPLICATION DEVELOPMENT DIGITAL SIGNAL PROCESSING AND DATA ACQUISTION WIRELESS APPLICATIONS WIRELESS TEST AND MEASUREMENT WIRELESS COMMUNICATION CHIPSETS AND MOBILE DEVICES
  • 6. MATLAB Environment • MATLAB has following windows • Command Window • Command History • Workspace • Current Directory • The Command Window is the Main Window. • Command Window is use to enter variables and to run functions and m-files scripts. M2M COMMUNICATIONS MOBILE APPLICATION DEVELOPMENT DIGITAL SIGNAL PROCESSING AND DATA ACQUISTION WIRELESS APPLICATIONS WIRELESS TEST AND MEASUREMENT WIRELESS COMMUNICATION CHIPSETS AND MOBILE DEVICES
  • 7. Data Acquisition Toolbox • Data Acquisition toolbox provides functions for connecting MATLAB to Data Acquisition Hardware • Data Acquisition toolbox provides a complete set of tools for analog i/p, analog o/p and digital I/o from variety of PC compatible data Acquisition hardware • The toolbox configure data acquisition hardware and read data into • MATLAB and Simulink for immediate analysis and send out data • Data Acquisition toolbox is use to write and read data from USB-6008 DAQ device from National Instruments M2M COMMUNICATIONS MOBILE APPLICATION DEVELOPMENT DIGITAL SIGNAL PROCESSING AND DATA ACQUISTION WIRELESS APPLICATIONS WIRELESS TEST AND MEASUREMENT WIRELESS COMMUNICATION CHIPSETS AND MOBILE DEVICES
  • 8. USB – 6008 DAQ Device NI USB – 6008 is a simple and low-cost multifunction I/o device from NI The device has following specifications • 8 Analog i/p’s (12 bits,10kS/s) • Compatible with Lab View, Lab windows and Measurement Studio for visual studio.NET • NI DAQmx Driver Software NI DAQmx Driver • NI provides a native .NET API for NI – DAQmx • This is available as a part of the NI - DAQmx driver and does not require a measurement Studio M2M COMMUNICATIONS MOBILE APPLICATION DEVELOPMENT DIGITAL SIGNAL PROCESSING AND DATA ACQUISTION WIRELESS APPLICATIONS WIRELESS TEST AND MEASUREMENT WIRELESS COMMUNICATION CHIPSETS AND MOBILE DEVICES
  • 9. Simulink • Simulink is developed by the MathWorks is a commercial tool for modeling, Simulating and analyzing dynamic systems • Its primary interface is a graphical block diagramming tool and a customizable set of block libraries • It offers tight integration with the rest of the MATLAB environment and can either drive MATLAB or be scripted from it • Simulink is widely used in control theory and digital signal M2M COMMUNICATIONS MOBILE APPLICATION DEVELOPMENT DIGITAL SIGNAL PROCESSING AND DATA ACQUISTION WIRELESS APPLICATIONS WIRELESS TEST AND MEASUREMENT WIRELESS COMMUNICATION CHIPSETS AND MOBILE DEVICES
  • 10. Data Acquisition Introduction • The purpose of Data Acquisition is to measure an electrical or physical phenomenon such as Voltage, Current, temperature, pressure and sound • PC-based Data uses a combination of modular hardware application Software and a computer to take measurements • Data Acquisition is a process of acquiring signals from real world phenomena Digitizing the signals analyzing presenting and saving the data • The DAQ systems has following parts • Physical inputs/output signals • DAQ device/hardware • Driver Software • Application Software M2M COMMUNICATIONS MOBILE APPLICATION DEVELOPMENT DIGITAL SIGNAL PROCESSING AND DATA ACQUISTION WIRELESS APPLICATIONS WIRELESS TEST AND MEASUREMENT WIRELESS COMMUNICATION CHIPSETS AND MOBILE DEVICES
  • 11. Physical input/output signal • A physical input/output signal is typically a voltage or current signal DAQ Device/Hardware • DAQ hardware acts as the interface between the computer and the outside world • It Primarily functions as a device that digitizes incoming analog signals so that the computer can interpret them • A DAQ device(Data Acquisition Hardware) usually has these functions • Analog i/p • Analog o/p • Digital I/o • Counter/Timer M2M COMMUNICATIONS MOBILE APPLICATION DEVELOPMENT DIGITAL SIGNAL PROCESSING AND DATA ACQUISTION WIRELESS APPLICATIONS WIRELESS TEST AND MEASUREMENT WIRELESS COMMUNICATION CHIPSETS AND MOBILE DEVICES
  • 12. Different DAQ devices such as • “Desktop DAQ devices” where we need to plug a PCI DAQ board into the computer. The Software is running on the computer • “Portable DAQ devices” for connection to USB port Wi-Fi connections etc The Software is running on Computer • “Distributed DAQ devices” Where the software is developed on the computer and then downloaded to the distributed DAQ device M2M COMMUNICATIONS MOBILE APPLICATION DEVELOPMENT DIGITAL SIGNAL PROCESSING AND DATA ACQUISTION WIRELESS APPLICATIONS WIRELESS TEST AND MEASUREMENT WIRELESS COMMUNICATION CHIPSETS AND MOBILE DEVICES
  • 13. Driver Software • Driver Software is the layer of software for easily communicating with the hardware • Its forms the Middle Layer between the Application software and the hardware • Driver Software also prevents a programmer from having to register level programming or complicated commands in order to access the hardware functions • Driver Software from NI : NI-DAQmx Application Software • Application Software adds analysis and presentation capabilities to the driver software. The software applications does the tasks as • Real Time Monitoring • Data analysis • Data logging • Control Algorithms • Human Machine interface(HMI) • In order to create a DAQ application we need a programming development tool such as Visual Studio/C#, Lab View etc M2M COMMUNICATIONS MOBILE APPLICATION DEVELOPMENT DIGITAL SIGNAL PROCESSING AND DATA ACQUISTION WIRELESS APPLICATIONS WIRELESS TEST AND MEASUREMENT WIRELESS COMMUNICATION CHIPSETS AND MOBILE DEVICES
  • 14. MAX – Measurement and Automation Explorer • Measurements and Automation Explorer ( MAX) provides access to the National Instruments devices • With MAX we can • Configure our NI hardware and software • Create and edit channels, tasks, interfaces, scales, and virtual Instruments • Execute system diagnostics • View devices and instruments connected to the system • Update the NI software M2M COMMUNICATIONS MOBILE APPLICATION DEVELOPMENT DIGITAL SIGNAL PROCESSING AND DATA ACQUISTION WIRELESS APPLICATIONS WIRELESS TEST AND MEASUREMENT WIRELESS COMMUNICATION CHIPSETS AND MOBILE DEVICES
  • 15. DAQ in MATLAB • It is used to create DAQ applications with or without Measurement Studio in both situation NI – DAQmx driver library is needed NI – DAQmx • NI provides a native .NET API for NI – DAQmx. This is available as a part of the NI – DAQmx driver and does not require Measurement Studio • Data Acquisition Programming with DAQmx involves the following steps • Start the task • Perform a read operation • Perform a write operation to DAQ • Stop and clear the task • Data Acquisition is a text – based programming is similar to Lab View NI – DAQmx programming its function calls is same as NI – DAQmxVIs M2M COMMUNICATIONS MOBILE APPLICATION DEVELOPMENT DIGITAL SIGNAL PROCESSING AND DATA ACQUISTION WIRELESS APPLICATIONS WIRELESS TEST AND MEASUREMENT WIRELESS COMMUNICATION CHIPSETS AND MOBILE DEVICES
  • 16. DAQ Application Introduction • Data Acquisition Toolbox in MATLAB create a simple Data Acquisition application • A simple DAQ applications should follow these steps • Initialization • Read/Write • Clean Up • Initialization creating a device object In Initialization we need to specify what kind of device we are using. we can analog input() And analog output() function in data acquisition toolbox Example ai = analog input (‘nidaq’, ‘Dev1’); and: ao= analog output (‘nidaq’, Dev1’); M2M COMMUNICATIONS MOBILE APPLICATION DEVELOPMENT DIGITAL SIGNAL PROCESSING AND DATA ACQUISTION WIRELESS APPLICATIONS WIRELESS TEST AND MEASUREMENT WIRELESS COMMUNICATION CHIPSETS AND MOBILE DEVICES
  • 17. The data Acquisition Toolbox supports DAQ devices from different vendors. In order to use a Device from NI we need to set “nidaq” as the adapter name.DevX is the default name created By the system • Adding channels Example: ai0 = addchannel(ai, 0); • Read/Write Example: a0_value =3.5; putsample(a0,a0_value) ai_value= getsample(ai) • Cleanup delete(a1) M2M COMMUNICATIONS MOBILE APPLICATION DEVELOPMENT DIGITAL SIGNAL PROCESSING AND DATA ACQUISTION WIRELESS APPLICATIONS WIRELESS TEST AND MEASUREMENT WIRELESS COMMUNICATION CHIPSETS AND MOBILE DEVICES
  • 18. Sample Code % Write and Read to a NI USB-6008 DAQ device clear clc % Initialization----------------------- % Analog Input: ai = analoginput('nidaq', 'Dev1'); % Analog Output: ao = analogoutput('nidaq', 'Dev1'); % Adding Channels----------------------- % Analog Input - Channel 0 ai0 = addchannel(ai, 0); M2M COMMUNICATIONS MOBILE APPLICATION DEVELOPMENT DIGITAL SIGNAL PROCESSING AND DATA ACQUISTION WIRELESS APPLICATIONS WIRELESS TEST AND MEASUREMENT WIRELESS COMMUNICATION CHIPSETS AND MOBILE DEVICES
  • 19. ao0 = addchannel(ao, 0); % Write Data--------------------------- ao_value = 3.5; putsample(ao, ao_value) % Read Data---------------------------- ai_value = getsample(ai) % Cleaning Up-------------------------- delete(ai) delete(ao) M2M COMMUNICATIONS MOBILE APPLICATION DEVELOPMENT DIGITAL SIGNAL PROCESSING AND DATA ACQUISTION WIRELESS APPLICATIONS WIRELESS TEST AND MEASUREMENT WIRELESS COMMUNICATION CHIPSETS AND MOBILE DEVICES
  • 20. DAQ in Simulink • Simulink has built – in blocks for data acquisition, but depending on the version of MATLAB/Simulink they might not work properly with USB-6008 DAQ device. In that case we can call MATLAB function from Simulink Simulink/Data Acquisition Toolbox (R2007a) is used M2M COMMUNICATIONS MOBILE APPLICATION DEVELOPMENT DIGITAL SIGNAL PROCESSING AND DATA ACQUISTION WIRELESS APPLICATIONS WIRELESS TEST AND MEASUREMENT WIRELESS COMMUNICATION CHIPSETS AND MOBILE DEVICES
  • 21. Thank You M2M COMMUNICATIONS MOBILE APPLICATION DEVELOPMENT DIGITAL SIGNAL PROCESSING AND DATA ACQUISTION WIRELESS APPLICATIONS WIRELESS TEST AND MEASUREMENT WIRELESS COMMUNICATION CHIPSETS AND MOBILE DEVICES
  • 22. www.ishiriya.in sales@ishiriya.in +91 22 67109602 Shop 18, Ground Floor, Powai Plaza, Opp. Pizza Hut, Hiranandani Gardens, Hiranandani, Powai, Mumbai 400076, India M2M COMMUNICATIONS MOBILE APPLICATION DEVELOPMENT DIGITAL SIGNAL PROCESSING AND DATA ACQUISTION WIRELESS APPLICATIONS WIRELESS TEST AND MEASUREMENT WIRELESS COMMUNICATION CHIPSETS AND MOBILE DEVICES