Professional Documents
Culture Documents
Experiment #5
Audio and Image Signal Representation
2x2 box
Submitted by:
Bobis, Daniel D.
Submitted to:
Engr. Mark Nelson E. Pangilinan
Date:
August 9, 2017
I. Intended Learning Outcomes
Question 1: Adjust the time stamp of the Waveform graph to display the waveform from 0 to
0.02 seconds. What is being displayed in the Waveform graph? Relate this to the sound
heard. Answer:
Question 2: Adjust the time stamp of the Waveform graph to display the waveform from 1.20
to 1.21 seconds. What is being displayed in the Waveform graph? Relate this to the sound
heard. Answer:
Question 4: Obtain some information on the audio file like the length of the file, total number
of samples, sampling rate, the number of channels and the number of bits per sample. Use
Info.vi. Answer:
Question 6: What was being displayed in the Waveform Graph? How many channels does
this file have?
Answer: The amplitude of the audio signal is being displayed in the Waveform Graph wherein
it has two channels.
Question 10: Comment on the waveform of the Noisy signal and the sound heard.
Answer: The waveform of the Noisy signal is similar to the sound heard.
Question 11: What is the function of the Get Waveform Components and Build Waveform
nodes?
Answer: Get Waveform Components returns the analog waveform being specified and Build
Waveform builds an analog waveform or modifies an existing waveform.
Question 12: Why is there a need for a Build Array node to be used when writing a
waveform into a file?
Answer: There is a need for a Build Array node because it takes in a series of inputs and forms
an array of appropriate dimension and size when writing a waveform into a file.
Question 13: Compare the original and the scaled audio in terms of its waveform graph and
how it sounded? What is the effect of scaling or multiplying an audio signal by a constant?
Answer: The effect of scaling or multiplying an audio signal by a constant is that it results in a
bigger waveform and also a louder sound compared to the original audio.
Question 1: With regards to the image file, what does the image depth, the image, and
the Rectangle data indicate?
Answer: Image depth specifies the color depth of the image. The image is an array of bytes that
describes the color of each pixel in the image in raster order. The rectangle is a cluster that
contains coordinates that describe the bounding rectangle of the image.
Question 2: What is being displayed in the table? How many rows does this table have?
What does the data on each cell indicate?
Answer: Hexadecimals are being displayed in the table. The data on each cell indicate the
numeric representation (in hexadecimal) of colors from the image.
Question 3: Why was the indicator connected to the 24-bit pixmap terminal of the Unflatten
Pixmap.vi? Will the output be also seen in the other terminals? Why?
Answer: The indicator is connected to the 24-bit pixmap of the Unflatten Pixmap.vi because it
returns the 2D array of data to draw as a pixmap. If the output is connected in the other
terminals, the dimensions of the image match the dimensions of the array.
Question 4: Compare the output of Table and Table 2. What does the value in each cell
represent?
Answer: In the image, the color varies per column of pixel, while the data in the table varies per
row. The value in each cell are the information on the color of the pixel in hexadecimal form.
Question 5: What is being displayed in the image01.xls? How does it compare with the
one displayed in Table 2?
Answer: The image data is being displayed in the image01.xls. The pixel map that is being seen
in the Table 2 is the transpose of the pixel map of the image.
Question 6: What does the format %x mean? What other formats are available for use? Answer:
The format %x means hexadecimal. Other formats are %g (automatic formatting), %d
(decimal), %f (floating-point), %e (scientific notation), %p (SI notation), %o (octal), %b
(binary), %t (relative time), %T (absolute time), %s (string), and %$ (variable order).
Question 7: How did the Transposed Image look like? What did the transposed operation do to
the image?
Answer: The Transposed Image is a rotated original image. The transposed operation
interchanged each row and the corresponding column from the pixel map of the image.
Question 10: What is the purpose of the two For Loops and the Random Number multiplied
to the constant? Why is the constant chosen to be equal to 224?
Answer: Two For Loops are added to control repetitive operations of the multiplication of the
Random Number to the constant. The constant is equal to 2 24 because it is the number of
possible color combinations that can be displayed on each pixel.
V. Conclusion
In this laboratory experiment, I understood how sound and image signals are
represented in LabVIEW by performing some simple operations on sound and image signals
and by determining the effects of these operations. In the first activity, the audio file is being
represented as a sine wave. The signal is then scaled resulting to a louder sound. Noise is also
introduced to see its effect on the audio signal. In the second activity, an image is used to
determine its signal. The pixel map is determined to display the color of each pixel. The image
is transposed and noise is also introduced into the image signal.
VI. Machine Problems