Day 5 Oct. 11

advertisement
Where are we going with this whole program?
10 minute design
Review Guessing Game Program
Constraints on the program
Generating the Random Number
Review Where Class Materials Are
LabVIEW Core 1 Course Manual
LabVIEW Core 1 Exercises
LabVIEW Core 1 Power Points
- My Documents\LabVIEW\LabVIEW Core 1 Materials\Presentation
LabVIEW Flash Presentations
- My Documents\LabVIEW\LVB1.exe
Web Site
Review Exercise 2-5
Explain big picture
Signal is analog
Computer is digital
Must digitize signal to work with it on/in computer
Frequency of Signal yields a period of oscillation
Samples per second (Hz) multiplied by number of samples yields a time
100Hz signal sampled 100 times at 1000Hz takes how long?
100Hz = .01s period
1000Hz sample rate = .001s between samples
100 samples yields .1s or ten periods with 10 samples per period
Try out in LabVIEW using Exercise 2-5
Autoscale X and or set X scale to show 1 period of signal
Why don’t we see one complete period?
How many samples would be required to see one complete period?
100Hz signal sampled 10 times at 500Hz yields how many samples per period?
100Hz = .01s period
500Hz sample rate = .002s between samples
10 samples yields .02s or two periods with 5 samples per period
Add an Amplitude and Level Measurements Express VI to Exercise 2-5
How should your block diagrams be laid out?
View Lesson 3 Power Point
Exercises 3-1 & 3-2
Modify Guessing Game
Add an orange LED to the front panel
The orange LED will light up if the user’s guess 1 above or below the random number
Assignment
Read Lesson 3 Sections D, E, and F from the LabVIEW Core 1 Course Manual (c:\Documents and
Settings\student\My Documents\LabVIEW\LabVIEW Core 1
Materials\PDFs\LVCore1_2010_Eng.pdf)
Reflect on and review what we did this week
Review flash cards
Email me programming assignments by 10/17 – or talk to me about when
DC Voltage Output using USB 6211
Create a VI to calculate the circumference of a circle when given the radius of the circle
Create a VI to solve a math problem
Guessing Game
Download