Lab 5 Signal Analyzer/Generator. Introduction  Create a client MFC application that samples a signal and displays wave using Windows GDI, Open GL, or.

Slides:



Advertisements
Similar presentations
Georgia Tech Digital Back-end µHRG interface Curtis Mayberry School of Electrical and Computer Engineering Georgia Institute of Technology January 13 th,
Advertisements

What is Arduino?  Arduino is a ATMEL 168 micro-controller kit designed specially for small projects  User friendly IDE(Integrated Development Environment)
EET 2261 Unit 14 INCOMPLETE Analog-to-Digital Conversion (ADC) & Digital-to-Analog Conversion (DAC)  Read.  Homework #13 and Lab #13 due next week. 
Lecture 17: Analog to Digital Converters Lecturers: Professor John Devlin Mr Robert Ross.
Measurement of Voltages and Currents
This lesson covers the following outcomes Unit 54 P1, P7, P8 Unit 6 P10, P11.
CMP206 – Introduction to Data Communication & Networks Lecture 2 – Signals.
Embedded DSP Spectrum Analyzer May 0104 April 25, 2001 Teradyne Corp Julie Dickerson Bill Black Prihamdhani AmranEE Ryan ButlerCprE Aaron DelaneyEE Nicky.
Analog to Digital Conversion. Introduction  An analog-to-digital converter (ADC, A/D, or A to D) is a device that converts continuous signals to discrete.
Data Acquisition Risanuri Hidayat.
Lecture 9: D/A and A/D Converters
Discussion #25 – ADCECEN 3011 Conversion Mosiah 5:2 2 And they all cried with one voice, saying: Yea, we believe all the words which though has spoken.
School of Computing Science Simon Fraser University
JF 12/04111 BSC Data Acquisition and Control Data Representation Computers use base 2, instead of base 10: Internally, information is represented by binary.
Vital Signs Monitor UConn BME 4900 Vital Signs Monitor Purpose As the population ages, many people are required by their doctors to take vital signs.
Analog-to-Digital Converters
Chapter 2 : Business Information Business Data Communications, 4e.
Lecture 121 Lecture 12: VGA Video ECE 412: Microcomputer Laboratory.
EE 198 B Senior Design Project. Spectrum Analyzer.
Data Acquisition. Data Acquisition System Analog Signal Signal Conditioner ADC Digital Processing Communication.
Oscilloscope Tutorial
11 Lecture Slides ME 3222 Kinematics and Control Lab Lab 2 AD DA and Sampling Theory By Dr. Debao Zhou.
PH4705/ET4305: A/D: Analogue to Digital Conversion Typical Devices: Data sheets are on the web site for A/D 8 bit parallel AD7819 and serial ADC0831 And.
Sampling Theorem, frequency resolution & Aliasing The Sampling Theorem will be the single most important constraint you'll learn in computer-aided instrumentation.
Numerical algorithms for power system protection Prof. dr. sc. Ante Marušić, doc. dr. sc. Juraj Havelka University of Zagreb Faculty of Electrical Engineering.
Ni.com Data Analysis: Time and Frequency Domain. ni.com Typical Data Acquisition System.
Lecture 1 Signals in the Time and Frequency Domains
Image Synthesis Rabie A. Ramadan, PhD 3. 2 Our Problem.
Understanding ADC Specifications September Definition of Terms 000 Analogue Input Voltage Digital Output Code FS1/2.
Sampling Theorems. Periodic Sampling Most signals are continuous in time. Example: voice, music, images ADC and DAC is needed to convert from continuous-time.
Video Monitor Uses raster scanning to display images –Beam of electrons illuminates phosphorus dots on the screen called pixels. Starting at the top of.
Professor: Dr. Miguel Alonso Jr.
Data Acquisition Systems
ISAT 300 Computer-Based Instrumentation (part 2) Sampling and A/D Converters 11/14/01.
Data is sent to PC. Development of Front-End Electronics for time projection chamber (TPC) Introduction Our purpose is development of front-end electronics.
ENGR 104: Data Acquisition Lecturers: Dr. Binh Tran Dr. Otto Wilson Jr. © The Catholic University of America Dept of Biomedical Engineering.
Digitization When data acquisition hardware receives an analog signal it converts it to a voltage. An A/D (analog-to-digital) converter then digitizes.
Chapter2: Drawing a Window. Drawing with the GDI.
EE 113D Fall 2008 Patrick Lundquist Ryan Wong
V. Rouillard  Introduction to measurement and statistical analysis DIGITAL SAMPLING - DIGITISATION Digital sampling is mainly used in data acquisition.
LIST OF EXPERIMENTS USING TMS320C5X Study of various addressing modes of DSP using simple programming examples Sampling of input signal and display Implementation.
Chapter2: Drawing a Window. Review: Introducing MFC.
Charge Measurement Using Commercial Devices Jinyuan Wu, Zonghan Shi For CKM Collaboration. Jan
Engineering H192 - Computer Programming Gateway Engineering Education Coalition Lab 1P. 1Winter Quarter Data Acquisition System Fundamentals Lab 1.
The ECG UConn BME 290. Buffers What is a buffer? –Non-inverting amplifier with a gain of 1 Why use a buffer? –Buffers provide a high input impedance.
Digital Signal Processing. Discrete Fourier Transform Inverse Discrete Fourier Transform.
Chapter2: Drawing a Window
Analog Capture- Port E. Digital to Analog and Analog to Digital Conversion D/A or DAC and A/D or ADC.
Team 2 Yimin Xiao Jintao Zhang Bo Yuan Yang.  An ability to sample analog voltage signal range from -12 V to 12 V via BNC;  An ability to reconstruct.
Data acquisition is the process of sampling signals that measure real world physical conditions and converting the resulting samples into digital numeric.
Team 6. Guitar Audio Amplifier Audio Codec DSP Wireless Adapter Motor Array PC LCD Display LED Arrays Pushbutton or RPG Input Device
Chapter2: Drawing a Window. Drawing with the GDI.
Computer Graphics Lecture 03 Graphics Systems Cont… Taqdees A. Siddiqi
Electronic instrumentation Digitization of Analog Signal in TD
1 Basic Signal Conversion 센서 및 계측 공학 (Sensor and Instrumentation Engineering) 2016 년 1 학기 충북대학교 전기전자반도체공학과 박 찬식
EKT 314/4 WEEK 9 : CHAPTER 4 DATA ACQUISITION AND CONVERSION ELECTRONIC INSTRUMENTATION.
Husheng Li, UTK-EECS, Fall The specification of filter is usually given by the tolerance scheme.  Discrete Fourier Transform (DFT) has both discrete.
1 Lab 4: D/A Converter Lab 4: D/A Converter This is a simple resistive network for a D/A converter Port 1, Port 0 are digital inputs ==> 00 (minimum),
Introduction To GDI GDI Definition : It is a interface present in windows which provide function and related structures that an application can use to.
Programming windows with MFC Chapter 2 - Drawing in a Window
Chapter 3 Sampling.
Analogue to Digital Conversion
Analog to Digital Data Conversion
Windows Controls & Concepts
4.1 DFT In practice the Fourier components of data are obtained by digital computation rather than by analog processing. The analog values have to be.
Lesson 8: Analog Signal Conversion
EET 2261 Unit 14 INCOMPLETE Analog-to-Digital Conversion (ADC) & Digital-to-Analog Conversion (DAC) Read. Homework #13 and Lab #13 due next week. Quiz.
Fourier series Periodic functions and signals may be expanded into a series of sine and cosine functions
Chapter 14 Drawing in a Window
Chapter 16 Drawing in a Window
Presentation transcript:

Lab 5 Signal Analyzer/Generator

Introduction  Create a client MFC application that samples a signal and displays wave using Windows GDI, Open GL, or DirectX.  Digitally analyze and generate analog waveforms  Reconstruct the waveform using the sampled signal

Spartan 3 board Tutorial 1 Tutorial 2 Tutorial 3

Acquiring an Analog Signal  Input is a signal with peak to peak of 5 V  Voltage input in the range -2.5 to 2.5 V  Use Analog to Digital Converter ADC0820 Input’s analog voltage 0 to 5 V Requires adding 2.5 Volts to input signal before converted.

Voltage compatibility issue  Spartan 3 uses a 5 V adapter  Internal voltage levels are 3.3 V, 2.5 V and 1.2 V.  ADC0820 needs a 5V, Output levels are close to 5V  Inputs cannot handle 5 V without a current limiting resister.  Use R > 170 Ohms to limit current to 10 mA.  Alternately, since the FPGA I/O are TTL compatible, you may want to use TTL buffers to limit the voltage levels to about 3.4 V.

Sampling Signals on Serial Port  Max Baud Rate 115, ,200 bits per second  Max Sampling Frequency 115,200 / 10 bits (8 data, 1 start, 1 stop)  Max Input Frequency to avoid aliasing (Max Sampling Frequency) / 2 = 5760 Hz

Discrete Fourier Transform (DFT)  Can be processor intensive thus use Fast Fourier Transform (FFT) to calculate DFT  Algorithm requires a sampling frequency as a power of 2  Refer to FFT function on UL-99 (C++)

Windows GDI If you took 408 you probably already know this

Device context classes  CPaintDC - for drawing on windows client handlers (on paint only)  CClientDC - for drawing on windows client handlers (anytime other then on paint)  CWindowDC – for drawing anywhere in a window  CMetafileDC - Drawing to a GDI metafile

How to draw  Create paint object  Move to point  Draw line

How to draw  CClientDC DC(this)  DC.MoveTo(0,0);  DC.LineTo(100,100);  When the window calls on_paint the window will clear the area.

How to keep a drawing on a screen  Void draw(CDC* pDC,CRect rect)  { pDC->Rectangle(rect)  }

How to keep a drawing on screen  Onpaint()  { CRect rect; GetClientRect (&rect); CPaintDC dc(this); draw(&dc,rect);  }

Other draw functions  Rectangle  Arc  PolyLine  MoveTo  Pie  Ellipse  RoundRect

Coordinates taken from programming with MFC second edition

Coordinates  How to set  CClientDC dc(this)  dc.SetMapMode (MM_LOMETRIC);

Why you should use a pixel coordinate systems and pitfalls  There are only so many pixels on a screen, this is set by a screen resolution.  In a pixel coordinate system, how many pixels on a client window can be found by finding the size by using:  GetClientRect(CRect rect);  1 pixel is the most accurate there is (no such thing as ½ pixel in GDI)

Changing Color  CPen pen;  pen.CreatePen (PS_SOLID, 1, RGB (255, 0, 0));  CClientDC dc(this)  CPen *oldPen = dc. SelectObject(&pen);

Changing Color Taken from programming with MFC, Second Edition

Different Lines Taken from programming with MFC, Second Edition

Draw Text  CPaint dc(this)  dc.SetTextAlign(TA_RIGHT);  dc.TextOut(0,0,”hello”);

Anything else?  THERE IS MORE YOU CAN DO  This is just on the basics  Anything other details can be found on the MSDN.