Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| test-and-measurement:guides:waveforms-external-triggers [2022/09/12 14:13] – changed forum.digilentinc.com to forum.digilent.com jeff.greenberg_ni.com | test-and-measurement:guides:waveforms-external-triggers [2022/10/04 11:38] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ======Using External Triggers====== | ||
| + | ~~TechArticle~~ | ||
| + | |||
| + | ===== Introduction ===== | ||
| + | This guide explores the use of external triggers for use with various WaveForms tools. Note that there are many applications and approaches to using external triggers beyond what will be covered in this guide. | ||
| + | ---- | ||
| + | ===== Inventory ===== | ||
| + | * A Digilent Test & Measurement Device with Analog and/or Digital Input and Output Channels, and External Trigger Capabilities: | ||
| + | * [[test-and-measurement: | ||
| + | * [[test-and-measurement: | ||
| + | * [[test-and-measurement: | ||
| + | * [[test-and-measurement: | ||
| + | * [[test-and-measurement: | ||
| + | * MTE Cables, BNC Oscilloscope Probes, and/or BNC to Minigrabber Clip Cables, depending on the device you are using. | ||
| + | * A Computer with WaveForms Installed | ||
| + | * Installers for each supported operating system (Windows, Mac, and Linux) can be found here: [[https:// | ||
| + | |||
| + | | ||
| + | |||
| + | //Before discussing any examples, it is important to understand what a trigger is and why a trigger is helpful. The following sections will define triggers as an acquisition tool and describe what triggers do to make signal analysis more effective.// | ||
| + | |||
| + | ==== 1. What is a Trigger? | ||
| + | //What is a trigger? How is one set up?// | ||
| + | |||
| + | --> Click Here to Learn the Answer# | ||
| + | |||
| + | - **Trigger**: | ||
| + | - **Trigger Systems**: A trigger system works with an oscilloscope, | ||
| + | - **Trigger Types**: There are many different types of triggers, all having their own strengths, depending on the application, | ||
| + | - **Trigger Modes**: There are a few different modes that a trigger can operate under and these modes determine if the oscilloscope will display a waveform if a trigger is not detected. This tutorial covers “normal” and “auto” modes. In **normal** mode, the acquisition tool only collects voltage data over some time period (also called a sweep) if the input signal satisfies the trigger definition. Otherwise, the acquisition tool will either display a blank screen or remain static displaying the last acquisition. In **auto** mode, the acquisition tool sweeps with or without a trigger and uses a timer to sweep if there is no input signal. | ||
| + | - **Trigger Holdoff**: Trigger holdoff is an adjustable time period in which the acquisition instrument cannot generate a trigger. This can be very helpful with complex waveforms that might have multiple points that satisfy the trigger conditions within the desired acquisition data set allowing the trigger to properly display the waveform as needed. | ||
| + | |||
| + | <-- | ||
| + | |||
| + | ==== 2. How and Why Are Triggers Used? ==== | ||
| + | //Once set up, what does the trigger do to incoming data? How does this help the user?// | ||
| + | |||
| + | --> Click Here to Learn the Answer# | ||
| + | |||
| + | Triggers act like a comparator. With default settings or a user-defined voltage level and slope (rising edge, falling edge, or either), when the input to the trigger system matches these settings, the trigger system sends a pulse to its output. This pulse is monitored by the acquisition instrument and another sub-system called a time-based interpolator. | ||
| + | |||
| + | When the acquisition instrument sees this pulse from the trigger system, it begins to digitize, process, store, and measure this data. Before this waveform data can be displayed on the screen, the time-based interpolator figures out what address in the waveform buffer matches the defined trigger point and tells the acquisition instrument to display this data at time t=0.0 seconds. | ||
| + | |||
| + | By repeatedly displaying similar sections of the input signal at a specified trigger point, a trigger helps display a dynamic waveform as a static image. Otherwise, the waveform would just race across the display in a way that would be hard to interpret and impossible to take measurements with. | ||
| + | |||
| + | Triggers can also be helpful for capturing data around or locating an infrequent event. Some examples include digital pulses that are: missing, irregular in width, or not reaching valid logic high or low levels. | ||
| + | |||
| + | <-- | ||
| + | |||
| + | ==== 3. What is an External Trigger? | ||
| + | |||
| + | //What makes a trigger " | ||
| + | |||
| + | --> Click Here to Learn the Answer# | ||
| + | |||
| + | An external trigger functions the same as any other trigger, such as those in WaveForms' | ||
| + | |||
| + | <-- | ||
| + | |||
| + | ---- | ||
| + | |||
| + | |||
| + | ==== 4. Examples using External Triggers==== | ||
| + | Below are a few examples of applications using an external trigger. These are not the only uses for external triggers but merely a showcase of how an external trigger might be used in practice and to allude to further applications. Two examples are presented: | ||
| + | * [[# | ||
| + | * [[# | ||
| + | |||
| + | |||
| + | ---- | ||
| + | |||
| + | ===4.1 Oscilloscope External Trigger=== | ||
| + | //This is an example of using an analog signal to trigger the oscilloscope. Once set up, when pushed, the button in this example will generate a trigger.// | ||
| + | |||
| + | ==4.1.1 Hardware Setup== | ||
| + | <columns 100% 60% 20% 20%> | ||
| + | Set up the following hardware as shown in the schematic and diagram to the right. //Trig 1// refers to the External Trigger 1 pin on the Digilent Test and Measurement Device. The resistors are for limiting the current into and out of the WaveGen, Scope, and Trigger pins. While a push button was used, its behavior could be emulated by connecting and disconnecting a resistor or jumper wire. | ||
| + | |||
| + | Components: | ||
| + | * Push button | ||
| + | * 220 ohm resistor (x2) | ||
| + | * Jumper wires | ||
| + | |||
| + | See the dropdowns below for additional figures of the circuit setup, with BNC and MTE cables. | ||
| + | |||
| + | **Note:** //If using BNC cables for analog input, refer to the [[waveforms-oscilloscope]] guide for additional information on setup, including selecting an attenuation factor in the WaveForms application.// | ||
| + | |||
| + | < | ||
| + | {{ : | ||
| + | < | ||
| + | {{ : | ||
| + | </ | ||
| + | |||
| + | --> Hardware Setup: BNC Cables # | ||
| + | {{ reference: | ||
| + | <-- | ||
| + | |||
| + | --> Hardware Setup: MTE Cables # | ||
| + | {{ reference: | ||
| + | <-- | ||
| + | |||
| + | ---- | ||
| + | <WRAP group> <WRAP column half> | ||
| + | ==4.1.2 Software Setup== | ||
| + | This software setup section is streamlined to focus on the external trigger application. For more detailed help with any of the following WaveForms instruments, | ||
| + | |||
| + | **Note:** //In order to show each of the opened instruments on the screen at once, click on the Docking Windows button ({{learn: | ||
| + | |||
| + | - Open the // | ||
| + | - Open the // | ||
| + | * Change the **Trigger Type** drop-down menu from " | ||
| + | * Change the **Source** drop-down menu from " | ||
| + | - Open the // | ||
| + | - Click the green " | ||
| + | |||
| + | Refer to the image to the right to see what the workspace will look like after setup is complete. | ||
| + | </ | ||
| + | {{ : | ||
| + | </ | ||
| + | ---- | ||
| + | |||
| + | <WRAP group> | ||
| + | <WRAP column half> | ||
| + | ==4.1.3 Scope External Trigger Operation== | ||
| + | Once the hardware and software are set up properly, pushing down on the pushbutton will send 3.3V to the External Trigger 1 pin, generating a trigger for acquisition. The trigger point should change each time the button is pressed since no condition is set to be displayed at t=0.0 seconds and the WaveGen is constantly running. The sine wave should be displayed statically in the //Scope// plot plane and update with every push of the button. | ||
| + | </ | ||
| + | <WRAP column half> | ||
| + | {{ : | ||
| + | </ | ||
| + | </ | ||
| + | ---- | ||
| + | |||
| + | |||
| + | <WRAP group> | ||
| + | <WRAP column half> | ||
| + | ===4.2 Logic Analyzer External Trigger=== | ||
| + | //This is an example of using a digital signal to trigger the logic analyzer. A clock signal from a DIO pin is used to periodically generate a trigger.// | ||
| + | |||
| + | ==4.2.1 Hardware Setup== | ||
| + | The hardware used in this example is a simple loopback circuit. Digital input/ | ||
| + | |||
| + | Connect the External Trigger 1 to the DIO0 pin. | ||
| + | |||
| + | DIO1 will also be used, but since Digilent Test and Measurement devices support capturing the state of a digital output pin as if it was a digital input, it will not be connected to anything. | ||
| + | |||
| + | These connections are detailed in the diagram to the right. | ||
| + | </ | ||
| + | <WRAP column half> | ||
| + | {{ : | ||
| + | </ | ||
| + | </ | ||
| + | ---- | ||
| + | <WRAP group> | ||
| + | <WRAP column half> | ||
| + | ==4.2.2 Software Setup== | ||
| + | The following software setup is streamlined to focus on the External Trigger application. For more detailed help with the following instruments, | ||
| + | |||
| + | **Note:** //In order to show each of the opened instruments on the screen at once, click on the Docking Windows button ({{learn: | ||
| + | |||
| + | - Open the // | ||
| + | * Add Signals DIO0 and DIO1 | ||
| + | * Change DIO0 type to " | ||
| + | * Change DIO1 type to " | ||
| + | - Open the // | ||
| + | * Add Signals DIO0 and DIO1 | ||
| + | * In the Control Bar, change the trigger **Type** drop-down menu to " | ||
| + | - Click the green " | ||
| + | |||
| + | Refer the image to the right to see what the workspace will look like after setup is complete. | ||
| + | </ | ||
| + | <WRAP column half> | ||
| + | {{ : | ||
| + | </ | ||
| + | </ | ||
| + | ---- | ||
| + | <WRAP group> | ||
| + | <WRAP column half> | ||
| + | ==4.2.3 Logic External Trigger Operation== | ||
| + | Viewing the //Logic// instrument, the // | ||
| + | |||
| + | The // | ||
| + | |||
| + | **Note**: //This is not a manually operated trigger whereas the previous example is.// | ||
| + | </ | ||
| + | <WRAP column half> | ||
| + | {{ : | ||
| + | </ | ||
| + | </ | ||
| + | ---- | ||
| + | |||
| + | ==== Next Steps ==== | ||
| + | |||
| + | More examples of External Triggering being used are covered in the [[test-and-measurement: | ||
| + | |||
| + | For more guides on how to use the Digilent Test and Measurement Device, return to the device' | ||
| + | |||
| + | For more information on WaveForms visit the [[software: | ||
| + | |||
| + | For technical support, please visit the [[https:// | ||

