After installing, configuring and learning how MWS works a test program was made. The starting point was to use MWS and that the MWS application should be implemented in the existing DDA application in a suitable way. The predestined way to store the DDA parameters is in .mat-files. According to this the solution to transmit data in files to and from MWS was a natural choice. On the other hand how the file transmission should be done was an open question. The wish was that the transmission should be as automatically as possible in both directions. From this test program the final result has been developed using the prototyping model, step-by-step getting the right design and functionality.
4.1 Installing, configuring and studying MWS
Last summer a trainee, Lisa Gelin, did a pilot study in the MWS. The first task was to take a look at her work; some instructions and a project map with files. As local server to the MWS she had downloaded OmniHTTPD. She gave us some tips, but in the end it turned out to be easier following MWS installation guide in order to get the MWS demo files to run. Finally after a couple of reinstallations the MWS could run the demos properly.
Next step was to study the MWS demo applications and Matlab in order to learn more about the programming. Having contact with Matlab support resulted in advice and more material how to do the programming part.
4.2 Making a test program
This part is divided into three parts; upload a file to the HTML page, establishing communication with MWS and finally get the result file back to the client.
File uploading to a HTML page
One solution, doing a file upload, is to use PHP-script. Installation and configuration of PHP is necessary. Through the following lines of HTML code a file can be uploaded.
Share with your friends: |