This week we visited the Avanade Office with all the hardware components we have ordered to be assembled with the box.
The finished result looks like this:
With the hardware assembled, we can now test our system with the data collection and storage only Azure database, the PID analysis, the generation of appropriate actuation, and live display of all values onto the GUI with real data from physical hardware.
By testing with real data, we spotted some bugs and spent the rest of the weeks fixing them.
Once the PID is completely incorporated with the main code, we re-created the database to include the actuation value as an extra column.
For effective PID analysis, we realised that the time interval for sending data between submodules must be shorter than data collection time interval for a more accurate calculation result.
In order to do this, we set up a multi-threading system:
This diagram shows the flow of messages in the system using Publisher-Subscriber design pattern along with basic annotation of key events in the system.
Comments