Download presentation
Presentation is loading. Please wait.
Published byTrevor Evans Modified over 9 years ago
1
Today C/C++:.h/.cpp; compiling and linking Fourier Transform (corrected) Nyquist Theorem Audio sampling rates SE-2811 Slide design: Dr. Mark L. Hornick Content: Dr. Hornick Errors: Dr. Yoder 1 SE3910 Week 6, Class 1
2
Ex: C/C++ (Review) Why do we have both.h and.cpp file extensions for C++? Why not just have.cpp (like.java for Java classes)? Answer these questions: 1. What should you put into a class’s.h file? 2. What should you put into a class’s.cpp file? [Note: On next lab, use.hpp and.cpp instead of.h and.cpp] SE-2811 Dr.Yoder 2
3
Compiling and Linking Compiling Converting individual.c or.cpp file to object code Linking Combining multiple object (.o) files into an excecutable (usually without extension, or.exe on Windows) SE-2811 Dr.Yoder 3
4
Ex: C/C++ Circle the link-time errors. Box the compile- time syntax error warning: implicit declaration of function `...' point.m:40: error: ‘mypoint’ undeclared (first use in this function) parse error before `...‘ collect2: ld returned 1 exit status undefined reference to `filterText' /usr/lib/crt1.o(.text+0x18): undefined reference to `main ' SE-2811 Dr.Yoder 4
5
Network Latency with resmon.exe SE-2811 Dr.Yoder 5
6
Signals as sums of sine-waves SE-3910 - Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling 6 http://mathworld.wolfram.com/FourierSerie sSquareWave.html http://ccn.ucla.edu/BMCweb/SharedCode/s lides/SlideFiles.html
7
SE-3910 - Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling 7
8
Sampling Theorem (again Nyquist) f s = 2B (B is bandwidth of signal) SE-3910 - Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling 8
9
Ex: If this is 1 second, what is the output if we sample 3 times per second? SE-3910 - Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling 9
10
Units: dB What is a decibel? A tenth of a bel What is a bel? The log 10 of some ratio. X dB = 10 log 10 (Y) Ex: How to compute Y from X? X – in units of dB Y – simple ratio (unitless) e.g. signal power / noise power 10
11
In-class Activity: Analog to digital bandwidth SE-3910 - Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling 11
12
Ex: What are two ways we can avoid the stroboscopic effect in a video game simulation of a rotating wheel? SE-3910 - Dr. Josiah Yoder Slide style: Dr. Hornick Much Material: Dr. Schilling 12
13
Muddiest Point Wait for the slides, or follow this link to answer both questions at once: http://bit.ly/1Mow5a3 SE-2811 Dr.Yoder 13
14
Muddiest Point Wait for the slides, or follow this link to answer both questions at once: http://bit.ly/1Mow5a3 SE-2811 Dr.Yoder 14
15
SE-2811 Dr. Josiah Yoder 15 http://bit.ly/1Mow5a3
16
SE-2811 Dr. Josiah Yoder 16 http://bit.ly/1Mow5a3
17
References EB: Derek Malloy, Exploring Beaglebone, Wiley, 2015 http://www.linuxtopia.org/online_books/an_intro duction_to_gcc/gccintro_95.html http://www.network- theory.co.uk/docs/gccintro/gccintro_95.html http://stackoverflow.com/questions/5645387/gc c-compile-errors-in-an-basic-example-objc- program http://www.linuxtopia.org/online_books/an_intro duction_to_gcc/gccintro_94.html SE-2811 Slide design: Dr. Mark L. Hornick Content: Dr. Hornick Errors: Dr. Yoder 17
Similar presentations
© 2024 SlidePlayer.com Inc.
All rights reserved.