Digital Signal Processing Reference
In-Depth Information
FIGURE 9.26. LabVIEW Instrument window to control the gain of a generated sine wave
through RTDX for the project rtdx_lv_gain .
opened within CCS, and loaded and run on the DSK. See the Code Composer
Status in Figure 9.26. Verify that the amplitude of the output sine wave is five
times that of the input. You can vary the input signal frequency as well as the
gain settings to control the scaled output amplitude waveform. The output fre-
quency is the same as the input frequency. You can readily change the input
signal type to a square wave, a triangle, or a sawtooth.
From the block diagram, one can verify that the input and output data are
transferred through RTDX as two arrays (using [I32]), whereas the gain is
transferred as a single value (using I32). The brackets represent the array nota-
tion (using 32-bit integer format).
2. Figure 9.27 shows the C source program rtdx_lv_gain.c that runs on
the DSK. Through RTDX, the input and output channels are enabled and
opened for the C6x on the DSK to read the generated sine wave data and the
user set gain value and to write the scaled sine wave data to LabVIEW for
plotting.
Search WWH ::




Custom Search