218
edits
Changes
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>