Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
test-and-measurement:analog-discovery-2:reference-manual [2022/02/18 23:05] – [Features] fix power supply features Arthur Browntest-and-measurement:analog-discovery-2:reference-manual [2023/04/06 18:45] (current) Arthur Brown
Line 39: Line 39:
 The Analog Discovery 2 can be used with WaveForms' Oscilloscope instrument to capture analog input data via the analog input ("Scope") channels, using either BNC cables or MTE cables. When this instrument is used, the Analog Discovery 2's analog input channels act as a two-channel, 14-bit, 100 MS/s oscilloscope. The Analog Discovery 2 can be used with WaveForms' Oscilloscope instrument to capture analog input data via the analog input ("Scope") channels, using either BNC cables or MTE cables. When this instrument is used, the Analog Discovery 2's analog input channels act as a two-channel, 14-bit, 100 MS/s oscilloscope.
  
-You can use the [[test-and-measurement:bnc-adapter-board:start|BNC Adapter]] to use BNC cables with the oscilloscope.  Please remember when using BNC cables that the oscilloscope channels are single-ended and the circuit under test must still share a common ground with the Analog Discovery 2. With BNC cables, the analog input channels have a bandwidth of 30+ MHz.+You can use the [[test-and-measurement:bnc-adapter-board:start|BNC Adapter]] to use BNC cables with the oscilloscope.  Please remember when using BNC cables that the oscilloscope channels are single-ended and the circuit under test must still share a common ground with the Analog Discovery 2. With BNC cables, the analog input channels have a substantially higher bandwidth than with MTE cables.
  
-When used with MTE cables, the oscilloscope channels' **+** and **-** pins are differentially paired. The **-** pins can be attached to a non-ground circuit net, but the circuit under test must still share a common ground with the Analog Discovery 2. With MTE cables, the analog input channels have a bandwidth of 9 MHz.+When used with MTE cables, the oscilloscope channels' **+** and **-** pins are differentially paired. The **-** pins can be attached to a non-ground circuit net, but the circuit under test must still share a common ground with the Analog Discovery 2.
  
 Since the Analog Discovery 2's analog input channels are shared, the Oscilloscope instrument cannot be used at the same time as the Voltmeter, Data Logger, Spectrum Analyzer, Network Analyzer, or Impedance Analyzer instruments. Since the Analog Discovery 2's analog input channels are shared, the Oscilloscope instrument cannot be used at the same time as the Voltmeter, Data Logger, Spectrum Analyzer, Network Analyzer, or Impedance Analyzer instruments.
Line 65: Line 65:
 The Analog Discovery 2's GND reference is connected to the USB GND. Depending on the PC powering scheme, and other PC connections (Ethernet, audio, etc. – which might also be grounded) the Analog Discovery 2 GND reference might be connected to the whole GND system and ultimately to the power network protection (earth ground). The circuit under test might also be connected to earth or possibly floating. The Analog Discovery 2's GND reference is connected to the USB GND. Depending on the PC powering scheme, and other PC connections (Ethernet, audio, etc. – which might also be grounded) the Analog Discovery 2 GND reference might be connected to the whole GND system and ultimately to the power network protection (earth ground). The circuit under test might also be connected to earth or possibly floating.
  
-For safety reasons, it is the user’s responsibility to understand the powering and grounding schemeand to make sure that there is a common GND reference between the Analog Discovery 2 and the circuit under test, and that the common mode and differential voltages do not exceed specifications. Furthermore, for distortion-free measurements, the common mode and differential voltages need to meet specifications.+For safety reasons, it is the user’s responsibility to understand the powering and grounding scheme and to make sure that there is a common GND reference between the Analog Discovery 2 and the circuit under test, and that the common mode and differential voltages do not exceed specifications. Furthermore, for distortion-free measurements, the common mode and differential voltages need to meet specifications.
  
 <-- <--
Line 77: Line 77:
 The Analog Discovery 2 can be used with WaveForms' Wavegen instrument to output analog voltage waves via either BNC ([[test-and-measurement:bnc-adapter-board:start|BNC Adapter]]) cables or MTE cables. Wavegen converts 14-bit digital samples to analog at a rate of up to 100 MS/s on each of two channels. When Wavegen is used, the Analog Discovery 2's analog output channels act as an Arbitrary Waveform Generator. The instrument supports everything from simple waveforms like Sine and Triangle waves, up to more complicated functions like AM and FM modulation. Custom sets of samples can be defined by the user in applications like Excel and imported to WaveForms. The Analog Discovery 2 can be used with WaveForms' Wavegen instrument to output analog voltage waves via either BNC ([[test-and-measurement:bnc-adapter-board:start|BNC Adapter]]) cables or MTE cables. Wavegen converts 14-bit digital samples to analog at a rate of up to 100 MS/s on each of two channels. When Wavegen is used, the Analog Discovery 2's analog output channels act as an Arbitrary Waveform Generator. The instrument supports everything from simple waveforms like Sine and Triangle waves, up to more complicated functions like AM and FM modulation. Custom sets of samples can be defined by the user in applications like Excel and imported to WaveForms.
  
-Each waveform generator channel is considered a single ended pin, however, a connected circuit must share a ground with the Analog Discovery 2. Each channel has a bandwidth of 8MHz through both the BNC and MTE connectors. AC amplitudes of +-5V and DC offsets of +-5V are supported.+Each waveform generator channel is considered a single ended pin, however, a connected circuit must share a ground with the Analog Discovery 2.
  
 Since the Analog Discovery 2's analog output channels are shared, the Waveform Generator instrument cannot be used at the same time as the Network Analyzer, or Impedance Analyzer instruments. Since the Analog Discovery 2's analog output channels are shared, the Waveform Generator instrument cannot be used at the same time as the Network Analyzer, or Impedance Analyzer instruments.
Line 137: Line 137:
 {{test-and-measurement:analog-discovery-2:logic-analyzer.png?nolink&800}} {{test-and-measurement:analog-discovery-2:logic-analyzer.png?nolink&800}}
  
-The Analog Discovery 2 can be used with WaveForms' "Logic" instrument to act as a Logic Analyzer. When used this way, the 16 digital input/output channels are configured to capture high/low logic states on connected pins at a sample rate of up to 100 MS/s. These channels are capable of interfacing with 3.3V and 1.8V logic signalsand are tolerant to voltages of up to 5V.+The Analog Discovery 2 can be used with WaveForms' "Logic" instrument to act as a Logic Analyzer. When used this way, the 16 digital input/output channels are configured to capture high/low logic states on connected pins. These channels are capable of interfacing with 3.3 V and 1.8 V logic signals and are tolerant to voltages of up to 5V.
  
 Individual input/output channels can be grouped as buses and protocols. Protocol groups can be used to view the decoded contents of packets of many common communications protocols, including SPI, I2C, UART, CAN, and I2S. Individual input/output channels can be grouped as buses and protocols. Protocol groups can be used to view the decoded contents of packets of many common communications protocols, including SPI, I2C, UART, CAN, and I2S.
Line 179: Line 179:
 The Analog Discovery 2 can be used with WaveForms' Static I/O instrument to emulate a variety of user input/output devices on the digital input/output pins. Virtual LEDs, buttons, switches, sliders, and displays can be assigned to specific digital I/O pins, and interacted with within the WaveForms user interface. The Analog Discovery 2 can be used with WaveForms' Static I/O instrument to emulate a variety of user input/output devices on the digital input/output pins. Virtual LEDs, buttons, switches, sliders, and displays can be assigned to specific digital I/O pins, and interacted with within the WaveForms user interface.
  
-The Analog Discovery 2's digital input/output channels use a 3.3V logic standard for output, and can accept either 1.8V or 3.3V logic signals as inputs. The digital input/output pins are tolerant to input signals up to 5V.+The Analog Discovery 2's digital input/output channels use a 3.3v V logic standard for output, and can accept either 1.8 V or 3.3 V logic signals as inputs. The digital input/output pins are tolerant to input signals up to 5V.
  
 Digital input/output channels used by the Static I/O instrument can still be used by other instruments using the same digital input/output channels, however, other instruments can only use these shared channels as inputs. Digital input/output channels used by the Static I/O instrument can still be used by other instruments using the same digital input/output channels, however, other instruments can only use these shared channels as inputs.
Line 186: Line 186:
  
 ==== Features ==== ==== Features ====
-  * Virtual I/O devices (LEDs, buttons, switches & displays)+  * Virtual I/O devices (LEDs, buttons, switches& displays)
   * Customized visualization options available   * Customized visualization options available
  
Line 201: Line 201:
  
 The Analog Discovery 2 can be used with WaveForms' Spectrum instrument to view the power of frequency-domain components of analog signals captured on the analog input channels. The Analog Discovery 2 can be used with WaveForms' Spectrum instrument to view the power of frequency-domain components of analog signals captured on the analog input channels.
- 
-Signals with minimum/maximum frequencies between 0 Hz and 50Mhz can be plotted in units of peak voltage, RMS voltage, and various voltage level ratio units. 
  
 Since the Spectrum Analyzer instrument uses the same hardware resources as the Oscilloscope, Network Analyzer, and Impedance Analyzer instruments, it cannot be used at the same time as these other instruments. Since the Spectrum Analyzer instrument uses the same hardware resources as the Oscilloscope, Network Analyzer, and Impedance Analyzer instruments, it cannot be used at the same time as these other instruments.
Line 226: Line 224:
 The Analog Discovery 2 can be used with WaveForms' "Network" instrument to view the amplitude and phase response of a circuit under test. Nichols and Nyquist plots can also be viewed with this instrument. The Analog Discovery 2 can be used with WaveForms' "Network" instrument to view the amplitude and phase response of a circuit under test. Nichols and Nyquist plots can also be viewed with this instrument.
  
-Frequency sweeps can be performed in ranges between 1 mHz and 10 MHz with up to 10k samples per decade. The wave used for the sweep can be customizedand uses the same resources as the Waveform Generator instrument.+A sweep is performed in order to test the response of the circuit at varying frequencies. The wave used to perform this sweep can be customized and uses the same resources as the Waveform Generator instrument.
  
 The Network Analyzer instrument uses the analog output and analog input channels of the Analog Discovery 2 to probe a test circuit. The Network Analyzer can be configured to use an external signal to provide input to the circuit under test, rather than using the analog output channels. The Network Analyzer instrument uses the analog output and analog input channels of the Analog Discovery 2 to probe a test circuit. The Network Analyzer can be configured to use an external signal to provide input to the circuit under test, rather than using the analog output channels.
Line 246: Line 244:
 The Analog Discovery 2 can be used with WaveForms' Impedance instrument to view a wide variety of frequency response characteristics of a circuit under test. Input, Phase, Voltage, Current, Impedance, Admittance, Inductance, Factor, and Nyquist plots are all available. In addition, Custom plots can be used to present the results of a wide variety of different mathematical operations on buffered data.  Check out the [[add-ons:impedance-analyzer:start|Impedance Analyzer Adapter]] for more information  The Analog Discovery 2 can be used with WaveForms' Impedance instrument to view a wide variety of frequency response characteristics of a circuit under test. Input, Phase, Voltage, Current, Impedance, Admittance, Inductance, Factor, and Nyquist plots are all available. In addition, Custom plots can be used to present the results of a wide variety of different mathematical operations on buffered data.  Check out the [[add-ons:impedance-analyzer:start|Impedance Analyzer Adapter]] for more information 
  
-Frequency sweeps can be performed with in ranges between 100 uHz and 25 MHz, with as many as 10k samples per decade. The signal used to perform the sweep can be selected from a variety of preset, with configurable amplitude and offset. An external network analyzer reference circuit can be selected from a variety of options.+A sweep is performed in order to test the response of the circuit at varying frequencies. The signal used to perform the sweep can be selected from a variety of presets, with configurable amplitude and offset. An external network analyzer reference circuit can be selected from a variety of options.
  
 The Impedance Analyzer instrument uses the analog output channels and analog input channels of the Analog Discovery 2 to probe a test circuit. The Impedance Analyzer instrument uses the analog output channels and analog input channels of the Analog Discovery 2 to probe a test circuit.
Line 283: Line 281:
 {{test-and-measurement:analog-discovery-2:protocol-analyzer.png?nolink&800}} {{test-and-measurement:analog-discovery-2:protocol-analyzer.png?nolink&800}}
  
-The Analog Discovery 2 can be used with WaveForms' "Protocol" instrument to work with common communications protocols. UART, SPI, I2C, and CAN transactions can be received, transmitted, and/or spied upon by the Analog Discovery 2 using any of the 16 digital input/output channels at a sample rate of 100 MS/s.+The Analog Discovery 2 can be used with WaveForms' "Protocol" instrument to work with common communications protocols. UART, SPI, I2C, and CAN transactions can be received, transmitted, and/or spied upon by the Analog Discovery 2 using any of the digital input/output channels.
  
 Custom scripts can be written within the Protocol Analyzer instrument to generate sequences of SPI or I2C transactions. Custom scripts can be written within the Protocol Analyzer instrument to generate sequences of SPI or I2C transactions.
Line 304: Line 302:
 Each of WaveForms' instruments can be controlled through scripts within the WaveForms application itself. WaveForms' "Script" instrument allows the user to write and run javascript code that can control the rest of the application through an extensive API. This allows the user to configure and run many instruments at the same time, in an easily repeatable way. Each of WaveForms' instruments can be controlled through scripts within the WaveForms application itself. WaveForms' "Script" instrument allows the user to write and run javascript code that can control the rest of the application through an extensive API. This allows the user to configure and run many instruments at the same time, in an easily repeatable way.
  
-A variety of code examples are available in the application to aid in learning to write WaveForms scripts. Additional resources for writing scripts can be found on the Scopes and Instruments section of the [[https://forum.digilentinc.com|Digilent Forum]].+A variety of code examples are available in the application to aid in learning to write WaveForms scripts. Additional resources for writing scripts can be found on the Test and Measurement section of the [[https://forum.digilent.com|Digilent Forum]].
  
 A plot pane within the Script instrument itself can be used to integrate data from many different instruments, and display it in a highly customizable way. A plot pane within the Script instrument itself can be used to integrate data from many different instruments, and display it in a highly customizable way.
Line 319: Line 317:
 ===== WaveForms Software Development Kit (SDK) ===== ===== WaveForms Software Development Kit (SDK) =====
  
-The WaveForms SDK is a set of software libraries and examples that can be used to develop custom applications that can control Digilent Test and Measurement devices. Supported languages include C, C++, C#, Visual Basic, and Python. Third party toolkits are available for LabVIEW and MATLAB. Instructions for using WaveForms with LabVIEW are available through the [[https://forums.ni.com/t5/Analog-Discovery-Student/Getting-Started-with-LabVIEW-and-Analog-Discovery-2-NI-Edition/ta-p/3553508|National Instruments forum]]. The MATLAB support package is available through the [[https://www.mathworks.com/hardware-support/digilent-analog-discovery.html|MathWorks website]]. More information about WaveForms SDK can be found through the [[software:waveforms:waveforms-sdk:reference-manual|WaveForms SDK Reference Manual]].+The WaveForms SDK is a set of software libraries and examples that can be used to develop custom applications that can control Digilent Test and Measurement devices. Supported languages include C, C++, C#, Visual Basic, and Python. Third party toolkits are available for LabVIEW and MATLAB. Instructions for using WaveForms with LabVIEW are available through the [[https://forums.ni.com/t5/Analog-Discovery-Student/Getting-Started-with-LabVIEW-and-Analog-Discovery-2-NI-Edition/ta-p/3553508|National Instruments forum]]. The MATLAB support package is available through the [[https://www.mathworks.com/matlabcentral/fileexchange/122817-digilent-toolbox|MathWorks website]]. More information about WaveForms SDK can be found through the [[software:waveforms:waveforms-sdk:reference-manual|WaveForms SDK Reference Manual]].
  
 ==== Features ==== ==== Features ====