2019年3月1日星期五

The fifth week

The fifth week

In the fifth week, four of our members which include TONG WU, XIUQI LIU, ZIANG XU and ABDULLA ALAMRI attended the meeting with our supervisor in 26 February. The supervisor asked leader TONG WU to run the program to show what functions have been realized and what improvement has been made. The supervisor offered some advice on the 'Grab Point' function and GUI design. In this Friday lab session, team leader TONG WU finished functions of 'Recognize', however, the function can only deal with one certain image provided by the supervisor. An extra function called 'Attain value' was added to the GUI for user to use after using 'Recognize'. The function can pick up points in the curves recognized in a certain interval. It will ask user to input the beginning x value, interval and ending x value and the program can automatically pick up the points in that interval. Ziang Xu and Xiuqi Liu designed the poster in the lab session. ABDULLA ALAMRI updated the testing part of the final report according to the requirement we provided. Tong Wu and Ziang Xu enabled the 'fontsize' of the buttons increase and decrease proportionally to the GUI window size.

The figure below show the change of the 'Grab points', which is changed to read one data point one time and display the data of x, y value in the box as shown in Figure 1.


Fig.1 Function of grab points


The 'Recognize' currently can only deal with one figure provided by the supervisor which is shown below in Figure 2.


Fig.2 Image which can be recognized currently

After calibration, 'Recognize' function is enabled and can be clicked. Three curves will be displayed separately in three windows which are displayed below in Figure 3:




Figure.3 Three curves recognized in the figure

After 'Recognize' function, user can select one curve from three curves and 'attain value' function is enabled. After entering the starting x value, interval and ending x value, the data points are displayed in the table and the graph is displayed in the preview box. The results are shown in Figure 4,5,6.

Figure.4 Results of Attain value function

Figure.5 Results of Attain value function

Figure.6 Results of Attain value function

Next step is just to improve the information to help user to run smoothly.

2019年2月24日星期日

The fourth week

The fourth week


In the fourth week, three of our members which include TONG WU, XIUQI LIU and ZIANG XU attended the meeting with our supervisor in 19 February. The supervisor tested our program and had a try on the functions on them. He also gave some advice on how to improve our program such as design of GUI and improvement of some functions including 'Grabbing points'. In this Friday lab session, team leader TONG WU added functions including calibration of log-axis and 'Select curves' along with 'Grab points', the illegal input check function and wrote the description part of the sustainability report, XIUQI LIU, ZIANG XU and ABDULLA ALAMRI took charge of the writing of three sections of the sustainability report and think about the poster design. Moreover, XIUQI LIU and ZIANG XU improved the GUI design to make it more compact and user-friendly.

The figure below shows the newest version of the GUI design as shown in Figure 1.


Fig.1 New GUI design

 The 'Grab points' functions enable user to attain value of any points by left-clicking, and after press 'Enter' the points chosen before will be deleted for another 'Grab point' or other functions in order to save time. Moreover, the value is still stored in the table and user can choose to the save it as file. The results are shown in Figure 2 and 3.

Fig.2 Results of 'Grab point' function

Fig.3 Results of 'Grab point' function

The 'Select curve' function enables user to manually click in order to get the whole curve and the curve will be displayed in the preview axes along with the data about the point clicked by user saving in the table. After pressing 'Enter', user can choose to do another 'Select curve' function or other functions on the same image in order to save time.

Fig.4 Results of 'Select curve' function

Fig.5 Results of 'Select curve' function

When user input a letter or nothing and press 'Ok', the program will ask user to input a number. If user cancel after inputting or inputting nothing, the program will assume the user do not want to calibrate and clear the Xmin, Xmax, Ymin, Ymax as shown in below in Figure 6,7,8,9:
Fig.6 Results of illegal input check

Fig.7 Results of illegal input check

Fig.8 Results of illegal input check
Fig.9 Results of illegal input check

 Next week, we will try our best to finish the recognize function and the poster for bench inspection.

2019年2月16日星期六

The third week

In the third week, all of our members which include TONG WU, XIUQI LIU, ZIANG XU and ABDULLA ALAMRI attended the meeting with our supervisor in 12 February. The supervisor taught us the procedures to design a software program: Specifications, Design, Implementation, Testing and asked us to think about how to turn the program to other form so that user who does not have MATLAB can also use that. In that meeting, we also showed the supervisor what is the algorithm of the calibration part and grabbing point part. In this Friday lab session, team leader TONG WU would try to add the zoom in/out function and save file function, XIUQI LIU, ZIANG XU would take charge of other parts of design writing in the report and ABDULLA ALAMRI would write the testing part of the report.

The third week


In this Friday lab session, we finished the coding of zoom in/out and save file function along with function of displaying x, y data in the table box. After calibration and grabbing points, the data will be displayed on the table next to it and a curve plotted with those data will be displayed in the preview box, which is shown in the picture below. in Figure 1, 2.
Fig.1 Results of 'Grab Points'


Fig.2 Results displayed in Preview box


Fig.3 Results displayed in Data table

Also, user can press 'Save as excel file' and the program will ask user to input the file name. The file will be saved in the same file as the .m file. The results are shown below in Figure 4,5,6.
Fig.4 Results displayed in Excel file

Fig.4 Ask user to input file name

Fig.4 Excel file to save data

Next week, we will try to deal with the problems of illegal input when asking user to input values or name of the file. Moreover, we will do some research on how to convert it into a form which can be used by user who does not have MATLAB.

2019年2月8日星期五

The second week

The second week


In the second week, three of us which includes TONG WU, XIUQI LIU and ZIANG XU attended the meeting with our supervisor in 5 February. The supervisor instructed us to determine the goals of this week and distribute different tasks to different members. In that meeting, we also determined which step of the coding should be completed in this week and what we were going to do in the lab in this Friday. To be specific, the team leader TONG WU was in charge of the coding of calibration and grabbing points and XIUQI LIU and ZIANG XU were in charge of the introduction and part of design part of the report. We showed the process of our project to our fourth member ABDULLA ALAMRI since he was absent for the first week due to some issues and we assigned part of testing of report to him.

In this Friday lab session, we finished the coding of calibration. The user can first choose the origin of x-axis, maximum of x-axis, origin of y-axis and maximum of y-axis one by one and fill in the real value in the figure one by one to finish the calibration. The testing is shown in Figure 1,2,3,4.
Fig.1 Result of calibrating

Fig.2 Result of calibrating

Fig.3 Result of calibrating

Fig.4 Result of calibrating

It can be seen that the four points were calibrated and displayed on the original figure. After the calibration the minimum and maximum values of x-axis and y-axis were displayed in the text window.
Fig.5 X,Y axis data displayed in text box

After calibration, the user can grab points by clicking on the points on the curve and the program will automatically turn the pixel value into real value and display the new curve in the preview box. The data of the points grabbed will be displayed in the table, which can be seen in the figure below.
Fig.5 Results of 'Grab points'

The next problem is how to zoom in and zoom off the figure. Moreover, the saving file function needs to be done in the next week. Moreover, we still cannot figure out how to attain the value of two curves at the same time. The group will try to solve the problem in next week.

2019年2月1日星期五

The first week

The first week

Our project is to use MATLAB to extract data from curves in the figure and then save the data in the file.

In the first week, three of us which includes TONG WU, XIUQI LIU and ZIANG XU attended the meeting with our supervisor in 29 January. The supervisor instructed us to make out a plan and divide different jobs to different members. In that meeting, we also determined the basic components of the program which includes the type of inputs and specifications of the program, which indicate what the program can do. Lastly, we divided the program into three parts, which are Input & Output Design, Calibration Design and Data Processing.

Then in Friday, 1st February, three of us attended the experiment session and we finished basic design of the GUI menu shown in Figure 1.

Fig.1 GUI design

Moreover, we have finished the basic function of loading image in the GUI shown below in Figure 2.

Fig.2 Result of 'Load image'