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-using-cross-triggers [2019/08/05 21:57] – Arthur Brown | learn:instrumentation:tutorials:analog-discovery-studio-using-cross-triggers [2021/05/14 23:07] (current) – ↷ Links adapted because of a move operation Arthur Brown | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Cross Triggering | + | ====== |
- | ==== Introduction ==== | + | <WRAP round important 660px> |
+ | This guide has been replaced by [[test-and-measurement: | ||
+ | </ | ||
- | 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: | + | |
- | + | ||
- | ---- | + | |
- | ==== 1. What is a Trigger? ==== | + | |
- | + | ||
- | {{page>learn: | + | |
- | + | ||
- | ==== 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 | + | |
- | + | ||
- | 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 Cross Triggering between Instruments === | + | |
- | //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/ | + | |
- | + | ||
- | The circuit achieved by these connections is a simple loopback, allowing the test and measurement device' | + | |
- | + | ||
- | + | ||
- | Launch WaveForms, then open the following instruments and apply the following changes to their settings: | + | |
- | + | ||
- | - Open a new // | + | |
- | * Set the Channel // | + | |
- | * Set the //Trigger// source to // | + | |
- | * Set the //Wait// time to //none// | + | |
- | * Set the //Run// time to //1 ms// | + | |
- | * Set the //Repeat// count to // | + | |
- | * Leave all other settings as their defaults | + | |
- | * Click Channel 1' | + | |
- | - Open a new // | + | |
- | * Set the Trigger //Mode// to // | + | |
- | * 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 // | + | |
- | * 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/ | + | |
- | + | ||
- | 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' | + | |
- | + | ||
- | Next, try modifying the Wavegen Trigger' | + | |
- | + | ||
- | Next, change the Wavegen Trigger' | + | |
- | + | ||
- | In conclusion, note that through each of these changes to the trigger configuration, | + | |
- | + | ||
- | === 3.2 Cross Triggering between Devices === | + | |
- | //This example demonstrates a simple approach to comparing data captured using two devices at once// | + | |
- | + | ||
- | == Hardware == | + | |
- | Make the following connections between the two devices' | + | |
- | * Connect each device' | + | |
- | * Connect each device' | + | |
- | * Connect a ground pin from each device to a ground pin from the other device (down arrow, black). | + | |
- | * Connect each device' | + | |
- | + | ||
- | == Software == | + | |
- | - Open two instances of WaveForms, | + | |
- | - Connect two Digilent Test and Measurement devices to your computer. | + | |
- | - Use each WaveForms instance' | + | |
- | - In one WaveForms instance, henceforth referred to as the " | + | |
- | * Scope | + | |
- | * Time Base: 500us/div | + | |
- | * Trigger Mode: Repeaated / Normal | + | |
- | * Trigger Source: External 1 | + | |
- | * Trigger Condition: Rising | + | |
- | * Disable Channel 2 | + | |
- | * Wavegen | + | |
- | * Channel Synchronization: | + | |
- | * Channel 1 Trigger: External 1 | + | |
- | * Channel 1 Wait Time: none | + | |
- | * Channel 1 Run Time: 2ms | + | |
- | * Channel 1 Simple Wave Frequency: 1kHz | + | |
- | * Channel 1 Simple Wave Type: Sine | + | |
- | * Script | + | |
- | * Download [[import_capture.js]], | + | |
- | * Static IO | + | |
- | * Configure DIO 0 to be a button that outputs 0 when released and 1 when pressed. | + | |
- | - In the other WaveForms instance, henceforth referred to as the " | + | |
- | * Scope | + | |
- | * Time Base: 500us/div | + | |
- | * Trigger Mode: Repeaated / Normal | + | |
- | * Trigger Source: External 1 | + | |
- | * Trigger Condition: Rising | + | |
- | * Disable Channel 2 | + | |
- | * Wavegen | + | |
- | * Channel Synchronization: | + | |
- | * Channel 1 Trigger: External 1 | + | |
- | * Channel 1 Wait Time: none | + | |
- | * Channel 1 Run Time: 2ms | + | |
- | * Channel 1 Simple Wave Frequency: 1kHz | + | |
- | * Channel 1 Simple Wave Type: Square | + | |
- | * Script | + | |
- | * Download [[export_capture.js]], | + | |
- | + | ||
- | == Operation == | + | |
- | The system above connects the Wavegen and Scope instruments of the two devices together, so that all are triggered by the same external trigger, sourced from the primary device' | + | |
- | + | ||
- | To capture data, first, click run in each Scope and Wavegen instrument. Then, click the primary instance' | + | |
- | + | ||
- | To view data captured by each device in the same plot, click the Run button in the secondary instance' | + | |
- | + | ||
- | FIXME //further explanation of why this is cool// | + | |
- | FIXME // | + | |
- | + | ||
- | === Next Steps === | + | |
- | + | ||
- | FIXME //standard blurb// | + | |
- | + | ||
- | {{tag> | + |