|
|
|
Step 6: |
|
Set the function generator to produce a 300 Hz sine wave and adjust the
AMPLITUDE
control for a comfortable sound level in the earphone.
|
Remark: |
|
One consequence of reading, processing, and writing
(as opposed to reading and processing,
or processing and writing, as we've done up to now)
is that our Labview program now has strict
real time
constraints.
I.e. it must read a block of input data samples,
process them, and write the output data samples
before the next block of samples arrives, or data
will be lost.
Since Windows is a multitasking operating system
with no provisions for supporting real time processes,
it is possible for another process to interfere with
this requirement.
When this happens, Labview displays an error message
(e.g. "Error -10846 occurred at AI Buffer Read")
and stops.
This is likely to happen if you try to bring another application
(e.g. Mozilla) to the front.
If this happens, dismiss the error message and restart the program.
|
Step 7: |
|
Vary the frequency or amplitude slightly.
Note the delay between the change in the input and
the change in the input.
This is caused by the
buffering
of the input and output samples
|
Step 8: |
|
Set the number of quantization levels to 100.
Note the effect on the sound.
Can you see any change in the scope display?
|
Step 9: |
|
Try different numbers of quantization levels.
What is the smallest number you can use without
producing a noticeable degradation in the sound?
|
Step 10: |
|
Stop the program, set the sample rate to 8000,
the quantization levels to 4096,
and restart.
(The sample rate is only read when the program starts,
so changing it while running has no effect.)
|
Step 11: |
|
Increase the frequency of the function generator towards
4 kHz. What happens to the sound as you reach and pass
4 kHz?
|
Step 12: |
|
Continue increasing the frequency through 8 kHz.
Note what happens to the sound.
|
Step 13: |
|
Set the function generator to triangle wave.
Vary the frequency from a few hundred to a few thousand Hz.
Listen for "birdies", faint tones that rise and fall as the
frequency of the main tone changes.
|
Step 14: |
|
Switch the function generator to square wave and vary the frequency.
The birdies should now be louder and more numerous.
|
Question 5: |
|
Explain the source of the "birdie" tones.
|
Step 15: |
|
Disconnect the function generator from A/D input4 and connect the
output of the microphone mixer to it.
Here's what you should have:
|