Search the Community

Showing results for tags 'waveforms'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • 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

Calendars

  • Community Calendar

Found 75 results

  1. Hello - trying to install waveforms on Ubuntu. Downloaded the .deb package but it has a myriad of conflicts and dependencies. Any help around? Thanks,
  2. """ DWF Python Example Author: Digilent, Inc. Revision: 2015/02/05 Requires: Python 2.7 Start synchronized the AWG outputs of multiple Analog Discovery devices. Connect the Trigger-1 pin of each device together. """ from ctypes import * import time import sys if sys.platform.startswith("win"): dwf = cdll.dwf elif sys.platform.startswith("darwin"): dwf = cdll.LoadLibrary("libdwf.dylib") else: dwf = cdll.LoadLibrary("libdwf.so") #print DWF version version = create_string_buffer(16) dwf.FDwfGetVersion(version) print "DWF Version: "+version.value cDevice = c_int() dwf.FDwfEnum(c_int(2), byref(cDevice)) # 2 = enumfilterDiscovery print "Found "+str(cDevice.value)+" devices" cChannel = 2 cOutput = cDevice.value*cChannel hdwf = c_int() #open device for iDevice in range (0, cDevice.value): dwf.FDwfDeviceOpen(c_int(iDevice), byref(hdwf)) if hdwf.value == 0: print "failed to open" quit() for iChannel in range (0, cChannel): print "Configure "+str(iDevice+1)+"/"+str(iChannel+1) # enable channel dwf.FDwfAnalogOutNodeEnableSet(hdwf, c_int(iChannel), c_int(0), c_int(True)) # 0 = AnalogOutNodeCarrier # configure dwf.FDwfAnalogOutNodeFunctionSet(hdwf, c_int(iChannel), c_int(0), c_int(1)) # 1 = funcSine dwf.FDwfAnalogOutNodeFrequencySet(hdwf, c_int(iChannel), c_int(0), c_double(1000.0)) dwf.FDwfAnalogOutNodeAmplitudeSet(hdwf, c_int(iChannel), c_int(0), c_double(1.0)) # set trigger source to external trigger 1 dwf.FDwfAnalogOutTriggerSourceSet(hdwf, c_int(iChannel), c_byte(11)); # 11 = trigsrcExternal1 #set different phase iOutput = iDevice*cChannel+iChannel dwf.FDwfAnalogOutNodePhaseSet(hdwf, c_int(iChannel), c_int(0), c_double(360.0*iOutput/cOutput)) # start the channel, this will wait for the trigger dwf.FDwfAnalogOutConfigure(hdwf, c_int(iChannel), c_bool(True)) # configure Trigger-1 pin to output the triggerPC signal for the last device dwf.FDwfDeviceTriggerSet(hdwf, c_int(0), c_byte(1)) # 1 = trigsrcPC # after open, before the first run wait a bit for the offsets to stabilize time.sleep(5) print "Pulse trigger to start generation..." dwf.FDwfDeviceTriggerPC(hdwf); time.sleep(60) print "done." dwf.FDwfDeviceCloseAll()
  3. Hello, I'm starting to work with custom scripts on my discovery 2 (with oscilloscope extension + probes). I'm trying to setup a measurement environment using the AnalogIn_Acquisition.py sample script. I have a power supply with output voltage at 4V. When I run the scope at WaveForms I get 4V reading, however, when I run the acquisition script I get 2.72V as average voltage. I also tried with the AnalogIn_Sample.py script and also get 2.73V. I wonder why such different results. Pictures bellow:
  4. Save an acquisition

    Hi all, I'm trying to save data from an acquisition but I'm not getting it. I mean, I want to document my tests and measurements. So, I wish to save the data in a way that I can later open it in WaveForms and navigate the capture. For now, I have only image but this does not help much. Does anyone know if WaveForms supports it? Thank you, João Paulo
  5. My Analog Discovery 2 was very sensitive to movement, with Waveforms reporting the connection lost at the slightest bump. Merely manipulating the flywire leads was enough to cause a disconnect. I determined that the plug on the USB cable that came with the AD2 was not able to seat completely into the AD2's USB jack. While looking through the top of the AD2's enclosure at the USB jack, I observed that the two metal "spring fingers" atop the USB plug were not inserting deeply enough into the jack to permit them to raise and latch into their corresponding holes in the top of the jack. After disassembling the AD2's enclosure, I used some (mechanical) files and an X-Acto knife to enlarge the enclosure's USB port hole so the entire USB plug can pass through (photo attached). With the enclosure assembled, the USB plug now seats completely into the AD2's USB jack. I can see that the two metal "spring fingers" advance into their intended positions and raise up into the jack's holes. Waveforms has yet to report a disconnect during my experiments with wiggling the USB cable.
  6. I would like to use waveform to log the digital output of 8 channels over a period of time. I currently manually record the output events for the 8 channels, but I would like to have the PC take a 100 ms measurement every 10 minutes and export this data to a new file every 10 minutes. Essentially, I would like to know if the waveforms software can automated run a measurement and export it to a tdms file every 10 minutes over a few days. Thanks
  7. Hello, For one of my school projects we were asked to find the minimum signal that will give a signal to noise ratio of 10 dB. How would I go about finding this? I know that the Spectrum Analyzer for the Analog Discovery would be used but I am unsure of how to find the signal to noise ratio of a signal. Thank you, cjobi247
  8. Hello, I'm a newbie using the Analog Discovery (Legacy), and attempting to run through a few experiments. When using the Power Source or "Supplies" tool in Waveforms 2015, all the directions and manuals show a dropdown menu where you can adjust the voltage (0-5V). The manual from Digilent's own website SPECIFICALLY regarding the Analog Discovery Legacy shows this as an option as well. I can't find any such option however in my program, it just isn't there. I should mention that I am powering the AD itself via USB from my laptop, but I don't think that is the issue as according to the status I am outputting ~5V via USB just fine, and the manual also shows the dropdown while being powered by USB. I also don't know what the little green bar underneath is supposed to represent, as it moves up only partially seemingly to random places when I turn on the "Master" enable, in case that it something to be concerned about. Any help is appreciated. Thanks!! P.S. Sorry for the re-post I realized I put this question outside the "Waveforms" Forum.
  9. Hello folks, I'm a newbie using the Analog Discovery (Legacy), and attempting to run through a few experiments. When using the power source tool via Waveforms 2015, all the directions and manuals show a dropdown menu where you can adjust the voltage (0-5V). The manual from Digilent's own website SPECIFICALLY regarding the Analog Discovery Legacy shows this as an option as well. I can't find any such option however in my program. I should mention that I am powering the AD itself via USB from my laptop, but I don't think that is the issue as according to the status I am outputting ~5V via USB just fine. I also don't know what the little green bar underneath is supposed to represent, as it moves up only partially seemingly to random places when I turn on the "Master" enable. Any help is appreciated. Thanks!
  10. Running 64-bit Ubuntu 16.04 and having trouble getting the .deb file to work to install Waveforms 2015. When I open the .deb file and click install, I see a progress bar briefly (<1 second) and then it disappears and the installation process doesn't start. Is this an issue on my end or with the .deb file on the website? Thanks edit: Having the same issue with Adept 2
  11. WaveForms 3.6.8 release

    Dear All, The new software version can be downloaded from the following page: https://reference.digilentinc.com/waveforms3 The changelog is available here: https://reference.digilentinc.com/reference/software/waveforms/waveforms-3/change-logs/3-6-8 See this blog for more details: https://blog.digilentinc.com/software-update-waveforms-3-6-8/ Please let us know if you have any observation. Thank you, Attila
  12. Hi folks, I'm currently hacking a 433Mhz temperature probe, and attempting to intercept the reading using a standard 433Mhz receiver, such as the Sparkfun RF Link Receiver. Using WaveForms (desktop) I can record the Logic Analyzer output, and can see the single fine. I'm currently in the process of parsing the bit stream. The signal is repeated every 59 seconds. However I need more samples, and the manual translation of the square wave to 0/1's is tedious and time consuming (and error prone). I'd like to create a script that will read the 'repeated' (not recorded, realtime) Logic1 data, look for the periodic transmission bursts, convert the encoded waves to a binary character stream (ex: "0101001010") and print it to the screen (or log to file). Is this approach possible, in the way I'm thinking of it? Or is there an easier/better way to approach it? Also, I haven't been able to find many Script samples around the Logic# object. I understand it is similar to the Scope# (for example), but still a closer sample wound be great. Any tips/suggestions? Thanks -John
  13. Measuring Frequency

    Hi Dear Digilent Team, A question concerning the measurement capabilities ot the Analog Discovery 2 and WaveForm software: Is it possible to measure continously and "without losses" a frequency of an analog or digital entry? Goal is to log a frequency over a long period of time between EACH following flanks Optionnaly also measure times between flanks of different channels Examples: - Measure the freq/time between each following rising flanks of a channel - Measure the freq/time between each following falling flanks of a channel - Measure the freq/time between each following flanks (rising and falling) of a channel ... Most scopes measure frequency only "around" the trigger flank Thanks for each feedback Regards
  14. 3.6.8 SDK release

    Dear Digilent, I've been exploring the 3.6.8 features and love the impedance analyzer. What's the schedule for updating the Waveforms SDK and its Reference Manual? I'm very interested in automating some impedance measurements using python. If this has been done already, I apologize for not finding and asking this question. Thanks for the awesome tool. Craig ps. here's my video I created a couple days after 3.6.8 release, Analog Discovery 2 Impedance Analyzer, OPTs and What Tube Plates Really See!!!
  15. During device opening internal chips are enabled and configured. This results in consumption increases, specially when the 100 MHz clock (PLL) is started. The needed current increases from 100mA to 500mA. In case the USB can't provide enough current the voltage drops below the minimal required for the device to operate and communication fails. In case you get “Device configuration failed (PLL 1)" or "Communication with the device failed.” error message: The device needs at least 2W/400mA from USB cable. To satisfy this: - Try to use different USB cable and computer plug. - Use the USB plug on the back of the PC, not the one on the front panel. - Use short cable, do not use long cable or cable extender. - Use powered USB-hub, avoid un-powered hub. - Use USB-Y cable to load power from two plugs. Device not detected by WaveForms: Open Windows Device Manager then connect the device and wait up to one minute for a device to appear: - USB Serial Converter, with warning - Connect the device directly to the computer's USB plug without using external hub. - Restart the computer. - Reinstall WaveForms, including the Adept Runtime section. - USB Serial Converter, without warning - Restart the computer. - Reinstall WaveForms, including the Adept Runtime section. - Other application might have erased the USB controller EEPROM (FT_Prog, programming cable drivers...) Ask for the reprogram application from support@digilentinc.com - Unknown Device Check the Hardware IDs under device Properties, Details tab - USBVID_0403&PID_6014 The USB driver is not installed. - Restart the computer. - Reinstall WaveForms, including the Adept Runtime section. - USBVID_0000&PID_0000 Device not identified or malfunction. See "Nothing shows up". - Nothing shows up: - Connect the device directly to the computer's USB plug without using external hub. - Try to use different USB cable and computer plug. The device or its plug might be damaged.
  16. Hi , Is it possible to sweep up the frequency then down in a continuous run ? like sweep the frequency from 5 kHz to 100 kHz then back to 1 kHz. regards
  17. I have been using my Analog Discovery to measure output signals from a 3-axis accelerometer (Adafruit ADXL377) during an impact test event. Being a 2-channel device I have to first measure the X+Y outputs then repeat the impact event measuring the Y+Z outputs. I export these data then use a bit of Python code to combine two tests into a single result whereby I calculate the total acceleration by summing the squares of each axis (X+Y+Z). I trigger the scope off the Y-axis and make the assumption that the Y-axis acceleration is the same in each of the paired impact tests (which seems a reasonable assumption for these initial tests). For any given "impact test" I repeat the test 10 consecutive times measuring the X+Y outputs then 10 consecutive times measuring the Y+Z outputs then combine these data onto 10 X+Y+Z data set for analysis. I see some differences in the combined X+Y+Z data depending on which set of Y output data is used for the combined X+Y+Z data. The impact test itself has some inherent variability so this dual measurement just adds to the "noise" so the number of experiments needs to increase in order to make the experiment results valid. It seems at first glance that if I bought a second Analog Discovery unit I might be able to simultaneously measure the X+Y outputs on unit "A" and Y+Z outputs on unit "B". I would setup each scope to trigger off the same Y output so presumably they would trigger at the same time. Has anyone tried this before?
  18. I'm confused ... should I be downloading and using waveforms2015 or waveforms? waveforms2015 seems to be the name of a program that is two years out of date, however @jpeyron just recommended that this is the newest version of the waveforms software. Am I missing something? Thanks! Dan
  19. In Waveforms 2015, is it possible to set up a wave in the AWG to be triggered by every other pulse in the scope? I'm currently trying to use a 10 Hz external pulse connected to the Analog Discovery's scope as the trigger for a 5 Hz waveform from the AWG, but I need to have the event trigger only once the 5 Hz waveform has finished one pulse. Effectively, I'm putting together a slower trigger for one device that's triggered from the AD's scope using a faster external pulse. It appears that Waveforms 2015 has some logic capabilities incorporated into the software, but as I don't have a background in logic circuits I'm not even sure if the logic circuit feature can work this problem out. Any help with this will be much appreciated~
  20. 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!
  21. I seem to be having trouble getting the AD2 to trigger on a repeated pulse. If I trigger on the edge of DIO 7 then it triggers OK (see logic_trigger_simple), problem is that power up sends spurious signals sometimes and so I'm tring to pulse on the counter. I have the counter set up as the other screenshot but it just will not trigger like that. There is no reset so I've set reset to DIO 15 which is unused and tied to ground. How can I get this to trigger on the number of pulses. Also, in the protocol triggeringl, is there any way to trigger on a sequence of hex values, rather than just one - if not in the main software - can this be done with the SDK? Thanks, Matt
  22. Hi all tagging some experts @jpeyron @attila Thank you for all the help in previous questions! From what I have gathered up till now is that I cannot access the protocol analyzers since they are at the application level and are not exposed to the SDK. However in my application I need a protocol analyzer along with the analog read of the AD2 simultaneously. (attaching previous post) So my only hope is to make a custom protocol analyzer to get the logic bitstream from the digital pins along with the raw waveform data. I tried to do the same in the code snippet attached. However the program hangs at line #79 at FDwfAnalogInStatusData. And also the logic bits i have read at this point do not reflect the right logic levels. Is there something I am missing? What is the right way to get both analog and digital data from the oscilloscope? EDIT: When it is not hanging at that line the digital values i have read from the digital pins are not the right value i am supposed to see (dont see the logic stream of the signal just half 1s and the other half 0s). How does it have to be setup to ready a signal with 500K - 1MHz signal levels? Thanks in advance! Shabbir main.cxx
  23. Hi, I am using the Waveforms APIs to process the raw waveform data from the oscilloscope of AD2 to a C++ code. My other requirement is to use the logic analyzer simultaneously to get the data bit stream of data as well. 1. I was able to do this on the Waveforms 2015 GUI but is it possible using the APIs? 2. There are analyzers (SPI, I2C, Serial, CAN etc.) present in the Waveforms GUI, but is there a preset to do the same in the API? (not just being able to read 0/1 but analyse the SPI/CAN bus) Thanks, Shabbir
  24. Hi I am trying to install waveforms to use the analog discovery box. I am in Linux using Ubuntu and I have downloaded both adept and Waveforms and tried installing both using the terminal and everything seems like it installed but when I search to open Waveforms I can't find it. I'm not sure what is wrong or why they are not installing properly. I'm using the 64 bit for both. Please Help Thanks
  25. I'm using WaveForms (and Javascript) for the first time. My problem is really simple; I measure a voltage signal with the Analog Discovery 2, and want to get a "long" file with data over several seconds. When using the record-function and exporting data, I only get 1000.000 data points with the frequency required, and I can't seem to figure out how to save the raw data in the script. If anyone can help this rookie, I'll be very grateful! I think I'll need a whole new script, but it looks like this right now: ch = Scope.Channel1 var newfile = File("~/Desktop/scope/measure.csv") if(!nyfil.exist()){ var AllData = Date()+","+ch.data+" nyfil.appendLine(AllData) Index++