Jump to content

positron

Members
  • Posts

    2
  • Joined

  • Last visited

positron's Achievements

Newbie

Newbie (1/4)

1

Reputation

  1. Hello. Last week I've upgraded from WaveForms 3.18.1 to 3.23.3 and noticed a problem with SDK. When I do oscilloscope record with a small number of samples (on AnalogDiscovery2 the threshold size is 8190), the recording loop reports all the available data on first iteration and the library immediately returns all the requested data, but filled with garbage. If duration of recording is measured, it is 0 seconds instead of n_samples/freq. Larger number of samples (8191+) perform correctly. I could reproduce it on Windows x64 and Debian x64. The same program records perfectly well on version 3.18.1. Here is a minimal example. It is a modified AnalogIn_Record.py program with added time measurement and number of samples set to 8190.(and frequency set to 4000, so it should take ~2s to record). On 2.23.3 it takes 0s to collect data, on 3.18.1 it takes 2s correctly. The pictures show how same code runs on 3.18 and 3.23 with capture duration and plot. PS On Linux, 3.18 works correctly with both Adept runtimes I've tried, 2.26.1 and 2.27.7. digilent.py
×
×
  • Create New...