You are here

WEEK ATE!!! (8) - finish up my interface

Goodness! It seems as if these weeks are going by like days...Well anywho, this week I started to finish up my interface. I made some changes to my GUI: Change 1: Instead of updating the database by the number of data points flagged, I update the database once per "boxed" flag. Change 2: I am now using the variables min and max as well as the time frame to zoom in on the rows that were flagged in the GUI to serve as a placemark in the database. Change 3: I separated the extraction of data and its graph. I while doing this I came across one stubborn little error I made when re-graphing the flagged data points. Once the selected data was extracted and uploaded into MATLAB, the user selects the X and Y variables. Next the user is able to select and flag the data and it is re-graphed displaying all that was flagged. However, when the user plots a new graph including the flagged data, the Y variable would obtain the values of the X data and would plot a straight line. I searched up and down and in and out my code to find where this error occurred but it hid well...it took me several hours to find this error. When I found what changed my variable I was sooo relieved but kinda upset that I overlook it sooo easy. Apparently when data is flagged, and updated I set the y variable to the updated x variable. It took me soo long to catch it because I was viewing the variable in the workspace before it was changed, so after the flag function it was sent to the workspace so that I can view it - and when I did, it was good, but when I would re-graph the variables is when I would see that it changed. It was just one character -not a line and not even a word- just one character that messed up my whole interface. Haha that's programming for ya!