Buy 410-321 - DIGILENT - Analog Discovery 2 USB Oscilloscope, 2 Analogue, 30 MHz, 100 MSPS at element14. Order 410-321 now! Great prices with fast delivery on DIGILENT products.
Hardware components | |||||
| × | 1 | |||
Software apps and online services | |||||
| |||||
|
Story
In this tutorial, we will go over how to connect an Analog Discovery 2 USB Oscilloscope to LabVIEW. To do so we will be using a LabVIEW project I made called LabForms. This project lets you access the analog scope and wavegen functionalities of the Analog Discovery through LabVIEW. The LabVIEW code uses the LabVIEW driver for the Analog Discovery 2. In this tutorial I also walk you through the Labforms user interface, the goal of this project was to create a project similar to Digilent Waveforms in LabVIEW.
Step 1: Materials
Hardware
Software
- WaveForms version 2.6.2 or later
NOTE: Installing LabVIEW requires you create an NI account. Your LabVIEW installation and any NI software keys you use will be tied to this account.
Step 2: Software Setup
Install LabVIEW:
- Installing LabVIEW will allow you to both run and edit the LabForms project.
Download LabForms2.vi (attached below):
- Install WaveForm
- Download and install the LabVIEW driver for the Analog Discovery 2
Step 3: AD2 Setup
- Using some of the jumper pins supplied with the Analog Discovery to connect the Scope Channel 1 Positive (Orange Wire labeled “1+” ) to Waveform Generator 1 Positive (Yellow Wire labeled “W1”).
- Next, attach Scope Channel 2 Positive (Blue Wire labeled “2+” ) to Waveform Generator 2 Positive (Yellow and White Wire labeled “W2”).
- Attach Scope Channel 1 Negative(Orange and White Wire Labeled '1-') and Scope Channel 2 Negative (Blue and White Wire Labeled '2-') to the 2 ground wires(Black wires labeled with a downward arrow).
- Plug the Analog Discovery into one of your PC’s USB port.
Note: It is important you plug the Analog Discovery into your PCs USB port before you proceed to the next step.
Step 4: Waveform Generator
The Wavegen tab allows you to generate electronic waveforms. The resulting waveforms can be input into a device being tested and analyzed with the Oscilloscope as they progress through the device. This is useful for confirming the proper operation of the device or pinpointing a fault in the device.
Channels: selects the channel(s) to be controlled. For every channel you select, a configuration form and a signal preview plot are displayed.
- Channel 1 is Waveform Generator channel 1
- Channel 2 is Waveform Generator channel 2.
Step 5: Power Supplies
This instrument allows you to enable the device power supplies.
Positive/Negative Supply button: the enable switches for each supply.
![Road Road](/uploads/1/2/5/5/125581961/182410885.jpg)
- Rdy is shown when the master switch is on and the supply is also enabled.
- OFF is shown when the supply is not enabled.
![Roadtest The Digilent Analog Discovery 2 Labview Home Bundle Roadtest The Digilent Analog Discovery 2 Labview Home Bundle](/uploads/1/2/5/5/125581961/944369415.png)
- Master Enable is ON/OFF button: the master ON/OFF switch for the power supplies.
Step 6: Oscilloscope
An oscilloscope (or “scope”) allows you to view signal voltages, typically in a two-dimensional graph where one or more electrical potential differences (on the vertical axis) are plotted as a function of time or of some other voltage (on the horizontal axis).
Channels
Use the real channel (vertical controls) to position and scale the waveforms vertically using the offset and range controls for each channel.
1 / 2
- Offset: The offset (vertical position) control lets you move the waveform up or down to exactly where you want it on the screen. The offset is the voltage difference between the center line of the oscilloscope screen and the actual ground. This difference is generated by an internal offset voltage source.
- Range: The range (volts/division) controls to determine the vertical scale of the graph drawn on the oscilloscope screen. The volts/div setting is a scale factor. For example, if the volts/div setting is 2 volts, then each of the ten vertical divisions represents 2 volts, and the entire screen can show 20 volts from bottom to top. If the setting is 0.5 volts/div, the screen can display 5 volts from bottom to top, and so on. The maximum voltage you can display on the screen is the volts/div setting multiplied by the number of vertical divisions.
Time group
Base: The time base (seconds/division) setting from the channel configuration toolbar lets you select the rate at which the waveform is drawn across the screen. This setting is a scale factor. For example, if the setting is 1 ms, each horizontal division represents 1 ms and the total screen width represents 10 ms (ten divisions). Changing the sec/div setting allows you to visualize longer or shorter time intervals of the input signal.
Sample Rate: Adjusts the sampling frequency.
Triggers
Trigger Hysteresis: specifies, in volts, a window below Trigger level.
- If the edge is rising, the input voltage must pass below Trigger Level minus Trigger Hysteresis before the input voltage is recognized as a trigger.
- Hysteresis can improve measurement accuracy when the signal contains noise or jitter.
- Trigger level: specifies, in volts, the levels at which to trigger
- Trigger Instance: specifies the trigger instance. This parameter accepts only A as an input
- Trigger Slope: Specifies on which edge of the source signal to trigger
Cursors
The Cursors are used to measure the amplitude, to indicate certain places on the waveform. Using delta cursors, you can make measurements that deal with power change with frequency or time.
These can be added by switching on the 'Cursor 1' or 'Cursor 2' switches' above the plot. The first cursor is by default added as a normal cursor, if you turn on both cursors you will not only see the X and Y position of each cursor, but you will also see the Delta, showing the difference between the position of each cursor. The cursors position can be modified by mouse drag.
Step 7: The End
Thank you for reading my tutorial, if you are interested in making this project yourself but don't have the right supplies you can purchase LabVIEW 2014 home bundle for only 50 dollars and if you are a student the Analog Discovery 2 has an academic discount available. Please comment with any questions or comments you may have.
Read moreCredits
Austin Stanton
I graduated from Washington State University with a degree in Bioengineering.
Hardware components | |||||
| × | 1 | |||
Software apps and online services | |||||
|
Story
In this tutorial, we will go over how to connect an Analog Discovery 2 USB Oscilloscope to LabVIEW. To do so we will be using a LabVIEW project called LabForms 2.0. The project lets you access the analog scope and wavegen functionalities of the Analog Discovery through LabVIEW. The LabVIEW code and user manual for the project were both written by Mircea Dabacan, the general manager of Diligent Romania.
Step 1: Materials
1 / 2
Hardware
Software
- WaveForms version 2.6.2 or later
- LabVIEW (versions 2013 and 2014 have been tested to work so far)
- LabView Run-Time Engine 2105 (This is an optional alternative for the LabVIEW editor, see next step for details.)
NOTE: Installing LabVIEW requires you create an NI account. Your LabVIEW installation and any NI software keys you use will be tied to this account.
Step 2: Installing the software
Choose one of the NI Software options to Install Option 1: Install LabVIEW
- installing LabVIEW will allow you to both run and edit the LabForms project.
Option 2: Install LabVIEW Run-Time Engine 2105 Installing the Runtime Engine will allow you to run the LabForms.exe without LabVIEW installed.
- Choosing this option will prevent you from opening or editing the LabForms project.
- Install WaveForms: Link
- Download LabForms 2.0 (attached below) and unzip the folder anywhere.
Step 3: Wiring the Analog Discovery for testing
1 / 2
Using some of the jumper pins supplied with the Analog Discovery to connect the Scope Channel 1 Positive (Orange Wire labeled “1+” ) to Waveform Generator 1 Positive (Yellow Wire labeled “W1”). Plug the Analog Discovery into one of your PC’s USB port.
Note: It is important you plug the Analog Discovery into your PCs USB port before you proceed to the next step. If you don't, the analog discovery may not show up in the LabForms device drop down list.
Step 4: Running LabForms
1 / 3
Based on what software you decided to install in step 2, do one of the following. Option 1: Run LabForms Project using LabVIEW (How to GIF) Option 2: Run LabForms Project using LabForms.exe (How to GIF 2).
Open the Analog Scope front Panel and begin recording incoming signals. Open the Wavegen Front Panel and begin generating outgoing signals. (How to GIF 3)
- For more details about how the controls of the front panel work, refer to the LabForms user manual.
- Once you are finished hit the stop buttons for all running front panels.
Note: It is important you hit the stop buttons and DO NOT just exit out the LabForms windows. If you do not hit the stop buttons, your PC thinks LabForms is still using your Analog Discovery even thought LabForms is closed. If you did exit out of the LabForms windows without hitting the stop buttons, try re-plugging in your device. This should reset the software permissions.
Thank you for reading my tutorial, feel free to comment with any questions you may have.
Read moreAustin Stanton
I graduated from Washington State University with a degree in Bioengineering.