Wednesday, 6 March 2013

A rectification of the programme

In the original programme, we used the former 57000 data points to plot the Q-U Lissajous figure of one period. We chose 57000 before, because the Lissajous shown as below was a closed shape, which looked like the graph for one period.
 
But this method is unwarranted, we should choose the amount of the data points for one period by calculating based on the frequency we got. The frequency is 40kHz. Thus, the period is 2.5*10^-5s. The interval of the data points is 5*10^-10s. Therefore, the former 50000 points should be used, as  (2.5*10^-5)/ (5*10^-10)=50000. The correct Q-U Lissajous is shown below.
 
After we rectified the programme, the work done of one period is 0.0015189J and the discharge power is 60.756W. This result is closer to the theoretical value 60W than before. The content on the poster was modified and then printed.

Monday, 4 March 2013

Summary of poster design


As we had finished our project, the next step was to design the poster. My partner Liang Tang and I went to the library to discuss how to design the poster on both Saturday and Sunday of week 5.

 

At first, we had a look at the posters done by the last year students. The web link was given in the email sent by Al-Nuaimy. He also gave us a material about how to design a good poster written by cornell. After going through the ppt, we started to devise our poster. We divided the main content of the poster into four parts, including introduction, method, results and conclusion. The introduction section contained a brief introduction of the DBD plasma reactor and the significance of the measurement of the discharge power. The method part stated the process of how to gain the discharge power. The results section showed some important figures and data. The conclusion part contained a summary and the disadvantages of this project. At last, we added a section named “Contact us” which included our email addresses and a QR code for the blog.

 

After the content was done, I designed the format and colour. Thus, the poster was completed and the next step is to print it.

Sunday, 3 March 2013

Work summary of week 5


Having compiled all the programs that we need to realize the required function, we started to work on the GUI (graphic user interface).
I used to think that the GUI would not be so difficult to design as we have already got the functional part of our program, thus making a GUI should be as simple as putting up a coat. However, after doing some research about the method used to program GUI, I found it so difficult to make and it just seems to be another type of programming language. To make the GUI, I tried to learn the method about how to make the GUI.
There are mainly two methods of making a GUI. One method is programming directly and generating the GUI only by the program, and the other one relies on the help of GUIDE which is a built-in program of matlab to help making the process of making a GUI more visual.
I tried both methods but failed on both of them. To start with the program, it is needed to read the data into the program. I searched online and found a useful grammar that might be able to be used, which is shown as follows:
[filename, pathname] = uigetfile('*.txt', 'Choose Data');
data=importdata([pathname filename]);
This grammar works perfectly in simple .m file, as you can see in the following figure.

However, it would not work in both of the GUI method no matter how hard I try.
Therefore we gave up with the GUI method and focused on our basic program and thought about how to perfect it. My partner Chunyang Song designed a attached function to the show the maximum value, minimum value, mean value, rms value and peak-to-peak value of the input signal. This can show some detailed information of the applied voltage and capacitor voltage.

On the Friday of the last week of our year 2 project, we combined all the function .m files together to form a whole program. After some compiling our project successfully produced the discharge power with some attached data as the following figures shows.


However, it seems to be a little informal, so we added some sentences into it realizing the function of storing all the data in a text document for later access. It can be seen from the figure below.

To this extent, our project is finished with all the requirement met and some attachment function realized.

Sunday, 24 February 2013

Work summary of week 4

In the last week, we obtained the frequency f of the signal by fast fourier transform (fft) method. However, the resolution ratio of the frequency is 10kHz. This is because resolution ratio equals to sampling frequency (2*10^9Hz) divided by sampling points(2*10^5). Thus, we regarded f as 40kHz. In week 2, the smooth Q-U Lissajous was achieved. That graph contains about three and a half periods of data, so there are three curves mixed with each other. What we want is the Q-U Lissajous figure with just one period, so we modified the program. If we use the former 57000 data points to plot the graph, it seems like a closed curve for one period as shown below.


 
 
Next, the total work of one period, i.e. the area surrounded by the curve, could be calculated by the following equation,
According to the above equation, we wrote a program to compute the work and the result is 0.0016J. Then, the discharge power of the DBD plasma reactor could be gained according to
So far, the most important part of the project was completed. To make it more impeccable, some characteristics of the input signals should be showed. In week 1, the waveform of the applied voltage and the capacitor voltage had been displayed. Thus, we wrote a program to gain the maximum value, minimum value, mean value, rms value and peak-to-peak value of the input signals. Matlab has the ready-made functions of these characteristics, so it was easy to compile the program.  
 
Finally, to display the information intuitively, it was essential to create an interface to integrate all the results and figures together. This could be done by GUI of Matlab, but we had never used it before. Hence, further work should be done to learn how to use GUI to make the interface. The main task of the 5th week is to show all the information on one interface.  


Sunday, 17 February 2013

Work summary of week 3


As stated in the previous blogs, the main problem we are facing is how to calculate the frequency of the signal. This is very important because to calculate the discharge power, the equation used includes the value of frequency and the sum of the products of the instantaneous voltage across the reactor and the change of the accumulated charge on the capacitor.

It used to be a problem as how to calculate the frequency using fast fourier transform before because each time we tried to generate the plot of the signal in the frequency domain using matlab, it turns out to be something like what the following figure shows.

In the figure there are two apparent frequency peaks, one is at around 0Hz and the other is about 2*10^9Hz. It is normal that there are two frequency peaks with the same amplitude in the frequency domain for one signal because it is such a characteristic for the fourier transform. Usually we would take the first half of the plot as our results. However, this time the frequency of the first peak is so close to 0Hz and it influences the results seriously. Thinking about the problem for a long time, I find there is a possible reason that the frequency of the first peak is so close to 0Hz might be that the range of the x-axis is too large. Therefore to solve the problem, I bound the border of the x-axis to a rather smaller range and suddenly the plot turns out to be successful and it can be seen in the following figure.

With this step successful, we are able to march on to the next step in the next week which is about to find the x-axis value of the first peak in the frequency domain which should be the frequency we are searching for and also the frequency of the target signal.

Monday, 11 February 2013

Work summary of week 2


In the first week, we got the Lissajous figure using Matlab as shown in the second picture in the first blog. The area of the shape surrounded by the blue line represents the work done by the DBD plasma reactor in one period. However, the shape is not smooth enough. This is because the output signals were interfered by some interference such as noise. To calculate the area accurately, we should smooth the curve first. Thus, in the second week, we wrote a program to take the average of every 200 points as a sample and use the new chosen samples to draw the Lissajous figure. As shown in the follow picture, the curve became much smoother than the last one.
 
 
The next problem needed to be figure out was how to obtain the frequency of the signal. The shape of the output signal is similar to the sin wave. Firstly, our thought was to set a fixed voltage value as reference. When this value appeared a third time, we could take this time interval as the period. Then the frequency could be achieved by the equation f=1/T. However, in a short time interval, the voltage values were extremely close to each other. Therefore, it was difficult to calculate the period accurately by this way, and we gave up this method. Secondly, we wanted to get a fitted curve by the cftool in the Matlab. Afterwards, we did not use this ready-made cftool, because we preferred to write the program to achieve the frequency. Finally, we discussed this troublesome problem with our supervisor Dr. Tu. And he told us we could use fast fourier transform (fft) to cope with it. Then, we searched lots of information about fft from the internet and tried to compile the program. Unfortunately, it did not work. It might be something wrong with the program.
 
Thus, the main task of the next week is to get the frequency by fft method.

Sunday, 3 February 2013

Work summary of week 1 and before

Getting the topic of this experiment, I, Liang Tang and my teammate Chunyang Song started to think about the topic together with searching for the related information about the topic. The topic of our year 2 project is "Online measurement of the discharge power in a DBD plasma reactor".

Before meeting our project tutor, we had already gained much knowledge about the topic by searching on the internet. The information we got related to the topic can be found via the following links:
http://en.wikipedia.org/wiki/Dielectric_barrier_discharge
http://hal.archives-ouvertes.fr/docs/00/25/55/61/PDF/ajp-jp4199707C405.pdf

Then on the 11 of December we first met our project tutor, Dr. Tu, and learned that our topic is about using the software Matlab to calculate the discharge power in a typical DBD(dielectric-barrier discharge) plasma reactor. Moreover, we got a few files from Dr. Tu of the background knowledge related to the DBD plasma reactor and some conventional rules of calculating the discharge power.

Before the experiment period in week 1, we have been quite familiar with the DBD plasma reactor and the method of calculating the discharge power. Then on last Friday, which is the experiment day, we met our project tutor again and got the input data of the project.

According to the information, to calculate the discharge power of a DBD plasma reactor, the circuit needs to be connected as follows:
Then with the voltage across the plasma reactor and the instantaneous charge on the capacitor, the discharge power of the plasma reactor can be calculated. Luckily, the applied voltage, the capacitor valtage and the capacitance are known value to this experiment, and the problem that the experimenters need to face is how to handle the data so as to get the value of the discharge power.

Firstly, we drawed the waveform of the appiled voltage and capacitor voltage shown as below.


  
With the input data given, we eventually got the Lissajous figure using Matlab, as shown in the following figure.
This is ought to be the first step of calculating the discharge power of a DBD plasma reactor according to the information we gathered.

However, as there were too many groups of data(approximately 200000 groups), we did not know how to calculate the frequency of the given signal, which stopped us from going further.

After the experiment time, we decided to review the information we had and try to find out the method of calculating the frequency of the voltage signal using Matlab.