Search the Community

Showing results for tags 'analog discovery 2'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • News
    • New Users Introduction
    • Announcements
  • Digilent Technical Forums
    • FPGA
    • Digilent Microcontroller Boards
    • Non-Digilent Microcontrollers
    • Add-on Boards
    • Scopes & Instruments
    • LabVIEW
    • Other
  • General Discussion
    • Project Vault
    • Learn
    • Suggestions & Feedback
    • Buy, Sell, Trade
    • Sales Questions
    • Off Topic
    • Educators
    • Technical Based Off-Topic Discussions


  • Community Calendar

Found 78 results

  1. AD2 I2C via C++

    Hi, I've created a custom software program in C++ that uses analog discovery 2 and I have two questions. 1. I want to read some data using I2C interface, but I'm having trouble on the idea of how should I set up a "typical I2C" interface in C++. Is there an example anywhere on how exactly can this be accomplished in C++? 2. When reading the on-board temperature value in C++ I keep receiving a constant value if I'm doing multiple reads in a row. How can I fix it so that every time I read the AD2 on-board temp value I would get an updated temp value not the initial value? Thank you!
  2. Hey Everyone! I've been playing around with the AD2 for the past week or two and I'll have to say, I'm impressed at the bang for the buck here. However, in its current state, it seems to be a tool for hobbyists and tinkerers (which is great!), but can be lacking for creating a really sophisticated control system. I was wondering if it is possible to scale up the number of ADC (specifically) by making use of the trigger I/O pins in a daisy chain fashion to create maybe a 10 ADC channel system (5xAD2). I'm not sure it is available (or I just did not Google hard enough) but it would be great if Waveforms 2015 could interface multiple AD2 in a single script. This would allow a syncing up to the 5 AD2s allowing all data collected from each AD2 to be used in the script to adjust certain aspects of each AD2s outputs. Is this possible, within Waveforms 2015 or would I need to move to a custom piece of UI to handle this? If it is the latter are there any good resources? I'd rather not invest the time to start from scratch...
  3. Is there anyone that has a direct link to download just the USB drivers for the Analog Discovery II (not part of Waveforms 2015)? We are having driver issues on Windows 10. We've tried every other solution that we could find on these forums. (Manually pointing to the drivers, rebooting, reinstalling waveforms including the Adept Runtime, etc.) We are looking for JUST the drivers that someone from tech support can send us while trying to fix this problem.
  4. I am trying to figure out exactly what components on the Analog Discovery 2 are/contain non-volatile memory. I see that there is the calibration memory which must be NV because the user can re calibrate the device (I'm assuming that you don't have to do this at every power on, I may be wrong). Is this calibration memory Non-volatile? Are there any other IC's on the board that have NV memory on them? Are there any other NV memory IC's on the board? I saw that in the Analog Discovery 2 reference manual, you guys provide schematics of all of the functional parts of the Analog Discovery 2 device (i.e. ADC - analog section, ADC - digital section, etc.). I was wondering if there was a place I could find the full schematics for this device or at least a full BOM that I could cross reference each IC to and determine whether or not each component has NV memory. In our lab, anything that has any form of NV memory creates complications for us and I would need verification that this device does not in fact have any NV memory, or, if it does, I need to know exactly where on the device this NV memory resides and how it is written to if we are going to use these in our lab.
  5. USB Isolation

    Does anyone know if there is available for USB 2 with the Analog Discovery 2 isolation, that will operate at high speed (480 Mbps)?
  6. I am trying to find the script commands to access the Spectrum Analyzer in the Analog Discovery 2. I would like to specifically access the THD function to read a series of values at different frequencies (using the Wavegen), plot them and save them to a file. I am generally familiar with the use of scripts and have made them work on the scope, wavegen, etc. but cannot seem to find the commands to access the Spectrum Analyzer in Waveforms 2015. I have also used the debug function as well as the plot function so what I need are the specific access routines for the spectrum analyzer and its subfunctions (like THD, SNR, etc.)
  7. Hi, I've noticed a strange behaviour with my AD2. Doing some measurements I noticed that I read lower values on the AD2 and on my good old Tektronix 466 CRT scope, with 10x probes. I decided to investigate the issue and noticed that I had a significant difference on the AD2 between using no probe and a 10x probes. Without probes I used AD2 BNC adapotor + BNC>banana + hookup wire, and with 10x probes it was Tektronix P6106 and Tektronix 010-128. I used 2 different probes to make sure the probe isn't part of the issue. For example with an external 50R waveform generator I get 5VRMS without probes and 4,01VRMS with 10x probes for the same genertor setting. That's nearly a 20% difference ! I then put a 1M series resistor, without probe and with the same 5VRMS setting of the generator. I get a 2,07VRMS reading, which means the input resistance of the AD2 is about 706k instead of 1M, and that's what causes the error. I get the same results on both channels. I didn't find any reference on that issue on the forum. Can someone else that owns an AD2 do that test ? Do I have a faulty device ? Thanx in advance. Best regards. Eric B
  8. Hello All, We currently have the Discovery 2 in lab and use Waveforms to collect data. Is there anyway I can build a UI( think a simple form, name , value pairs ) into waveform to capture meta data while collection a sequence of scans ? I would like to embed the data into the scan file header or maybe in a txt file that I can write into the directory where the data is being written. Thanks so much for your help ! PS: I see that Matlab Supports the first version of the card, but nothing announced for version 2
  9. Hi, I would like my Scope acquisition to start when I hit "Run" on Channel 1 of my Wavegen. How do I set up this trigger? This is for Waveforms 2015. Thank you so much!
  10. Hi , while changing the frequency from WaveForms with Analog Discovery 2 the transition between frequencies is not a smooth, it forces the Wavegen to reset the start applying the new requested frequency. is it possible to have a smooth transition between frequencies for example while using the basic settings on WaveForms can I use the bar to set a new target frequency then the transition from the old running frequency to the new target one is controlled somehow like a small sweep to the new target frequency. hope that makes sense ..... regards
  11. SPI sensor script ReadWrite not working (3.6.8)

    In Waveforms 2015 3.6.8 on a Mac OS 10.11.6 with an Analog Discovery 2, I am not able to get the SPI sensor scripts to work. I'm having no trouble with Master or Custom scripts, but with the Sensor scripts the ReadWrite() commands always return an array of zeros, even if I'm not in Debug mode. (I tried starting from a fresh run of Waveforms, to make sure that the debug setting was not just being excessively sticky.) Can anyone else duplicate this behavior? Or is it just me? Incidentally, the documentation for the protocol instrument and the scripts is woefully inadequate—I had to figure out how things worked by trial and error, because of the extreme lack of information in the documentation.
  12. Hello, I have an issue similar to this one, but not related to USB hubs: Basically, after I installed Waveforms and the USB driver, I can no longer connect to the serial USB device that I am trying to debug! I am forced to kextunload and then kextload again to make them connect: ➜ ~ ls /dev/tty.* /dev/tty.Bluetooth-Incoming-Port /dev/tty.lpss-serial1 /dev/tty.lpss-serial2 ➜ ~ sudo kextunload /Library/Extensions/DigilentFtdiDriver.kext ➜ ~ ls /dev/tty.* /dev/tty.Bluetooth-Incoming-Port /dev/tty.lpss-serial1 /dev/tty.lpss-serial2 /dev/tty.usbserial-1412A /dev/tty.usbserial-1412B ➜ ~ sudo kextload /Library/Extensions/DigilentFtdiDriver.kext ➜ ~ ls /dev/tty.* /dev/tty.Bluetooth-Incoming-Port /dev/tty.lpss-serial1 /dev/tty.lpss-serial2 /dev/tty.usbserial-1412A /dev/tty.usbserial-1412B Is there any way to fix this? The other devices are using the generic FTDI VCP driver. My computer is the latest MacBook Pro 15".
  13. Regarding the oscilloscope on the Analog Discovery 2, is there a maximum amperage the device can handle? I am looking for an oscilloscope capable of looking at the output of a motor driver. While the driver's output is lower voltage, the datasheet says it can be anythere from 0.5-7.5 A per phase of output. If I want to look at one phase, will this level of current damage the Analog Discovery 2 in any way? Or can this device handle the task at hand? Thanks
  14. I'm using the Analog Discovery 2. When I use the oscilloscope, I seem to only be getting a signal snapshot as my output. For example, I ran the oscilloscope for about 1 minute (by hitting "run" and then "stop." I went to the Logging panel and hit "save." I got the attached data as my output. The attached data only spans about 0.1 seconds and also starts at a negative time, even though in my oscilloscope settings I specify that I want time to start at 0 secs. Also, I've tried logging data for different amounts of time (10 seconds, 1 minute, 2 5 minutes) and all the outputs come out to 8192 samples - I would prefer it if I could obtain more samples with an increased length of time sampling. Attached is a screenshot of my oscilloscope settings and logging settings. How do I program the oscilloscope so that I can acquire data over a longer period of time? Thank you so much! acq0003.csv
  15. Hi, I have a problem to connect LabView to the Analog Discovery 2. When I want to run the "Digilent_WaveForms_Frequency Sweep Generator and Acquisition (FGEN and MSO).vi" example on LabVIEW 2014 SP1 14.0.1 (32-Bit) this error occurs (WaveForms is closed): WaveForms 2015 3.5.4 (64-Bit) and Digilent WaveForms VIs is installed. The Waveform Generator is working with WaveForms software and the signal is detected by an extern oscilloscope.
  16. Would it make the Analog Discovery 2 more powerful device if it is added the feature to measure current too? Furthermore it can still draw the IV-Characteristic curve using XY draw function in Oscilloscope for which we use some low value resistor etc. But will it be not more easy to use and be precise if it has built-in current measurement capability and can draw the IV-Characteristics directly for device under test?
  17. Hi, I'm trying to use the Analog Discovery 2 to control a stepper motor driver board. All I need to do is send an output (5V) signal using a DIO. I find the Waveforms 2015 manual to be lacking in terms of documentation for this - it does not explain how to give an output signal. How do I do this? Thanks! For instance, the reference manual has this sample code: function doStaticIO(){ print("Running StaticIO script"); StaticIO.Channel0.Mode.text = "IOs"; for(var c = 0; c < 8; c++) { StaticIO.Channel0.DIO[c].Mode.text = "Switch"; } But it is never explained what a Channel is either. What is a Channel and how is it different from DIO1, DIO2, etc.? Thank you so much!
  18. Hi, I'm using the Analog Discovery 2 with Waveforms 2015, and would like to trigger the scope and the waveform instruments to run at the same time. I can only trigger the waveform. How do I trigger the scope at the same time I trigger the waveform? Thanks!
  19. Hello. I’m trying to generate the custom data by using pattern generator in Analog Discovery 2. Although I set the digital output mode as custom, the output data is depend on the setting of the FDwfDigitalOutCounterInitSet. For example, I try this code and the custom data is not come from the pattern generator. rg(0) = &HAFAFAFAF FDwfDigitalOutTypeSet(hdwf, 7, 1) FDwfDigitalOutDataSet(hdwf, 7, rg(0), 32) Then I add the FDwfDigitalOutCounterInitSet and the output data is successfully generated. rg(0) = &HAFAFAFAF FDwfDigitalOutTypeSet(hdwf, 7, 1) FDwfDigitalOutCounterInitSet(hdwf, 7, 1, 10) FDwfDigitalOutDataSet(hdwf, 7, rg(0), 32) What does the FDwfDigitalOutCounterInitSet mean when the output mode is custom?
  20. I'm running waveforms 2015 3.5.4 and got a bug/request. When changing the timebase, the position should not change. When I use the scroll the wheel or the timebase pop-up the actual position of the trigger point moves around in the scope graph window, this is very frustrating. Once you set the trigger x position, it should never move. Thanks.
  21. Trigger Output

    Can I setup Analog Discovery 2 to have a trigger output..?
  22. Hi, I need some clarifications about Digilent Analog Discovery 2. As advertised on the Video The Wave Forms 2015 with Analog Discovery 2 Should have a Volt Meter , so where is it ??? 2- Also the video is showing frequency Response at 50 MHz, when I try to edit the Wave Forms 2015 , I can't enter a value over 10 MHz but in the video it's showing that he entered 50 MHz in stop Frequency. (check the photo with the Red Arrow which is captured from the Video.) 3- My Analog Discovery 2 is dropping below - 3db at around 6 MHz .....?? (check the other picture below ) What is wrong??? I need and answer Please. Thank You
  23. Hello, I’m trying to generate the data whose length is over 1000bits by using the pattern generator in Analog discovery 2. I use Microsoft Excel VBA or Python and command FDwfDigitalOutDataSet. But the VBA cannot treat the int data whose length is over 1000bit in binary. Is there any way to transmit the large data to the pattern generator by using VBA or Python? Thanks.
  24. I am trying to write a Python script for a repeated-mode simultaneous logic analyzer / oscilloscope capture using the Analog Discovery 2 and running into some problems. How do I set active digital channels? For example, if I want to modify the DigitalIn_Record example to record from both channel 0 and 1. Is there an analogous command to the AnalogIn version: dwf.FDwfAnalogInChannelEnableSet(hdwf, c_int(0), c_bool(True)) Sorry if this is a trivial question but I cannot find an example or note in the reference manual.
  25. Performing the initial "Getting Started" "Step 7: Take a Measurement" at 1V@20kHz 'looks' as expected, but at 20mv@20kHz tremendous noise is visible and it gets worse at lower voltages. The noise is there at higher level signals, e.g. > 50mV but it's just harder to notice on the oscilloscope. The result is the same with factory and local calibration. Unchecking the oscilloscope channel's "Noise" checkbox does not help. Is this device defective or is this a product limitation? Could you please advice on how to get a clean low level signal? Platform: USB powered Mac installation on a MacBook Pro under OSX 10.11 Attached PDF: window shapshots of WaveGen and Scope at 1V and 20mV; picture of AD2 connections. AD2 signal noise.pdf