wiki:LoadSave

Loading and saving

Loading

The flash client can read Parameters from the webpage where it is displayed. The settings to be loaded must therefore be generated by the webserver on the page displaying the flash client. When pressing the load button in the client, the client first directs the browser to a web page (script) named "load" in the same directory as the flash client. This page should display a file upload interface, where the user can post thier saved circuits. When the file is uploaded the webserver is responsible for displaying the flash page with the uploaded circuit parameters present, so the flash client can read them and display the saved circuit.

Saving

When saving, the flash client asks each instrument module to generate thier save xml data, and the complete xml document is posted to the webserver page (script) named "save" in the same directory as the flash client. The script can then present the user with a download dialog. The XML document follows the save data protocol, that the load fuction can load.

Notice

The load and save functions are primary used for loading and saving the circuit on the breadboard, but it can be extended to handle instrument settings. This is currently not the case.

Last modified 7 years ago Last modified on Dec 2, 2010, 1:37:27 PM