Differences

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

Link to this comparison view

test-and-measurement:analog-discovery-2:getting-started-guide [2022/09/08 20:35] – changed forum.digilentinc.com to forum.digilent.com jeff.greenberg_ni.comtest-and-measurement:analog-discovery-2:getting-started-guide [2022/10/04 11:38] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +====== Analog Discovery 2 - Getting Started Guide ======
  
 +~~TechArticle~~
 +
 +{{ :learn:instrumentation:tutorials:analog-discovery-2-getting-started:analog_discovery_2-obl-600.png?nolink&400 |Analog Discovery 2}}
 +
 +----
 +===== Unboxing =====
 +
 +<WRAP group><WRAP column half>
 +Remove and discard the cardboard sleeve.
 +</WRAP><WRAP column half>
 +{{ :learn:instrumentation:tutorials:analog-discovery-2-getting-started-windows:analog_discovery_2-box-600.png?nolink&400 |Remove and discard the cardboard sleeve.}}
 +</WRAP></WRAP>
 +--------------
 +
 +<WRAP group><WRAP column half>
 +Open the reusable project box and take out your Analog Discovery 2.
 +  * Take note of the 30-pin connector, USB B-Micro connector, 2.5mm barrel jack connector for external power, and tough polycarbonate case.
 +</WRAP><WRAP column half>
 +{{ :learn:instrumentation:tutorials:analog-discovery-2-getting-started-windows:analog_discovery_2-obl-600.png?nolink&400 |Open the reusable project box and take out your Analog Discovery 2}}
 +</WRAP></WRAP>
 +--------------
 +
 +<WRAP group><WRAP column half>
 +Remove the accessories from the box.
 +  * Included with the Analog Discovery 2 are five 6 pin male headers, one USB B-micro cable, one ferrite cable snap on, and one 30-pin flywire assembly.
 +</WRAP><WRAP column half>
 +{{ :learn:instrumentation:tutorials:analog-discovery-2-getting-started-windows:analog_discovery_2-box_3-600.png?nolink&400 |Remove the accessories from the box.}}
 +</WRAP></WRAP>
 +--------------
 +
 +<WRAP group><WRAP column half>
 +Take out and discard the cardboard insert.
 +  * Behind it you will find a handy pin-out diagram that shows how the flywire assembly gives you access to the Analog Discovery 2's features.
 +  * Without the cardboard insert, your project box can now hold the Analog Discovery 2, its included accessories, and there's even room for more!
 +</WRAP><WRAP column half>
 +{{ :learn:instrumentation:tutorials:analog-discovery-2-getting-started-windows:4.png?nolink&400 |Cardboard insert with pinout diagram.}}
 +\\
 +\\
 +</WRAP></WRAP>
 +--------------
 +
 +==== Download and Install WaveForms ====
 +Digilent's WaveForms application provides a user interface to the Analog Discovery 2. Please download the appropriate WaveForms installer for the operating system (Windows, Linux, Mac) via the [[software:waveforms:waveforms-3:start|WaveForms Resource Center]]. Then click on the appropriate option below for OS-specific installation instructions.
 +
 +If WaveForms is already installed, please make sure that it is up to date.
 +
 +--> Installing WaveForms : Windows #
 +
 +<WRAP group>
 +<WRAP column half>
 +=== Open the Executable File ===
 +Open the executable file that you downloaded.
 +</WRAP>
 +<WRAP column half>
 +{{ :learn:instrumentation:tutorials:downloadwf.png?nolink&600 |}}
 +</WRAP>
 +</WRAP>
 +---------------
 +<WRAP group>
 +<WRAP column half>
 +=== Welcome ===
 +Launch the WaveForms installer, by clicking on it in the Downloads folder. Upon launching the WaveForms installer, the welcome page will be seen. Click **Next**.
 +</WRAP>
 +<WRAP column half>
 +{{ reference:test-and-measurement:analog-discovery-studio:gsg-install-summary.png?nolink |}}
 +</WRAP>
 +</WRAP>
 +------------
 +<WRAP group>
 +<WRAP column half>
 +=== License Agreement ===
 +Read the license agreement on this screen, then, if in agreement to it, click **I Agree** to continue.
 +</WRAP>
 +<WRAP column half>
 +{{ reference:test-and-measurement:analog-discovery-studio:gsg-install-license.png?nolink |}}
 +</WRAP>
 +</WRAP>
 +-----------------
 +<WRAP group>
 +<WRAP column half>
 +=== Choose Components ===
 +In the "Choose Components" screen, a list is presented of each of the things that can be installed. In order to use the Analog Discovery 2 with the WaveForms application, the Adept Runtime, WaveForms Runtime, and WaveForms Application are required.
 +  * The Adept Runtime allows WaveForms to communicate with the Analog Discovery 2, Analog Discovery, Analog Discovery Studio, Digital Discovery, and Electronics Explorer Board.
 +  * The WaveForms Runtime contains a library and device support files needed to run custom applications.
 +  * The WaveForms Application is the Digilent virtual instrumentation interface.
 +  * The WaveForms SDK is the software development kit for creating custom applications
 +**Note:** //Even with all components selected, the WaveForms install does not take much hard drive space (<200MB). Digilent recommends that all components are installed.//
 +</WRAP>
 +<WRAP column half>
 +{{ reference:test-and-measurement:analog-discovery-studio:gsg-install-components.png?nolink |}}
 +</WRAP>
 +</WRAP>
 +------------
 +<WRAP group>
 +<WRAP column half>
 +=== Shortcut Options ===
 +Click **Next**.
 +</WRAP>
 +<WRAP column half>
 +{{ reference:test-and-measurement:analog-discovery-studio:gsg-install-shortcuts.png?nolink |}}
 +</WRAP>
 +</WRAP>
 +-------------
 +<WRAP group>
 +<WRAP column half>
 +=== Choose Install Location ===
 +  * You'll need to choose an installation destination or just leave it at the default.
 +  * Click "Install".
 +</WRAP>
 +<WRAP column half>
 +{{ reference:test-and-measurement:analog-discovery-studio:gsg-install-location.png?nolink |}}
 +</WRAP>
 +</WRAP>
 +----------------
 +<WRAP group>
 +<WRAP column half>
 +=== Installing / Installation Complete ===
 +  * WaveForms will be installed as indicated by the progress bar.
 +  * Click "Next".
 +</WRAP>
 +<WRAP column half>
 +{{ reference:test-and-measurement:analog-discovery-studio:gsg-install-complete.png?nolink |}}
 +</WRAP>
 +</WRAP>
 +------------
 +<WRAP group>
 +<WRAP column half>
 +=== Complete ===
 +  * Check or uncheck the boxes to open WaveForms and the readme.
 +  * Click "Finish".
 +</WRAP>
 +<WRAP column half>
 +{{ reference:test-and-measurement:analog-discovery-studio:gsg-install-finish.png?nolink |}}
 +</WRAP>
 +</WRAP>
 +\\
 +<--
 +--> Installing WaveForms : Mac #
 +
 +<WRAP group>
 +<WRAP column half>
 +Expand your downloads and open the **.dmg** file that you have downloaded.
 +</WRAP>
 +<WRAP column half>
 +
 +{{ :learn:instrumentation:tutorials:analog-discovery-2-getting-started-mac:mac-step1.jpg?nolink |Open the DMG File.}}
 +</WRAP>
 +</WRAP>
 +----
 +<WRAP group><WRAP column half>
 +From the desktop, open the **WaveForms** drive.
 +</WRAP><WRAP column half>
 +{{ :learn:instrumentation:tutorials:analog-discovery-2-getting-started-mac:mac-step2.jpg?nolink |Open the New Drive.}}
 +</WRAP></WRAP>
 +----
 +<WRAP group><WRAP column half>
 +Drag the **WaveForms** icon into the **Applications** folder. \\
 +This will install the following components in Applications: 
 +  * **WaveForms Runtime** contains a library and device support files needed to run custom applications.
 +  * **WaveForms Application** is the Digilent virtual instrumentation interface.
 +  * **WaveForms SDK** is the software development kit for creating custom applications
 +</WRAP><WRAP column half>
 +{{ reference:test-and-measurement:analog-discovery-studio:getting-started-guide:mac-open-package-3.png?nolink |}}
 +</WRAP></WRAP>
 +----
 +
 +--> Install Drivers : Only for OS-X 10.13 or earlier#
 +<WRAP group>
 +<WRAP column half>
 +Double click the FTDI driver icon to start the installation process.\\
 +On MacOS (10.13) Sierra High and older versions the device driver should be installed to support Analog Discovery 1 & 2 and Digital Discovery devices.\\
 +On MacOS (10.14) Mojave, the device driver is not required. According to some reports, on new MacBook machines the device is not detected if the driver is installed, so uninstall the driver if the device does not connect.\\
 +</WRAP><WRAP column half>
 +{{ :learn:instrumentation:tutorials:analog-discovery-2-getting-started-mac:mac-step4.jpg?nolink |Open the FTDI Diver Install.}}
 +</WRAP></WRAP>
 +----
 +
 +<WRAP group><WRAP column half>
 +=== Launch Installer ===
 +Double click **DigilentFtdiDriver.pkg** to open the FTDI Driver Installer.
 +
 +</WRAP><WRAP column half>
 +{{ reference:test-and-measurement:analog-discovery-studio:getting-started-guide:mac-install-driver-1.png?nolink |}}
 +</WRAP></WRAP>
 +----
 +<WRAP group><WRAP column half>
 +The OS may block the launch of the **driver installer**. If this is the case, go into the System Preferences' Security and Privacy page and click **Open Anyway**.
 +</WRAP><WRAP column half>
 +{{ reference:test-and-measurement:analog-discovery-studio:getting-started-guide:mac-open-waveforms-security.png?nolink |}}
 +</WRAP></WRAP>
 +----
 +<WRAP group><WRAP column half>
 +=== Introduction ===
 +Click **Continue**.
 +</WRAP><WRAP column half>
 +{{ reference:test-and-measurement:analog-discovery-studio:getting-started-guide:mac-install-driver-2.png?nolink |}}
 +</WRAP></WRAP>
 +----
 +<WRAP group><WRAP column half>
 +=== Read Me ===
 +Click **Continue**.
 +</WRAP><WRAP column half>
 +{{ reference:test-and-measurement:analog-discovery-studio:getting-started-guide:mac-install-driver-3.png?nolink |}}
 +</WRAP></WRAP>
 +----
 +<WRAP group><WRAP column half>
 +=== License ===
 +Read the license, then if in agreement, click **Continue**, then click **Agree** in the popup.
 +</WRAP><WRAP column half>
 +{{ reference:test-and-measurement:analog-discovery-studio:getting-started-guide:mac-install-driver-4.png?nolink |}}
 +</WRAP></WRAP>
 +----
 +<WRAP group><WRAP column half>
 +=== Destination Select ===
 +Pick the users to install the drivers for, then click **Continue**.
 +</WRAP><WRAP column half>
 +{{ reference:test-and-measurement:analog-discovery-studio:getting-started-guide:mac-install-driver-5.png?nolink |}}
 +</WRAP></WRAP>
 +----
 +<WRAP group><WRAP column half>
 +=== Installation Type ===
 +Click **Install**.
 +</WRAP><WRAP column half>
 +{{ reference:test-and-measurement:analog-discovery-studio:getting-started-guide:mac-install-driver-6.png?nolink |}}
 +</WRAP></WRAP>
 +----
 +<WRAP group><WRAP column half>
 +=== Summary ===
 +Once the installation has completed, click **Close**.
 +</WRAP><WRAP column half>
 +{{ reference:test-and-measurement:analog-discovery-studio:getting-started-guide:mac-install-driver-7.png?nolink |}}
 +</WRAP></WRAP>
 +<--
 +<WRAP group><WRAP column half>
 +The OS may block the launch of the **Waveforms **. If this is the case, go into the System Preferences' Security and Privacy page and click **Open Anyway**.
 +</WRAP><WRAP column half>
 +{{ reference:test-and-measurement:analog-discovery-studio:getting-started-guide:mac-open-waveforms-security.png?nolink |}}
 +</WRAP></WRAP>
 +<--
 +
 +--> Installing WaveForms : Linux #
 +<WRAP group>
 +First, download the package for the [[software:adept:start|Adept Runtime]]. This program is required for WaveForms to connect to the Analog Discovery 2 and must be installed prior to installing WaveForms.\\
 +For systems using **.deb packages**, (Ubuntu, Fedora, etc), use the built-in package manager to install the Adept Runtime and then WaveForms - typically, a package manager can be opened by double-clicking on the file in question. \\
 +
 +<WRAP group><WRAP column half>
 +=== Download Adept Runtime ===
 +
 +  * Download the correct version of Adept. The link for Adept downloads is located [[/digilent_adept_2|here]].
 +  * Make sure the version of the Adept install file is the same as WaveForms. I used the 64 bit RPM for WaveForms so I will use the 64 bit RPM for Adept.
 +</WRAP><WRAP column half>
 +{{ :learn:instrumentation:tutorials:analog-discovery-2-getting-started-linux:lin-step1.jpg?nolink |Download Adept.}}
 +</WRAP></WRAP>
 +------------
 +--> Install Files using built-in Package Manager #
 +<WRAP group><WRAP column half>
 +=== Open the Adept File ===
 +Open the file you downloaded for Adept in the previous step.\\
 +</WRAP><WRAP column half>
 +{{ :learn:instrumentation:tutorials:analog-discovery-2-getting-started-linux:lin-step2.jpg?nolink |Open the Adept File.}}
 +</WRAP></WRAP>
 +----------
 +<WRAP group><WRAP column half>
 +=== Click Install ===
 +Click "Install" on the window that pops up.\\
 +
 +</WRAP><WRAP column half>
 +{{ :learn:instrumentation:tutorials:analog-discovery-2-getting-started-linux:lin-step3.jpg?nolink |Click Install.}}
 +</WRAP></WRAP>
 +\\
 +-------------
 +<WRAP group><WRAP column half>
 +=== Open the WaveForms File ===
 +Open the file you downloaded to install WaveForms.
 +</WRAP><WRAP column half>
 +{{ :learn:instrumentation:tutorials:analog-discovery-2-getting-started-linux:lin-step4.jpg?nolink |Open the WaveForms File.}}
 +</WRAP></WRAP>
 +--------------
 +<WRAP group><WRAP column half>
 + === Click Install ===
 +Click Install in the window that pops up.\\
 +This will install the following components: 
 +  * **WaveForms Runtime** contains a library and device support files needed to run custom applications.
 +  * **WaveForms Application** is the Digilent virtual instrumentation interface.
 +  * **WaveForms SDK** is the software development kit for creating custom applications
 +</WRAP><WRAP column half>
 +{{ :learn:instrumentation:tutorials:analog-discovery-2-getting-started-linux:lin-step5.jpg?nolink |Click Install.}}
 +</WRAP></WRAP>
 +--------------
 +<--
 +--> Install Files using command line #
 +Alternatively, use the following set of commands in the terminal to install the Adept Runtime and WaveForms from the downloaded packages:
 +
 +<code>
 +sudo dpkg -i <path to Adept Runtime .deb file>
 +sudo dpkg -i <path to WaveForms .deb file>
 +sudo apt-get install -f
 +</code>
 +<--
 +
 +For systems using **.rpm packages**, (Red Hat Linux, etc), use the following set of commands in the terminal to install the Adept Runtime and WaveForms from the downloaded packages:
 +
 +<code>
 +sudo rpm -i <path to Adept Runtime .rpm file>
 +sudo rpm -i <path to WaveForms .rpm file>
 +</code>
 +
 +If WaveForms has already been installed on the system, replace the "-i" flag passed to the rpm command with "-U" to upgrade the existing installation.
 +For technical support with installing WaveForms on various Linux distributions, please visit to the Scopes and Instruments section of the [[https://forum.digilentinc.com|Digilent Forum]].
 +
 +</WRAP>
 +
 +<--
 +/*-->Installing WaveForms : Raspberry Pi 4 Model B#
 +This tutorial will guide you through the steps involved in the installation process on a Raspberry Pi 4 Model B after downloading it from the website. We will be using Raspberry Pi 4 Model B 1 GB version in this tutorial. The 2 GB and 4 GB versions of the Raspberry Pi 4 Model B also work with this tutorial. \\
 +
 +<WRAP group><WRAP column half>
 +=== Download WaveForms ===
 +Download the correct installation file for WaveForms for your distribution of Linux. Since we are using a Raspberry Pi 4 Model B with the Raspbian OS, we will choose the Debian flavor of the ARM build.
 +</WRAP><WRAP column half>
 +{{ :learn:instrumentation:tutorials:ad2-waveforms2015-installation-rpi:ARM_debian_option.png?600 |Select installation file.}}
 +</WRAP></WRAP>
 +---------
 +<WRAP group><WRAP column half>
 +=== Download Adept 2 ===
 +Download the correct version of [[/software/adept/start|Adept 2]]. Make sure that the version of the Adept install file is the same as WaveForms. We chose the ARM version for WaveForms, so we will use the ARM version of both the Runtime and Utilities for Adept. 
 +</WRAP><WRAP column half>
 +{{ :learn:instrumentation:tutorials:ad2-waveforms2015-installation-rpi:Adept2_RPi_RuntimeUtilitiesDownload.png?600 |Download Adept 2.}}
 +</WRAP></WRAP>
 +------------
 +<WRAP group><WRAP column half>
 +=== Open the Adept 2 File ===
 +Open up the file you downloaded for Adept 2 in Step 2. 
 +</WRAP><WRAP column half>
 +{{ :learn:instrumentation:tutorials:ad2-waveforms2015-installation-rpi:DoubleClick_AdeptRuntimeDownload.png?600 |Open the Adept 2 file.}}
 +</WRAP></WRAP>
 +-------------
 +<WRAP group><WRAP column half>
 +=== Click Install ===
 +Click "Install" in the window when prompted. 
 +</WRAP><WRAP column half>
 +{{ :learn:instrumentation:tutorials:ad2-waveforms2015-installation-rpi:InstallAdeptRuntime.png?600 |Install.}}
 +</WRAP></WRAP>
 +-----------
 +<WRAP group><WRAP column half>
 +=== Open the WaveForms File ===
 +Open the file you downloaded to install WaveForms.  
 +</WRAP><WRAP column half>
 +{{ :learn:instrumentation:tutorials:ad2-waveforms2015-installation-rpi:DoubleClick_WaveFormsDownload.png?600 |Open the WaveForms file.}}
 +</WRAP></WRAP>
 +-----------
 +<WRAP group><WRAP column half>
 +=== Click Install ===
 +Click "Install" in the window when prompted. 
 +</WRAP><WRAP column half>
 +{{ :learn:instrumentation:tutorials:ad2-waveforms2015-installation-rpi:Install_WaveForms.png?600 |Install WaveForms.}}
 +</WRAP></WRAP>
 +-----------
 +<WRAP group><WRAP column half>
 +=== Open WaveForms ===
 +Go to your applications and open WaveForms.
 +</WRAP><WRAP column half>
 +{{ :learn:instrumentation:tutorials:ad2-waveforms2015-installation-rpi:DoubleClick_WaveForms_Launch.png?600 |Open WaveForms.}}
 +</WRAP></WRAP>
 +
 +<--*/
 +/*--> Installing WaveForms : Raspberry Pi #
 +<WRAP group>
 +{{section>reference:test-and-measurement:guides:getting-started-with-raspberry-pi#installing_waveforms_on_raspberry_pi&noheader}}
 +</WRAP>
 +<--*/
 +----
 +==== Take a Measurement ====
 +
 +{{ :learn:instrumentation:tutorials:gsg-ad2-demo.png?nolink&800 |}}
 +
 +This section walks through using the Analog Discovery 2 for the first time. An analog output pin is connected to an analog input pin, and a waveform is generated and captured via this simple loopback circuit.
 +
 +--> Take a Measurement - Steps #
 +
 +<WRAP group>
 +=== Plug in your Analog Discovery 2 ===
 +Plug the USB B-Micro cable into your computer and Analog Discovery 2.
 +
 +{{ :learn:instrumentation:tutorials:analog-discovery-2-getting-started-windows:step1.png?nolink&600 |Plug in Your Analog Discovery 2}}
 +</WRAP>
 +----
 +<WRAP group><WRAP column half>
 +=== Launch WaveForms ===
 +Launch WaveForms. Upon launch, WaveForms will automatically detect and connect to the Analog Discovery 2.
 +If the Analog Discovery 2 is not 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's device list (1). Click on the device in the list to select it, then click the Select button (2) to close the Device Manager.
 +
 +**Note:** //“DEMO” devices are also listed, which allow the user to use WaveForms and create projects without a physical device.//
 +
 +**Note:** //The Device Manager can be opened by clicking on the “Connected Device” button in the bottom right corner of the screen (3), or by selecting “Device Manager” from the “Settings” menu at the top of the screen.//
 +</WRAP><WRAP column half>
 +{{ :learn:instrumentation:tutorials:analog-discovery-studio-oscilloscope:waveforms-device-manager.png?nolink&600 |}}
 +</WRAP></WRAP>
 +----
 +<WRAP group><WRAP column half>
 +== Open the "Wavegen" Instrument ===
 +Click on its button in the instrument panel on the left side of the screen.
 +</WRAP><WRAP column half>
 +{{ learn:instrumentation:tutorials:waveforms-instrument-panel:waveforms-instrument-panel-wavegen.png?nolink&600 }}
 +</WRAP></WRAP>
 +------
 +<WRAP group><WRAP column half>
 +Leave all settings as defaults, and click the green arrow at the top of the window to play the wave.
 +</WRAP><WRAP column half>
 +{{ reference:test-and-measurement:analog-discovery-studio:getting-started-guide:wavegen-default.png?nolink&600 }}
 +</WRAP></WRAP>
 +----
 +<WRAP group><WRAP column half>
 +== Open "Scope" Instrument ===
 +Go back to WaveForms' "Welcome" tab, and open the "Scope" instrument.
 +</WRAP><WRAP column half>
 +{{ learn:instrumentation:tutorials:waveforms-instrument-panel:waveforms-instrument-panel-wavegen.png?nolink&600 }}
 +</WRAP></WRAP>
 +--------
 +<WRAP group><WRAP column half>
 +Leave all settings as defaults and click the green play arrow to begin capturing data.
 +</WRAP><WRAP column half>
 +{{ reference:test-and-measurement:analog-discovery-studio:getting-started-guide:scope-default.png?nolink&600 }}
 +</WRAP></WRAP>
 +-----------
 +<WRAP group><WRAP column half>
 +=== Take a Measurement ===
 +Plug the yellow wire (Waveform Generator 1) into the orange wire (Oscilloscope Channel 1 positive.) Plug any black wire (ground) into the orange wire with the white stripe (Oscilloscope Channel 1 negative.)
 +</WRAP><WRAP column half>
 +{{ :learn:instrumentation:tutorials:analog-discovery-2-getting-started-windows:step7.png?nolink&600 |Take a Measurement.}}
 +</WRAP></WRAP>
 +------------
 +<WRAP group><WRAP column half>
 +=== View your First Measurement ===
 +Open the Oscilloscope to see your first measurement. To learn more about the tools, please visit our [[https://analogdiscovery.com/support/|support page]].
 +</WRAP><WRAP column half>
 +{{ :learn:instrumentation:tutorials:analog-discovery-2-getting-started-windows:step8.png?nolink&600 |View your First Measurement!}}
 +</WRAP></WRAP>
 +
 +<--
 +
 +----
 +==== Next Steps ====
 +
 +To find reference materials and guides on how to use the Analog Discovery 2 and WaveForms, please visit the [[test-and-measurement:analog-discovery-2:start|Analog Discovery 2 Resource Center]].
 +
 +For detailed steps about how to install and use WaveForms on Raspberry Pi, follow this guide: [[test-and-measurement:guides:getting-started-with-raspberry-pi]].
 +
 +For technical support, please visit the Scopes and Instruments section of  [[https://forum.digilentinc.com|Digilent Forum]].
 +----
 +{{tag>learn instrumentation tutorial analog-discovery-2 }}
 +{{include_n>1}}