As of August 2020 the site you are on (wiki.newae.com) is deprecated, and content is now at rtfm.newae.com.

Changes

Jump to: navigation, search

Making Scripts

933 bytes added, 18:35, 17 June 2016
no edit summary
=Basic=
User scripts allows partial (i.e.: setting up the environment) or total automation of the execution flow.
Scripts auto-generated by the analyzer tool can also be executed standalone or saved in the scripts directory so it will show up in the next GUI execution.
 
=Advanced=
 
If you decide to run both tools in sequence, do as follows:
 
<pre>
if __name__ == '__main__':
from chipwhisperer.common.api.CWCoreAPI import CWCoreAPI
import chipwhisperer.capture.ui.CWCaptureGUI as cwc
import chipwhisperer.analyzer.ui.CWAnalyzerGUI as cwa
from chipwhisperer.common.utils.parameter import Parameter
app = cwc.makeApplication()
Parameter.usePyQtGraph = True
api = CWCoreAPI() # Instantiate the API
gui = cwc.CWCaptureGUI(api) # Instantiate the Capture GUI
gui.show()
api.runScriptClass(Capture)
gui.close()
gui.reset() # Delete saved geometry settings in the Capture tool so it will not be used by the Analyzer
 
gui = cwa.CWAnalyzerGUI(api) # Instantiate the Analyzer GUI
gui.show()
api.runScriptClass(Attack) # Run the script (default is the "run" method)
 
app.exec_()
</pre>
218
edits

Navigation menu