Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
learn:instrumentation:tutorials:analog-discovery-studio-script-editor:start [2019/05/31 19:57] – [2. Using the Script Editor] Andrew Holzerlearn: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) ====== 
- +~~REDIRECT>test-and-measurement/guides/waveforms-script-editor~~ 
-{{:learn:instrumentation:tutorials:ad2-waveform-generator:wfg2.png?800|}} +~~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> +
-<WRAP column half> +
- +
-FIXME image +
- +
-</WRAP> +
-</WRAP> +
- +
----- +
- +
-<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> +
-<WRAP column half> +
- +
-~~ Image showing how to open Script Editor ~~ +
- +
-</WRAP> +
-</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, and the control toolbar (3) at the top. +
- +
-</WRAP> +
-<WRAP column half> +
- +
-~~ Image of Scripting instrument w/ sections outlined & numbered ~~ +
- +
-</WRAP> +
-</WRAP> +
- +
----- +
- +
-==== 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's wavegen channel 1 output pin (yellow wire). For devices that use differential input channels, make sure to connect the scope channel 1 negative pin (orange wire with white stripes) to the ground pin associated with wavegen channel 1 (black wire). +
- +
-</WRAP> +
-<WRAP column half> +
- +
-FIXME image +
- +
-</WRAP> +
-</WRAP> +
- +
----- +
- +
-<WRAP group> +
-<WRAP column half> +
- +
-=== 2.2 Software Setup ===  +
-Before the //Script Editor// can make use of the instruments, they must be opened in WaveForms. In WaveForms' Welcome tab, open the //Scope// instrument, then open the //Wavegen// instrument. +
- +
-</WRAP> +
-<WRAP column half> +
- +
-{{:learn:instrumentation:tutorials:analog-discovery-studio-script-editor:waveforms-script-editor-instruments.png?600|}} +
- +
-</WRAP> +
-</WRAP> +
- +
----- +
- +
-<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 "Run" ({{:learn:instrumentation:tutorials:waveforms-buttons:waveforms-run.png?nolink}}) button to start running the script. +
- +
-Print statements and uncaught errors are shown in the output panel. +
- +
-</WRAP> +
-<WRAP column half> +
- +
-{{:learn:instrumentation:tutorials:analog-discovery-studio-script-editor:waveforms-script-editor-output.png?600|}} +
- +
-</WRAP> +
-</WRAP> +
- +
-<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 "Debug" ({{:learn:instrumentation:tutorials:waveforms-buttons:waveforms-debug.png?nolink}}) button, which will open a new window with the Qt debugger tool. +
- +
-</WRAP> +
-<WRAP column half> +
- +
-FIXME image: Debugger +
- +
-</WRAP> +
-</WRAP> +
- +
-==== Next Steps ==== +
- +
-If voltage values seen in the //Voltmeter// are significantly different from the expected voltage output of the //Supplies//, please calibrate the device by following the **Calibration Guide**. FIXME link +
- +
-For more guides on how to use both the Digilent <test & measurement device> and WaveForms, return to the device's Resource Center, linked from the **Test and Measurement** page. FIXME link +
- +
-For technical support, please visit the **Scopes and Instruments** section of the Digilent Forums. FIXME link +
- +
-{{tag>analog-discovery-studio tutorial}}+