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/06/10 20:11] – 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> | |
- | {{: | + | ~~NOSEMANTIC~~ |
- | + | {{tag>redirect}} | |
- | ===== Introduction ===== | + | |
- | This guide explains the use of the // | + | |
- | ---- | + | |
- | ===== Prerequisites ===== | + | |
- | * A Digilent Test & Measurement Device | + | |
- | * A Computer with WaveForms Software Installed | + | |
- | + | ||
- | ---- | + | |
- | + | ||
- | ==== 1. Opening the WaveGen ==== | + | |
- | + | ||
- | <WRAP group> | + | |
- | <WRAP column half> | + | |
- | == 1.1 == | + | |
- | Plug in your Test & Measurement Device, then start WaveForms and make sure your device is connected. | + | |
- | + | ||
- | If no device is connected to the host computer when WaveForms launches, the **Device Manager** will be launched. Make sure that the device is plugged in and turned on, at which point it will appear in the Device Manager' | + | |
- | + | ||
- | **Note: | + | |
- | + | ||
- | **Note:** //The Device Manager can be opened by clicking on the " | + | |
- | </ | + | |
- | <WRAP column half> | + | |
- | {{ : | + | |
- | </ | + | |
- | </ | + | |
- | ---- | + | |
- | <WRAP group>< | + | |
- | == 1.2 == | + | |
- | Once the Welcome page loads, in the instrument panel at the left side of the window, click on the **Script** button to open the //Script Editor// instrument. | + | |
- | </ | + | |
- | {{ : | + | |
- | </ | + | |
- | ---- | + | |
- | + | ||
- | <WRAP group> | + | |
- | <WRAP column half> | + | |
- | + | ||
- | === 1.3 === | + | |
- | When the Script Editor has opened, you should see the script | + | |
- | + | ||
- | </ | + | |
- | <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 column half> | + | |
- | + | ||
- | {{ : | + | |
- | + | ||
- | </ | + | |
- | </ | + | |
- | + | ||
- | ---- | + | |
- | + | ||
- | <WRAP group> | + | |
- | <WRAP column half> | + | |
- | + | ||
- | === 2.2 Software Setup === | + | |
- | Instruments must be opened in WaveForms before the //Script Editor// can make use of them. In WaveForms' | + | |
- | + | ||
- | </ | + | |
- | <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 | + | |
- | + | ||
- | </ | + | |
- | </ | + | |
- | + | ||
- | ---- | + | |
- | + | ||
- | ==== 3. Script Editor User Interface Overview ==== | + | |
- | ==== 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}} | + |