Tuesday, April 19, 2011

Kevin's Week 12 report

This week I met with Ashley to make sure that we were able to transfer data containing 2 bytes over the serial port connection.  We were successful in receiving data of this size; a screenshot of this data is shown below.  We were able to test this by just performing two consecutive read operations of the serial port.  We first read the MSB and shift it to the left, then we read the LSB and add it to the shifted MSB and we get our result.  We were able to test this using the light bulb loads that we have set up.  The values around 600 were when all three were on.  We also saw a jump in the energy value when we switched the light bulbs on; this is why there are random values that spike up such as the 1168 value, these are only the minute values, but when looking at the second data, you will see 1 second where the energy value greatly increases.
Most of the time I spent this week was working on getting the website posted to the localhost.  I was still unable to find my error posting it through IIS, so I had to decide to use the www directory in the WAMP server.  To do this, I had to convert my code for the website to PHP.  The logic used was all the same, so most of the work was just getting the syntax in language differences corrected.  Since the PHP syntax is quite different from C#, it took me most of the week to get this done, but I finally have the site posted to my local host.  The site looks and operates pretty much the same.  The only change I had to make was to use a different charting tool, because the MS Chart tool would not work with PHP.  I decided to use the Libchart tool.

Now that this is working, I can focus on the reports and testing over the next weeks.


0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home