You are on page 1of 6

DIGITAL SIGNAL PROCESSING Format Conversion

Names: Justo Abril Juan Pablo Dvalos


Abstract
In the following publication demonstrates the construction and use of the sync filter, which will have the income of any waveform, square waves, sine waves or triangle waves, the same that will be modeled on a kernel with math formulas. For this we must define the variables to enter the kernel, and once have entered the formula we obtain the output waveform that is displayed in frequency, in terms of convolution must generate a certain number of samples to be combined them with frequency values to form the convolution.

1. Introduction
The use of the kernel to enter the mathematical formula helps a signal represented in the plane of the time to convert in frequency plane. Manipulating the value of the constant M can vary the pulse width value of the output signal of the kernel, same thing happens with fc. In other to generate a number of data representing a time value for the space of a given pulse, and the two combined data can be the convolution of the signal to obtain the time domain.

2. Design Processing 2.1 Materials Labview DAQ

2.1 Schematic Design


In the following block diagram represents the way we obtain the output signal will be combined with the generation of obtaining points that represent a time value. With the combination of the both the convolution signal is obtained:

- ADC Sources - Simulated Signal

Pre Processing

Format Converter

2.3 Processes 2.3.1 Front Panel As we appreciate the front panel is divided in 6 spaces, two of then display the wave form graphs, others two represents the source mode, manipulation of attenuation and filter, on the writhe side is displayed the data and under this are the control of simulated signal. In the next figure we show the design of our front panel.

2.3.2 Data Acquisition In our case we have two ways to acquired signals, the first one is simulated and the second one is a real, which comes through the DAQ. This two signal are into a case which has a control selector of two positions, when is selected the simulated signal are show up frequency, amplitude and offset control, in another way, these disappear. If acquired signal is selected the controllers will show up. In figure 1 we represented a block diagram of data generated and acquired. Figure 1 (Data- Acquisition)

2.3.3 Signal Pre Processing In this stage, in the case of a signal acquired, we will create an amplification and attenuation factor of the signal, which will allow us to amplify or attenuate the signal by a controller on the front display.
By creating a Boolean control we can select the type of factor that we want, either attenuation or amplification.

After that, we create a numeric control which will be the amplification or attenuation factor depending on the other control. Figure 2 shows the block diagram representation of the pre-processing section. Figure 2 (Pre-Processing)

Like you can see in Figure 2, we use a case for selecting attenuation or amplification using the Boolean control that we talked earlier in this section and a numeric control to change the factor. In the case that you dont want to modify the inputs signal you just have to put 1 in the numeric control. 2.3.4 File generation The four formats to be converted are into a case, which has a selector of four positions named output format viewer. -For excel format we decided to show up in two way, the first one are only data of amplitude which graphic is just the wave form, and the second for each data of amplitude is there a data of time which graphic remarks the wave form area and this format will be saves with the extension .xls. - For text format we concatenated amplitude data with time data without pressed a sign + and this format will be saved with the extension .txt -For PWL format we used exactly the same block diagram just added the sign +, but to be saved we used the extension .pwl or .txt, depending the use be given. -For Microchip format the step is converting to hexadecimal and decimal data, but at the beginning of each data we concatenated retlw and to be saved we used the extension .asm In each format is used write to spread sheet , which send the data in form of path and to read this data we use read from text file function which shows up data in text form. In figure 3 we represented a block diagram of file generation. Figure 3 (File generation)

3. Results 3.1 File results Figure 4 (Excel) Figure 5 ( Text) Figure 6 ( PWL) Figure 7( Microchip )

4. Conclusions
As we can seen in the figure 4 the format has changed to a Excel format, in figure 5 to a Text format, in figure 6 to PWL and finally in figure 7 to microchip format. This tool will be very useful in the future as we will analyze signals in specific sections.