Jump to content

attila

Technical Forum Moderator
  • Posts

    6,637
  • Joined

  • Last visited

Posts posted by attila

  1. Hi @Shalin

    The supply voltage applies to all DIO and DIN channels.
    The IO and IN channels have different frontends, see:
    https://digilent.com/reference/test-and-measurement/digital-discovery/reference-manual#io_level_translators
    https://digilent.com/reference/test-and-measurement/digital-discovery/reference-manual#input_dividers
    The SPI and other protocols swap the capture order of IO IN channels, so DIOs are first. To use a DIN channel as MISO configure data 1 to be 16+DINnumber, like FDwfDigitalSpiDataSet(hdwf, 1, 16) for DIN-0

  2. Hi @mms14

    Only natural division of system frequency are supported. With the default 100MHz closest would be 5.882MHz.
    For 6MHz set system frequency for instance to 120MHz. dwf.FDwfDeviceParamSet(hdwf, DwfParamFrequency, 120000000)

     

    See WF SDK/ samples/ py/ DigitalIn_Record.py example
    Set number of minimum samples you want to capture before trigger as Prefill and the exact number after trigger as Position.
    After the capture is done the data need to be aligned. rgwSamples = rgwSamples[iSample:]+rgwSamples[:iSample]

    For digital record 6MHz is on the limit to work, buffer overflow may occur.
    To improve the record use the 4th or 5th device configuration.
    dwf.FDwfDeviceConfigOpen(-1, 3 or 4, byref(hdwf)) 

    If the average signal toggle rate is less than 3MHz use data compression. This way you may be able to use even higher record rate, like 120MHz
    See DigitalIn_Record_Compress.py example

×
×
  • Create New...