Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| en:python-ivi:readme [2014/02/12 19:27] – [Included drivers] alex | en:python-ivi:readme [2014/02/12 19:28] (current) – [Usage example] alex | ||
|---|---|---|---|
| Line 126: | Line 126: | ||
| # measure phase | # measure phase | ||
| phase = mso.channels[' | phase = mso.channels[' | ||
| + | # save screenshot to file | ||
| + | png = mso.display.fetch_screenshot() | ||
| + | with open(' | ||
| + | f.write(png) | ||
| + | # save setup to file | ||
| + | setup = mso.system.fetch_setup() | ||
| + | with open(' | ||
| + | f.write(setup) | ||
| + | # restore setup from file | ||
| + | with open(' | ||
| + | setup = f.read() | ||
| + | mso.system.load_setup(setup) | ||
| </ | </ | ||