Documente Academic
Documente Profesional
Documente Cultură
Overview
Now that you have an idea about the operation of a telephone, you are
ready to begin the
experiment.
DTMF generator
In this part, you will simulate touch tone telephones, which use DTMF
signals. Dual-tone
multi-frequency (DTMF) signals are signals that consist of the sum of two
pure sinusoids
at valid frequencies.
In order to generate a DTMF signal, open LabVIEW DSP Module and
create a blank VI.
In the Block Diagram window, place two Simulate Signal Express VI located
on the
Functions Embedded Signal Generation palette.
Add the output of the two Simulate Signal VIs and connect the result to
the Analog
Output (also known as Codec Out), as shown in Fig. 2:
upper array will hold 697 while the one in the lower array will hold 1209.
Fill in the rest
of the array elements by changing the index n-dimensional array
according to Table 1.
For example, if #Sample is 128, and Sampling Rate is 8000Hz then the
For Loop takes 16
msec for 1 iteration.
Add a For Loop around the Simulate Signal blocks along with the Analog
Output
block.
Figure 13: Adding a For Loop to generate tone for a period of time.
When dialing a telephone, the minimum tone length should be 40 ms.
We will choose to
generate 150 ms. Knowing that each For Loop is 16 ms as mentioned
previously, the
number of iterations required will be the 150(ms)/16(ms).
Use a Divide block to compute the quotient and use the result as the
number of iterations
as shown in Fig. 14: