Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
test-and-measurement:guides:waveforms-script-editor [2022/03/04 02:28] – [Prerequisites] Keith M Kolmos | test-and-measurement:guides:waveforms-script-editor [2024/02/28 19:27] (current) – [Prerequisites] James Colvin | ||
---|---|---|---|
Line 3: | Line 3: | ||
~~TechArticle~~ | ~~TechArticle~~ | ||
- | {{reference:test-and-measurement: | + | {{test-and-measurement: |
===== Introduction ===== | ===== Introduction ===== | ||
Line 10: | Line 10: | ||
===== Prerequisites ===== | ===== Prerequisites ===== | ||
* A Digilent Test & Measurement Device compatible with WaveForms: | * A Digilent Test & Measurement Device compatible with WaveForms: | ||
+ | * [[test-and-measurement: | ||
* [[test-and-measurement: | * [[test-and-measurement: | ||
* [[test-and-measurement: | * [[test-and-measurement: | ||
+ | * [[test-and-measurement: | ||
+ | * [[test-and-measurement: | ||
* [[test-and-measurement: | * [[test-and-measurement: | ||
* [[test-and-measurement: | * [[test-and-measurement: | ||
Line 27: | Line 30: | ||
Plug in the Test & Measurement Device, then start WaveForms and make sure the device is connected. | Plug in the Test & Measurement Device, then start WaveForms and make sure the 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' | + | 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:** //" | ||
- | **Note:** //The Device Manager can be opened by clicking on the " | + | **Note:** //The Device Manager can be opened by clicking on the " |
</ | </ | ||
<WRAP column half> | <WRAP column half> | ||
- | {{ reference: | + | {{: |
</ | </ | ||
</ | </ | ||
Line 42: | Line 45: | ||
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. | 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. | ||
</ | </ | ||
- | {{ :learn:instrumentation: | + | {{:test-and-measurement:analog-discovery-3:waveforms-script-instrument.png? |
</ | </ | ||
---- | ---- | ||
Line 54: | Line 57: | ||
</ | </ | ||
<WRAP column half> | <WRAP column half> | ||
- | {{ :learn: | + | {{:test-and-measurement: |
</ | </ | ||
</ | </ | ||
Line 81: | Line 84: | ||
For the //Script Editor// to make use of the instruments, | For the //Script Editor// to make use of the instruments, | ||
</ | </ | ||
- | {{ : | + | {{ : |
</ | </ | ||
---- | ---- | ||
Line 89: | Line 92: | ||
Open the //Scope and Wavegen// example script, by selecting it from the **Example** dropdown. | Open the //Scope and Wavegen// example script, by selecting it from the **Example** dropdown. | ||
</ | </ | ||
- | {{ :learn: | + | {{:test-and-measurement:analog-discovery-3:open-scope-wavegen-script.png? |
</ | </ | ||
---- | ---- | ||
Line 131: | Line 134: | ||
More information on the functions and objects available in the //Script Editor// can be found in the in WaveForms' | More information on the functions and objects available in the //Script Editor// can be found in the in WaveForms' | ||
</ | </ | ||
- | {{ :learn:instrumentation: | + | {{:test-and-measurement:analog-discovery-3:script-help-tab.png? |
</ | </ | ||
---- | ---- | ||
Line 142: | Line 145: | ||
Print statements and uncaught errors are shown in the //Output// panel. | Print statements and uncaught errors are shown in the //Output// panel. | ||
</ | </ | ||
- | {{:learn: | + | {{:test-and-measurement: |
</ | </ | ||
---- | ---- | ||
Line 151: | Line 154: | ||
Debugging is done inside WaveForms itself, allowing the user to step through the execution of the script. The debugger is accessed by clicking the Debug ({{: | Debugging is done inside WaveForms itself, allowing the user to step through the execution of the script. The debugger is accessed by clicking the Debug ({{: | ||
</ | </ | ||
- | {{: | + | {{: |
</ | </ | ||
Line 176: | Line 179: | ||
Open the //Protocol UART// example script, by selecting it from the **Example** dropdown. | Open the //Protocol UART// example script, by selecting it from the **Example** dropdown. | ||
</ | </ | ||
- | {{ :learn:instrumentation: | + | {{:test-and-measurement:analog-discovery-3:open-protocol-script-example.png? |
</ | </ | ||
---- | ---- | ||
Line 207: | Line 210: | ||
More information on the functions and objects available in the //Script Editor// can be found in the in WaveForms' | More information on the functions and objects available in the //Script Editor// can be found in the in WaveForms' | ||
</ | </ | ||
- | {{ :learn:instrumentation: | + | {{:test-and-measurement:analog-discovery-3:script-help-tab.png? |
</ | </ | ||
---- | ---- | ||
Line 262: | Line 265: | ||
**File** is used to open an existing WaveForms //Script Editor// project, save the current //Script Editor// project, or close the //Script Editor// | **File** is used to open an existing WaveForms //Script Editor// project, save the current //Script Editor// project, or close the //Script Editor// | ||
</ | </ | ||
- | {{:learn: | + | {{:test-and-measurement: |
</ | </ | ||
Line 268: | Line 271: | ||
**Edit** contains buttons for Undo and Redo, as well as options for enabling shortcuts for code completion and finding and replacing. | **Edit** contains buttons for Undo and Redo, as well as options for enabling shortcuts for code completion and finding and replacing. | ||
</ | </ | ||
- | {{ reference: | + | {{: |
</ | </ | ||
Line 274: | Line 277: | ||
**Control** accesses the Debug, Run, Stop and Abort actions. | **Control** accesses the Debug, Run, Stop and Abort actions. | ||
</ | </ | ||
- | {{:learn: | + | {{:test-and-measurement: |
</ | </ | ||
Line 280: | Line 283: | ||
**View** has options to enable the Output panel and a plotting window. | **View** has options to enable the Output panel and a plotting window. | ||
</ | </ | ||
- | {{ reference: | + | {{: |
</ | </ | ||
+ | <WRAP group>< | ||
The **Window** menu can be used to access other instruments, | The **Window** menu can be used to access other instruments, | ||
+ | </ | ||
+ | {{: | ||
+ | </ | ||
---- | ---- | ||
Line 302: | Line 309: | ||
<WRAP column half> | <WRAP column half> | ||
- | {{:learn: | + | {{:test-and-measurement: |
</ | </ | ||
Line 317: | Line 324: | ||
<WRAP column half> | <WRAP column half> | ||
- | {{:learn: | + | {{:test-and-measurement: |
</ | </ | ||
Line 332: | Line 339: | ||
</ | </ | ||
<WRAP column half> | <WRAP column half> | ||
- | {{ :learn: | + | {{:test-and-measurement:analog-discovery-3: |
</ | </ | ||
</ | </ | ||
Line 342: | Line 349: | ||
For more information on WaveForms visit the [[software: | For more information on WaveForms visit the [[software: | ||
- | For technical support, please visit the [[https:// | + | For technical support, please visit the [[https:// |