Differences

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

Link to this comparison view

learn:instrumentation:tutorials:analog-discovery-studio-using-cross-triggers [2019/08/01 20:44] – [3. Examples using Cross Triggering] Arthur Brownlearn:instrumentation:tutorials:analog-discovery-studio-using-cross-triggers [2022/10/04 11:38] (current) – external edit 127.0.0.1
Line 1: Line 1:
-====== Cross Triggering in WaveForms (Under Construction) ======+====== Using Cross Triggering (Page has Moved) ======
  
-==== Introduction ====+<WRAP round important 660px> 
 +This guide has been replaced by [[test-and-measurement:guides:waveforms-cross-triggers]], and is slated to be removed from the Digilent Wiki. Please update all bookmarks and saved links to the new location. 
 +</WRAP>
  
-This guide explores the use of cross-triggering between different instruments within WaveForms. Note that there are many applications and approaches to cross triggering beyond what will be covered in this guide. +{{tag>to-be-removed}}
- +
----- +
-==== Prerequisites ==== +
- +
-  * A Digilent Test & Measurement Device with Analog I/O and/or Digital I/O +
-    * **Note**: //Users without a device may still find this guide informative// +
-  * A Computer with [[reference:software:waveforms:waveforms-3:start|WaveForms]] Installed +
- +
----- +
-==== 1. What is a Trigger? ==== +
- +
-{{page>learn:instrumentation:tutorials:analog-discovery-studio-using-external-triggers#what_is_a_trigger}}  +
- +
-==== 2. What is Cross Triggering? ==== +
-In the general sense, cross triggering describes systems where multiple instruments - often different devices - share trigger events. This can mean that either both instruments capture the signal containing the trigger event, or that when one of the instruments detects the trigger event, it generates a signal to trigger the other instrument. +
- +
-This guide demonstrates how to perform cross triggering between multiple WaveForms instruments with a single Digilent Test & Measurement device. +
- +
----- +
-==== 3. Examples using Cross Triggering ==== +
-=== 3.1 Triggering a Scope Capture off of a Wavegen Trigger === +
-//This example demonstrates how using cross triggering makes it easier to change trigger sources across multiple instruments.// +
- +
- +
-If needed, power your Digilent Test and Measurement Device and turn it on, then connect the device to your computer. +
- +
-Connect the analog input channel 1 positive pin (1+, orange cable) to the waveform generator output channel 1 pin (W1, yellow cable). Then connect the analog input channel 1 negative pin (1-, orange and white cable) to ground (down arrow, black cable). Lastly, connect the external trigger 1 pin (TRIG 1, grey cable) to the digital input/output pin 0 (DIO 0, pink cable). +
- +
-The circuit achieved by these connections is a simple loopback, allowing the test and measurement device's waveform generator to provide a stimulus for its own oscilloscope, and to generate an external trigger with its digital I/O. +
- +
- +
-Launch WaveForms, then open the following instruments and apply the following changes to their settings: +
- +
-  - Open a new //[[learn:instrumentation:tutorials:analog-discovery-studio-waveform-generator:start|Wavegen]]// instrument. +
-    * Set the Channel //Synchronization// to //Independent// +
-    * Set the //Trigger// source to //Manual// +
-    * Set the //Wait// time to //none// +
-    * Set the //Run// time to //1 ms// +
-    * Set the //Repeat// count to //infinite// +
-    * Leave all other settings as their defaults +
-    * Click Channel 1's  Run button +
-  - Open a new //[[learn:instrumentation:tutorials:analog-discovery-studio-oscilloscope:start|Scope]]// instrument. +
-    * Set the Trigger //Mode// to //Repeated// and //Normal// +
-    * Set the Trigger //Source// to //Wavegen 1// +
-    * Set the //Time Position// to //0 s// +
-    * Set the //Time Base// to //1 ms/div// +
-    * Disable Channel 2 by unchecking its box +
-    * Leave all other settings as their defaults +
-    * Click the Run button +
-  - Open a new //[[learn:instrumentation:tutorials:analog-discovery-studio-digital-io|StaticIO]]// instrument. +
-    * Configure DIO 0 to be a button that outputs 0 when released, and 1 when pressed +
- +
-More information on how to use each of the instruments used in this example can be found in their respective "Using the ..." guides, linked above. +
- +
-FIXME tabbed/docking windows blurb +
- +
-FIXME screenshots +
- +
-Once the workspace is set up, you can now begin experimenting with the resulting system: +
- +
-Click the //Manual Trigger// button in the bottom left-hand corner of the WaveForms application to trigger the Wavegen instrument to output a signal once. The signal plays back so quickly that you will not see the Wavegen's state go from **Armed** to **Running** back to **Armed**. You will see the Scope's state go from **Armed** to **Trig'd** back to **Armed**, and the captured event will be displayed in the Scope's plot. +
- +
-Next, try modifying the Wavegen Trigger's //Wait// time field. Any value will work. Click the Manual Trigger button again. You will see the scope take a capture. Despite the changes, the captured signal will be placed at the same point in the plot. Modifying the Wavegen trigger's wait time also affects the Scope trigger: both instruments wait for that amount of time after the Manual Trigger to capture/generate the signal. +
- +
-Next, change the Wavegen Trigger's //Source// field to //External 1//. In the StaticIO instrument, click the button corresponding to DIO 0. You will observe that this button has the same behavior as the Manual Trigger. +
- +
-In conclusion, note that through each of these changes to the trigger configuration, the Scope trigger did not need to be reconfigured at all! +
- +
-=== 3.2 Triggering the Pattern Generator off of a Logic Trigger === +
-//Explain Me// +
- +
-=== 3.3 Advanced Demo: Using Multiple Instruments to Emulate a SPI Master and Slave === +
-//Explain Me// +
- +
-{{tag>tutorial analog-discovery-studio}}+