Search the Community

Showing results for tags 'digitaldiscovery'.



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 and the WaveForms software
    • LabVIEW
    • FRC
    • Other
  • General Discussion
    • Project Vault
    • Learn
    • Suggestions & Feedback
    • Buy, Sell, Trade
    • Sales Questions
    • Off Topic
    • Educators
    • Technical Based Off-Topic Discussions

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

Found 5 results

  1. Dear all, I'm using the "Digital Discovery" by script and I would like to know how to apply this pull up/down scheme by script: see attached picture I try the different "Supplies.Output.DigitalVoltage.DIOPP/DIOPE.value" suggested by Waveform when I put the mouse on the blue knob but it set all my channels to pull-down. Thanks in advance Best regards Etienne
  2. Hello, I'm a new user of the digital discovery, which already helped my a lot, but now I'm stuck. In my application I first have to configure a DDS by sending few words by SPI to it, and then I have to read an ADC by SPI. These two devices have separate SPI bus. The DDS is connected like this: nCS = DIO34, SCLK = DIO33, MOSI = DIO35 The ADC is connected like this: nCS = DIO31, SCLK = DIO30, MISO = DIO29 Is there a way by script to first write to the DDS, then reconfigure the SPI protocol pins to connect to the ADC and then read it? Thanks in advance. Best regards Etienne
  3. Hi, With Waveforms, I can output the DC voltage of the digital signals, i.e. 3.3V on DigitalDiscovery. But with a python script, I use : # set voltage to 3.3 V (DD) dwf.FDwfAnalogIOChannelNodeSet(hdwf, 0, 0, c_double(3.3)) # enable positive supply dwf.FDwfAnalogIOEnableSet(hdwf, 1) # enable VIO But, I cannot the get the 3.3V voltage reference. What is missing ? Thanks, BRgds, Laurent
  4. Hi, I am new to the Digital Discovery I am capturing data with the SDK and would like to get the data of each individual DIN pin separately instead of together in the same buffer. My setup: Signals coming in from DIN0 and DIN2. Code is given below. What I would like to do is add DIN3 as clk and get the data for that signal in a separate buffer. Currently the data for both signals comes in as combined and I have not been able to find a way to capture it separately in the SDK. This can however be done with Waveforms2015 and I am trying to mimic that. If I have to use a DIO as clk input, that would be fine too. hzSys = c_double() dwf.FDwfDigitalOutInternalClockInfo(hdwf, byref(hzSys)) divider_value = c_uint(int(hzSys.value/1e3)) pin_24_value = createdatavalue([0x01,0x03,0x07,0x0f,0x1f,0x3f,0x7f]) dwf.FDwfDigitalOutEnableSet(hdwf, c_int(0), c_int(1)) dwf.FDwfDigitalOutTypeSet(hdwf, c_int(0), DwfDigitalOutTypeCustom) dwf.FDwfDigitalOutDividerSet(hdwf, c_int(0), divider_value) dwf.FDwfDigitalOutDataSet(hdwf, c_int(0), byref(pin_24_value), 8*7) #pin_25_value = createdatavalue([0xaa,0xaa,0xaa,0xaa,0xaa,0xaa,0xaa]) pin_25_value = createdatavalue([0x00,0x00,0x00,0xff,0xff,0xff,0xff]) dwf.FDwfDigitalOutEnableSet(hdwf, c_int(1), c_int(1)) dwf.FDwfDigitalOutTypeSet(hdwf, c_int(1), DwfDigitalOutTypeCustom) dwf.FDwfDigitalOutDividerSet(hdwf, c_int(1), divider_value) dwf.FDwfDigitalOutDataSet(hdwf, c_int(1), byref(pin_25_value), 8*7) dwf.FDwfDigitalOutConfigure(hdwf, c_int(1)) sts = c_byte() dwf.FDwfDigitalInDividerSet(hdwf, c_int(10000)) dwf.FDwfDigitalInSampleFormatSet(hdwf, c_int(16)) nSamples = 8000 rgwSamples = (c_uint16*nSamples)() dwf.FDwfDigitalInBufferSizeSet(hdwf, c_int(nSamples)) dwf.FDwfDigitalInTriggerSourceSet(hdwf, c_ubyte(3)) # trigsrcDetectorDigitalIn dwf.FDwfDigitalInTriggerPositionSet(hdwf, c_int(nSamples)) dwf.FDwfDigitalInTriggerSet(hdwf, c_int(0), c_int(0), c_int(1<<1), c_int(0)) # DIO2 rising edge dwf.FDwfDigitalInAcquisitionModeSet(hdwf, acqmodeRecord) dwf.FDwfDigitalInConfigure(hdwf, c_bool(0), c_bool(1)) print (" waiting to finish") cAvailable = c_int() cLost = c_int() cCorrupted = c_int() cSamples = 0 fLost = 0 fCorrupted = 0 while cSamples < nSamples: dwf.FDwfDigitalInStatus(hdwf, c_int(1), byref(sts)) if cSamples == 0 and (sts == DwfStateConfig or sts == DwfStatePrefill or sts == DwfStateArmed) : # acquisition not yet started. continue dwf.FDwfDigitalInStatusRecord(hdwf, byref(cAvailable), byref(cLost), byref(cCorrupted)) cSamples += cLost.value if cLost.value : fLost = 1 if cCorrupted.value : fCorrupted = 1 if cAvailable.value==0 : continue if cSamples+cAvailable.value > nSamples : cAvailable = c_int(nSamples-cSamples) # get samples dwf.FDwfDigitalInStatusData(hdwf, byref(rgwSamples, 2*cSamples), c_int(2*cAvailable.value)) cSamples += cAvailable.value print ("Acquisition finished") dwf.FDwfDeviceCloseAll() print ("Recording finished") if fLost: print ("Samples were lost! Reduce sample rate") if cCorrupted: print ("Samples could be corrupted! Reduce sample rate") f = open("record.csv", "w") for v in rgwSamples: f.write("%s\n" % v) f.close()
  5. Any chance of support for JTAG protocol on the Digital Discovery? How about a driver for openocd that could turn the DigitalDiscovery in a jtag host. It could program the fpgas and flash memory, run gdb and collect trace data all from one little box. I am impressed. Is there an academic price ? John Eaton