{"id":198,"date":"2022-04-20T13:54:22","date_gmt":"2022-04-20T16:54:22","guid":{"rendered":"https:\/\/projects.upei.ca\/towtankcontrol\/?page_id=198"},"modified":"2022-04-21T15:09:07","modified_gmt":"2022-04-21T18:09:07","slug":"final-project-outcome","status":"publish","type":"page","link":"https:\/\/projects.upei.ca\/towtankcontrol\/final-project-outcome\/","title":{"rendered":"Data Acquisition and Analysis"},"content":{"rendered":"\n<p>The function of the Data Acquisition and Analysis subsystem is to collect the raw data from the control system during the testing process and process the raw data values gotten to get meaningful insights into how the design of a full-scale ship would be affected by the resistance of water and the effective horsepower needed based on its model scale values to determine if modifications could be made to the design or if it is seaworthy. This subsystem is composed of the HMI which collects and stores the data on a USB stick and the Excel Macro which is used to complete the Analysis and Report Generation. <\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Excel Macro\/VBA coding<\/h3>\n\n\n\n<p>Using the process shown in Figure 1 below, an Excel Workbook was put together to automate the process for the analysis of the raw data imported using a USB stick from the Seimens KTP700 HMI basic panel. The Excel Macro satisfies the requirements for the Data Analysis system, which were validated through testing using sample randomly generated data and test data from the control system. <\/p>\n\n\n\n<p>The Calculations will be completed using the International Towing Tank Conference (ITTC) documents for a resistance test which can be found <a rel=\"noreferrer noopener\" href=\"https:\/\/upeica-my.sharepoint.com\/:b:\/g\/personal\/nlandrigan_upei_ca\/EVsQU0bMcJ9Agjw9eL1NPQ8BNjW-f5-W1ClX0NCNmL3PSQ?e=WYVUBl\" target=\"_blank\">here<\/a>. The variables determined with this test are:<br>\u2022 Total resistance of the full-scale ship<br>\u2022 Ship speed for the full-scale ship<br>\u2022 Effective horsepower<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/projects.upei.ca\/towtankcontrol\/files\/2022\/04\/image-30.png\" alt=\"\" class=\"wp-image-211\" width=\"441\" height=\"711\" srcset=\"https:\/\/projects.upei.ca\/towtankcontrol\/files\/2022\/04\/image-30.png 441w, https:\/\/projects.upei.ca\/towtankcontrol\/files\/2022\/04\/image-30-186x300.png 186w\" sizes=\"(max-width: 441px) 100vw, 441px\" \/><figcaption>Figure 1: Flowchart for the Data Analysis.<\/figcaption><\/figure><\/div>\n\n\n\n<p>In order to automate the Data Analysis process, Macros and VBA code were used to program the different tasks to be completed. The image in Figure 2 below shows a screenshot of the Dashboard sheet with the command buttons which have the Macros and VBA code programmed into them. The user would just have to follow the instructions shown in the sheet to complete the analysis of the data by clicking on the respective command button. Clicking the button would trigger the Macros\/VBA code to run.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"354\" height=\"272\" src=\"https:\/\/projects.upei.ca\/towtankcontrol\/files\/2022\/04\/image-33.png\" alt=\"\" class=\"wp-image-263\" srcset=\"https:\/\/projects.upei.ca\/towtankcontrol\/files\/2022\/04\/image-33.png 354w, https:\/\/projects.upei.ca\/towtankcontrol\/files\/2022\/04\/image-33-300x231.png 300w\" sizes=\"(max-width: 354px) 100vw, 354px\" \/><figcaption>Figure 2: Dashboard sheet in the Excel Workbook showing the instructions on how to use the Macro.<\/figcaption><\/figure><\/div>\n\n\n\n<p>In order to complete the analysis and ensure that the calculated values are correct, the user would have to ensure that they fill out the model and specifications in Appendix A (Constants) sheet and fill out the sections shown in Figure 3 below. Once the values are entered, the calculated values would e adjusted based on the values entered. <\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"468\" src=\"https:\/\/projects.upei.ca\/towtankcontrol\/files\/2022\/04\/image-28-1024x468.png\" alt=\"\" class=\"wp-image-208\" srcset=\"https:\/\/projects.upei.ca\/towtankcontrol\/files\/2022\/04\/image-28-1024x468.png 1024w, https:\/\/projects.upei.ca\/towtankcontrol\/files\/2022\/04\/image-28-300x137.png 300w, https:\/\/projects.upei.ca\/towtankcontrol\/files\/2022\/04\/image-28-768x351.png 768w, https:\/\/projects.upei.ca\/towtankcontrol\/files\/2022\/04\/image-28.png 1178w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption>Figure 3: User Inputs on the Macro for Data Analysis<\/figcaption><\/figure><\/div>\n\n\n\n<p>The full screenshot of the Dashboard and Appendix A (Constants) sheets can be seen in Figures 4 and 5 below respectively.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"529\" src=\"https:\/\/projects.upei.ca\/towtankcontrol\/files\/2022\/04\/image-35-1024x529.png\" alt=\"\" class=\"wp-image-269\" srcset=\"https:\/\/projects.upei.ca\/towtankcontrol\/files\/2022\/04\/image-35-1024x529.png 1024w, https:\/\/projects.upei.ca\/towtankcontrol\/files\/2022\/04\/image-35-300x155.png 300w, https:\/\/projects.upei.ca\/towtankcontrol\/files\/2022\/04\/image-35-768x397.png 768w, https:\/\/projects.upei.ca\/towtankcontrol\/files\/2022\/04\/image-35-1536x794.png 1536w, https:\/\/projects.upei.ca\/towtankcontrol\/files\/2022\/04\/image-35.png 1918w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption>Figure 4: Screenshot of the Dashboard Sheet.<\/figcaption><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"528\" src=\"https:\/\/projects.upei.ca\/towtankcontrol\/files\/2022\/04\/image-36-1024x528.png\" alt=\"\" class=\"wp-image-270\" srcset=\"https:\/\/projects.upei.ca\/towtankcontrol\/files\/2022\/04\/image-36-1024x528.png 1024w, https:\/\/projects.upei.ca\/towtankcontrol\/files\/2022\/04\/image-36-300x155.png 300w, https:\/\/projects.upei.ca\/towtankcontrol\/files\/2022\/04\/image-36-768x396.png 768w, https:\/\/projects.upei.ca\/towtankcontrol\/files\/2022\/04\/image-36-1536x792.png 1536w, https:\/\/projects.upei.ca\/towtankcontrol\/files\/2022\/04\/image-36.png 1920w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption>Figure 5: Screenshot of the Appendix A (Constants) Sheet.<\/figcaption><\/figure><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Report Generation<\/h3>\n\n\n\n<p>Once the analysis is completed, a summary test report would be generated for the User which they can save as a PDF. To complete the Test Summary Report, the blank sections of the following tables shown in Figure 6 below would have to be filled out before the summary report is saved. Once this is filled out, the Save command button can be pressed which would generate the Test Summary Report as well as the analysis data for reference as a PDF for the user to save in a different folder or external storage.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"415\" src=\"https:\/\/projects.upei.ca\/towtankcontrol\/files\/2022\/04\/image-29-1024x415.png\" alt=\"\" class=\"wp-image-209\" srcset=\"https:\/\/projects.upei.ca\/towtankcontrol\/files\/2022\/04\/image-29-1024x415.png 1024w, https:\/\/projects.upei.ca\/towtankcontrol\/files\/2022\/04\/image-29-300x122.png 300w, https:\/\/projects.upei.ca\/towtankcontrol\/files\/2022\/04\/image-29-768x312.png 768w, https:\/\/projects.upei.ca\/towtankcontrol\/files\/2022\/04\/image-29.png 1220w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption>Figure 6: Parameters in the Test Summary Report that can be modified &#8211; Blank sections.<\/figcaption><\/figure><\/div>\n\n\n\n<p>At the end of the project, the template for how the Sample Test Summary report would look was not yet finalised.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The function of the Data Acquisition and Analysis subsystem is to collect the raw data from the control system during the testing process and process the raw data values gotten to get meaningful insights into how the design of a full-scale ship would be affected by the resistance of water [&hellip;]<\/p>\n","protected":false},"author":295,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"tags":[],"_links":{"self":[{"href":"https:\/\/projects.upei.ca\/towtankcontrol\/wp-json\/wp\/v2\/pages\/198"}],"collection":[{"href":"https:\/\/projects.upei.ca\/towtankcontrol\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/projects.upei.ca\/towtankcontrol\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/projects.upei.ca\/towtankcontrol\/wp-json\/wp\/v2\/users\/295"}],"replies":[{"embeddable":true,"href":"https:\/\/projects.upei.ca\/towtankcontrol\/wp-json\/wp\/v2\/comments?post=198"}],"version-history":[{"count":17,"href":"https:\/\/projects.upei.ca\/towtankcontrol\/wp-json\/wp\/v2\/pages\/198\/revisions"}],"predecessor-version":[{"id":294,"href":"https:\/\/projects.upei.ca\/towtankcontrol\/wp-json\/wp\/v2\/pages\/198\/revisions\/294"}],"wp:attachment":[{"href":"https:\/\/projects.upei.ca\/towtankcontrol\/wp-json\/wp\/v2\/media?parent=198"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/projects.upei.ca\/towtankcontrol\/wp-json\/wp\/v2\/tags?post=198"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}