Search the Community

Showing results for tags 'analog discovery2'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • News
    • New Users Introduction
    • Announcements
  • Digilent Technical Forums
    • FPGA
    • Test and Measurement
    • Measurement Computing (MCC)
    • Add-on Boards
    • Digilent Microcontroller Boards
    • Non-Digilent Microcontrollers
    • LabVIEW
    • FRC
    • Other
  • General Discussion
    • Project Vault
    • Learn
    • Suggestions & Feedback
    • Buy, Sell, Trade
    • Sales Questions
    • Off Topic
    • Educators
    • Technical Based Off-Topic Discussions
    • Archived

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start





Website URL







  1. I'm a student that's been using my AD2 flawlessly for about almost 2 years, but yesterday it stopped being recognized by my windows computer. How it happened: It was unplugged from all circuits. I plugged in the USB connecter to my computer, and tried to get Waveforms to read it. Nothing happened, and Waveforms could not read the device. What I've tried: I tried restarting my pc, reinstalling waveforms, and updating windows. I've also tried different USB cables, different ports, and a different computer. Useful info: It doesn't appear in 'device manager' in any capacity
  2. I'm generating 1V(p-p) on W1 and 500mV(p-p) on W2 with zero phase on both the channels with my Analog Discovery 2 board. Initially it is showing a phase difference of about 30degs . Then, every time I stop and rerun the waveform channels the phase between W1 and W2 is not stable. What is the reason for this and what are the possible solution for this problem? Thanks Satya Prakash Singh
  3. Hello, First of all thank you very much for all the answers in the forum questions they helped me out a lot! I am trying to continuously measure the logic levels using the acquisition mode scanScreen currently at a sampling frequency of 800000. During this process I came across some questions I unfortunately did not find any answers to. I am not using the record feature as this is limited to 100ms/div in Waveforms. Is this because it can't get higher? After that I wanted to mimic the repeated acquisition mode. I tried using 10 buffers and then constantly reading and rearming the device. This unfortunately has sometimes some data loss as well, which makes we wonder how the repeated acquisition in Waveform works? I ended up storing the old index position and acquiring the new one using FDwfDigitalInStatusIndexWrite. I am able to get the new data every round. However sometimes if the background activity is to high presumably there is some data missing. Is there a way other than guessing from the amount that has to be read every single time that can tell me when this happens eg. receiving the amount of samples written after the buffer was last read? I've already tried: 1) FDwfDigitalInStatusSamplesValid this always returns 4096. At the beginning using the shift Acquisition mode this counts up however unfortunately I did not find a way to get by how much the shift register was shifted. 2) FDwfDigitalInStatusSamplesLeft this function, if I did not misunderstand how to use it, constantly returns a growing negative value seemingly unrelated to the growing buffer. cValid = ctypes.c_int() dwf.FDwfDigitalInStatusSamplesValid(device_handle, ctypes.byref(cValid)) print(cValid) Thanks in advance.
  4. Hi, I'm using Analog Discovery 2 to perform data acquisition through the two channels of the Oscilloscope, using the code available in the SDK as a base. I want to configure Oscilloscope channels with 2x16k buffers. And this way I want to get the Scope (2 x 16k) and Wavegen (2 x 1k) configuration, presented in the second line of the Waveforms Device Manager. By default the configuration is the one shown in the first line, Scope (2 x 8k) and Wavegen (2 x 4k). Studying the Waveforms SDK Reference Manual: the function FDwfAnalogOutDataInfo ( HDWF hdwf, int idxChannel, int *pnSamplesMin, double *pnSamplesMax) gives me the maximum buffer size information at 4096 samples for the output channels. The function FDwfAnalogInBufferSizeInfo (HDWF hdwf, int *pnSizeMin, int *pnSizeMax) tells me the maximum buffer size at 8192 samples for the Oscilloscope's input channels. The function FDwfAnalogInBufferSizeSet (HDWF hdwf, int nSize) should set the buffer size of the device's analog inputs. However, the function is ineffective, as any buffer value passed through this function is ignored and the device's default buffer size is used as the maximum buffer size. The function FDwfAnalogOutDataSet (HDWF hdwf, int idxChannel, double *rgdData, int cdData) should set the device's prefill buffer. However, the function is ineffective, as any buffer value passed through this function is ignored and the device's default size is used. How to properly configure device buffer sizes using the Python API? I want to configure Oscilloscope channels with 2x16k buffers. And this way I want to get the Scope (2 x 16k) and Wavegen (2 x 1k) configuration? Thanks in advance for your help.
  5. I would like to use the digital pattern generator of an Analog Discovery 2 under control of a Python script. It would appear that there is a 1024 sample buffer when used with PP outputs in custom mode. Is there a way to extend this (such as by streaming data to the device from a PC, for example)?
  6. Hello, I want to learn compensation values (open resistance, open reactance, short resistance and short reactance) of a compensation action. How can see these values? Trace export contains probe resistance and reactance values. There is no data about compensation values. I need them to verify my design. There is a python script named as "". I reviewed this script. But, This script does calculate resistance and reactance values according to single frequency and single resistor value. How can enhance the script to grab same compensation values like WaveForms does it with multiple frequencies and multiple resistors. Could you guide me? I realized that each application restart reset compensation values. So, it requires a new compensation action. But, I can retrieve same compensation values if I save the workspace. So, saved workspace contains previous compensation values in it. How can reach them? Regards, Resul
  7. Hello, I am aware and have controlled the Power supply as well as the individual channel voltage using Python. But I am unaware how to do the same on Matlab. I have read a few posts concerning this topic, where I read about using the h file to initialize the device and then use the power supply: However, I am still confused as I could not use this due to an error "could not find file". Could anyone please let me know in detail (preferably step-by-step) on how to enable the power supply for AD2 on Matlab? Thank you!
  8. Hello all, I need to use the AD2 / AD Pro for some analog/digital signal measurements. I have a few questions before I make the purchase. Can I acquire both the Analog as well as Digital input channels simultaneously with MATLAB? Can I change the Gain of an Analog Channel from MATLAB? If so, how? After changing the gain, does the resolution of 14bit apply to this amplified value? i.e. if with 1X gain the input range is +-25V, and the 14 bits are mapped to this voltage range, Does making the gain 10X, make the 14bits map to the new range? i.e. +-2.5V? Thus increasing the precision of the system to low voltages? In my test setup I need to probe (2 analog) signals which will vary in terms of mV (lets say 1-2mVs) and 2 Digital signals simultaneously. Will I be able to measure these small signals with AD2 or AD Pro, If so, which one will be better?
  9. Hi, There is an option on the Options menu called Samples. I want to increase the number of samples in capture at each frequency step considering resolution and accuracy. But, it really slows down the measurement process. My question is that how Waveform software can handle such high samples with very little effect. Do you handle all samples on the device at each frequency step without retrieving the PC software side? If yes, are there any API functions to achieve the same task?
  10. Hi! I'm measuring the voltage value in my circuit. But, The GUI scope value finely differs from the python sample code. I use the '' code for Python example. Can you tell me why it's different?
  11. Hey ya'll. Was hoping for a quick phone call with tech support but in the spirit of the company, I've created a forum username and am posting my request for a replacement AD2. I run a pair of AD2s regularly and have them both powered by their own 5V auxiliary DC power supplies. To my dismay, I started receiving errors by my mac about USB over current. Turns out one of my AD2s stopped recognizing the AUX supply and started pulling current from the USB bus per the monitoring via Waveforms. After swapping the power supplies, it became clear that the power supplies are both fully operational. To be sure, I tested the voltages of the PSUs with my oscilloscope - no issues. The non-symptomatic AD2 works with each of them, confirming the connected AUX voltage in Waveforms with both PSUs. Troubleshooting again with no loads, ie. powering the AD2 units with the I/O connectors detached, replicates the issue. Please advise on how to further troubleshoot or obtain a replacement. I've come to rely heavily on these AD2s for my dev workflow and need to be up and running ASAP. Thanks ya'll.
  12. Hi all! I'm running Ubuntu 20.04.1 LTS on ryzen 1700 with B350 chipset. When running waveforms (3.14.3, adept 2.20.2) after selecting device in Device Manager the application hangs for a while and show error box The LED on AD2 doesn't start blinking. However if I use "Force programming" from context menu (whatever it does) the error message is the same, but LED starts blinking. My Analog Discovery 2 is working perfectly fine on the same PC under Windows and on other computers under Windows (I don't heave another Linux machine available). It also was working some time ago, probably before updating from Ubuntu 19 or something like that (I'm not sure now - it was a few months ago). I did try different USB cables, different ports (different USB controllers too) and using external power supply for AD2, though I really don't think it's hardware issue as it works on the same machine on Windows. There are no errors in dmesg: [ 4535.196219] usb 1-2: USB disconnect, device number 27 [ 4537.393789] usb 1-2: new high-speed USB device number 28 using xhci_hcd [ 4537.564412] usb 1-2: New USB device found, idVendor=0403, idProduct=6014, bcdDevice= 9.00 [ 4537.564417] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 4537.564420] usb 1-2: Product: Digilent USB Device [ 4537.564422] usb 1-2: Manufacturer: Digilent [ 4537.564424] usb 1-2: SerialNumber: 210321AD5BE1 [ 4537.576482] ftdi_sio 1-2:1.0: FTDI USB Serial Device converter detected [ 4537.576527] usb 1-2: Detected FT232H [ 4537.587553] usb 1-2: FTDI USB Serial Device converter now attached to ttyUSB0 [ 4537.604594] ftdi_sio ttyUSB0: FTDI USB Serial Device converter now disconnected from ttyUSB0 [ 4537.604617] ftdi_sio 1-2:1.0: device disconnected Disconnect, I suspect, is because of dftdrvdtch which probably reconfigures the FTDI device thus disabling virtual serial port. Any ideas what might be the problem here?
  13. As stated, I'm new to the Analog Discovery 2, and its newly unwrapped! I've just installed Waveforms on Windows 10, as well as on Linux Mint (my laptop dual boots). My AD2 is recognized automatically, and get a status of 'OK' with good voltages (I've got an Aux power supply). When I run the speed test on either windows or linux waveforms app, the response always comes back with an error, communication failure with the speed test results as follows: Latency: 0.0539 ms To Device: 17.149 MBPS From Device: 0 BPS As a brand new device, I want to identify any issue early on. I get the same results on my laptop with Windows 10 and Linux Mint, as well as a windows 10 desktop. The AD2 seems to be the only common denominator. Any help would be appreciated. Thank you,
  14. Hi, I am using your driver Analog Discovery 2 in Labview 2017. Trying to run a sampe I can't receive the results I expect. the setup is : sample rate of 7.692M wiht 8192 samples - trying to use hight rate or no. of smaple returns an error. Here is attach a picture of the case. Could you send me some information how to fix and have the wave as the example in the picture ? AD2 Analog Example(Multiple).vi
  15. I recently tried to calibrate my AD2 and ran into some issues when I reached W2 gains. I read on my personal DMM 5 volts when it should have been 1 or 0. I then applied the wave to my oscilloscope and even the oscilloscope of the AD2. It was a static 5 volts no matter what wave I changed it to be. I tried using the fly wires to see if my breakout board was faulty, but it seems that my AD2’s wavegen 2 does not work. I was wondering if there was something that I could do to fix this or contact digilent themselves. Thank you in advanced!
  16. Hi, I am trying to characterize an ADC by applying a ramp dc value as an input and receiving the digital values in SPI (three-wire option). The Select and Clock are applied (similar to example). I have implemented the test setup in the Waveforms (Analog Discovery) and it is functional. I can see the Digital Value of the ADC both in Logic Analyser and Protocol (SPI - Spy (Three-wire)) (figs attached). I have automated the full procedure using python except the SPI part. I am interested in the first 16 bits after the Select high. I have gone though the examples of the SDK for the spi (Digital_Spi, Digital_Spi_Spy) but it is not clear due to lack of comments. Can you please provide any suggestion? @attila Regards, Chris
  17. Hi Allita My Analog Discovery AD2 crashes waveforms when I plug in a external +5V psu. My PSU has cable has the deminsions 5V DC voltage supply with at least 3A max current, Outer diameter 5.5 mm and inner pin 2.1mm diameter positive inner pin = 5v Outer case =0 V DC plug connected up as shown the in above photo. This solutions complies to the hand book rules here Normally my Analog Discovery AD2 when just powered by the USB cable works fine without any issues. Any ideas of how to fix the issue ?? Best wishes Simon
  18. Hi! I need to know the connector type and size to modify a 5v 2.5A power supply to connect it to an Analog Discovery 2. Thank you. Albert Valiente
  19. Hi, I would like to measure control loop gain of DC-DC converter using AD2 network analyzer. Is it possible to add a digital filter to input channels of AD2 and measure gain and phase shift after digital filtering?
  20. Greetings, I'm working on a project utilizing the Pattern Generator function of Analog Discovery 2. I chose the Pattern Generator function based from the WaveForms GUI. In that interface, it can be used to transmit data in parallel. I created a VB Script consisting of Pattern Generator APIs, it was working fine. The problem that I encountered is its possible limitation: it can only transmit up to 102 characters. Each character consists of 10 bits (1 Start bit, 8 Data bits, and 1 Stop bit). Here are example of that scenarios: 1). Transmitted messages using DIOs #0 and #1 were received by 2 UART Controllers successfully. 1st message was exactly 102 characters. I added another character to the longer message and it became 103 characters. 2). The received results of the 2 UART Controllers is this: It was just blank for the other trials that I've done. My question is can the Pattern Generator be used to transmit data with a length more than 102 characters? If I want to transmit a minimum of 256 characters, can the Pattern Generator handle it? Any advice will surely help. Best regards, Lesiastas
  21. Waveforms can not seem to find my AD2, it does not show up in the waveforms device manager. I can see it in my windows device manager, however, it is identifyed as "USB Serial Converter". Any help would be appreciated.
  22. I need to capture the signal which is must be sampled in 25Mhz for avoiding aliasing. But while I use record mode to capture it, WaveForms keep showing message "reduce sample rate". For 25Mhz sample rate, and 14 bit resolution, data rate is 350Mbps AD2 is using USB2.0 which should transmitter data up to 480Mbit/s. AD2 should continues record 25Mhz data, the only limitation is my PC RAM size. Is my understanding correct ?
  23. Hi, I'm trying to use the UART of my Analog Discovery 2 in python. I've had a look at the example and just ran it. At first, I thought it worked. But then I realized it was okay only for the first frame. After increasing the sleeping before the print (see the pics just under), the values are more often correct, but there's still a lot of unexpected results. (see the pics just under ). The thing is, when I use Waveforms, it works(see the pic just under). Also I thought of a problem with the SDK, even if I don't really think so. Could someone help me? Thanks, Marc
  24. Greetings, Forgive me, but I'm not that knowledgeable in python and I'm having trouble understanding the "create_string_buffer" argument in the sample code. How do you declare this "create_string_buffer" statement into its VB6 equivalent? Sincerely yours, Lesiastas
  25. Greetings! I'm working on a project involving the use of the Analog Discovery 2's Logic Analyzer feature and I've been tasked to recreate its function through the use of a VB6 Wrapper. I'm having a hard time finding the correct APIs to use. The Python sample codes in the WaveForms SDK folder isn't working when I tried to use it in receiving ASCII bits from a UART controller. For people like me that aren't good in coding, it would be great if it would at least contain more examples showing the different uses of the settings present in the Logic Analyzer GUI. So I just set some additional APIs that could help my code and here's the code that I've made so far: The main showstopper that I've encountered right now is the highlighted API in the picture above. It's suppose to retrieve the acquired data samples from the instrument, but it still cannot receive the bits of the ASCII character that I'm sending. This is the result that I'm trying to replicate using the Logic Analyzer APIs: I used a UART Controller as the Tx to the VB6 Wrapper while I was doing breakpoint debug in it to see the received bits. These are the results that I got: It received a "1" and "0" bits unlike the one in the Logic Analyzer GUI. I could be wrong, but I think the problem is I still haven't set the Trigger and Trigger Detector APIs for the Logic Analyzer properly. Any advice guys?