Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
learn:instrumentation:tutorials:analog-discovery-studio-script-editor:start [2019/05/31 19:57] – [2. Using the Script Editor] Andrew Holzer | learn:instrumentation:tutorials:analog-discovery-studio-script-editor:start [2021/06/02 23:47] (current) – Arthur Brown | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Using the Script Editor (Under Construction) ====== | + | ====== Using the Script Editor |
- | + | ~~REDIRECT>test-and-measurement/ | |
- | {{: | + | ~~NOSEMANTIC~~ |
- | + | {{tag>redirect}} | |
- | ===== Prerequisites ===== | + | |
- | * A Digilent Test & Measurement Device | + | |
- | * A computer with WaveForms Software installed | + | |
- | + | ||
- | ===== Introduction ===== | + | |
- | + | ||
- | //This guide will explain the use of the Script Editor for WaveForms software.// | + | |
- | + | ||
- | ----- | + | |
- | + | ||
- | ==== 1. Opening the WaveGen ==== | + | |
- | + | ||
- | <WRAP group> | + | |
- | <WRAP column half> | + | |
- | + | ||
- | === 1.1 === | + | |
- | Plug in the <test & measurement device>, then start WaveForms and select the device. | + | |
- | + | ||
- | </ | + | |
- | <WRAP column half> | + | |
- | + | ||
- | FIXME image | + | |
- | + | ||
- | </ | + | |
- | </ | + | |
- | + | ||
- | ---- | + | |
- | + | ||
- | <WRAP group> | + | |
- | <WRAP column half> | + | |
- | + | ||
- | === 1.2 === | + | |
- | Once the Welcome page has loaded, click on the **Script** button to open the Script Editor panel. | + | |
- | + | ||
- | </ | + | |
- | <WRAP column half> | + | |
- | + | ||
- | ~~ Image showing how to open Script Editor ~~ | + | |
- | + | ||
- | </WRAP> | + | |
- | </ | + | |
- | + | ||
- | ---- | + | |
- | + | ||
- | <WRAP group> | + | |
- | <WRAP column half> | + | |
- | + | ||
- | === 1.3 === | + | |
- | When the Script Editor has opened, you should see the script editor (1), the output panel (2) below the editor, | + | |
- | + | ||
- | </ | + | |
- | <WRAP column half> | + | |
- | + | ||
- | ~~ Image of Scripting instrument w/ sections outlined & numbered ~~ | + | |
- | + | ||
- | </ | + | |
- | </ | + | |
- | + | ||
- | ---- | + | |
- | + | ||
- | ==== 2. Using the Script Editor ==== | + | |
- | + | ||
- | //This section walks through how to use the script editor// | + | |
- | + | ||
- | <WRAP group> | + | |
- | <WRAP column half> | + | |
- | + | ||
- | === 2.1 Hardware Setup === | + | |
- | To demonstrate the Script Editor, the //Scope// and //Wavegen// instruments will be used. | + | |
- | + | ||
- | First, connect the <test & measurement> scope channel 1 pin (orange wire) to the device' | + | |
- | + | ||
- | </WRAP> | + | |
- | <WRAP column half> | + | |
- | + | ||
- | FIXME image | + | |
- | + | ||
- | </WRAP> | + | |
- | </ | + | |
- | + | ||
- | ---- | + | |
- | + | ||
- | <WRAP group> | + | |
- | <WRAP column half> | + | |
- | + | ||
- | === 2.2 Software Setup === | + | |
- | Before the //Script Editor// can make use of the instruments, | + | |
- | + | ||
- | </ | + | |
- | <WRAP column half> | + | |
- | + | ||
- | {{: | + | |
- | + | ||
- | </ | + | |
- | </ | + | |
- | + | ||
- | ---- | + | |
- | + | ||
- | <WRAP group> | + | |
- | <WRAP column half> | + | |
- | + | ||
- | === 2.3 Running the Script === | + | |
- | + | ||
- | Return to the Scripts page by clicking on its tab in the bar at the top of the screen. Click the " | + | |
- | + | ||
- | Print statements and uncaught errors are shown in the output panel. | + | |
- | + | ||
- | </ | + | |
- | <WRAP column half> | + | |
- | + | ||
- | {{: | + | |
- | + | ||
- | </ | + | |
- | </ | + | |
- | + | ||
- | <WRAP group> | + | |
- | <WRAP column half> | + | |
- | + | ||
- | === 2.4 Debugging === | + | |
- | + | ||
- | Debugging scripts is done inside WaveForms itself, allowing the user to step through the execution of the script. The debugger is accessed by clicking the " | + | |
- | + | ||
- | </ | + | |
- | <WRAP column half> | + | |
- | + | ||
- | FIXME image: Debugger | + | |
- | + | ||
- | </ | + | |
- | </ | + | |
- | + | ||
- | ==== Next Steps ==== | + | |
- | + | ||
- | If voltage values seen in the // | + | |
- | + | ||
- | For more guides on how to use both the Digilent <test & measurement device> and WaveForms, return to the device' | + | |
- | + | ||
- | For technical support, please visit the **Scopes and Instruments** section of the Digilent Forums. FIXME link | + | |
- | + | ||
- | {{tag>analog-discovery-studio tutorial}} | + |