• Content Count

  • Joined

  • Last visited

About DurandA

  • Rank

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Thank you for your help, this solved the issue. I was running WaveForms 2.21.3 but was missing the Adept Linux runtime. I am surprised that it even worked without the package. Device discovery is also much faster now. Thanks @attila!
  2. Hi @attila Unfortunately your solution does not work. The power supply still shuts down during the second FDwfDeviceOpen() for about 1 second. Here is a minimal script to reproduce the issue: from ctypes import * from dwfconstants import * dwf = cdll.LoadLibrary("libdwf.so") hdwf = c_int() dwf.FDwfParamSet(DwfParamOnClose, c_int(0)) dwf.FDwfDeviceOpen(c_int(-1), byref(hdwf)) dwf.FDwfDeviceAutoConfigureSet(hdwf, c_int(0)) dwf.FDwfAnalogIOChannelNodeSet(hdwf, c_int(0), c_int(0), c_double(True)) dwf.FDwfAnalogIOChannelNodeSet(hdwf, c_int(0), c_int(1), c_double(1.15)) dwf.FDwfAnalogIOEn
  3. I am trying to automate some tests using different supply voltages. First, I am using dwfcmd to set a voltage during the setup phase: dwfcmd connect analogio channel=1 enable=1 voltage=1.15 masterenable=1 disconnect Then I use a Python script to vary the voltage: from dwfconstants import * dwf = cdll.LoadLibrary("libdwf.so") hdwf = c_int() print("Opening first device") dwf.FDwfDeviceOpen(c_int(-1), byref(hdwf)) if hdwf.value == hdwfNone.value: print("failed to open device") quit() time.sleep(5) dwf.FDwfAnalogIOChannelNodeSet(hdwf, c_int(0), c_int(0), c_double(True)
  4. @attila This seems to be a bug with WaveForms. I successfuly captured data with the same configuration (see screenshot above) on WaveForms 3.8.2 (Linux/Windows) while WaveForms 3.10.9 (Windows) and 3.11.4 beta (Windows) lost digital samples.
  5. Thanks for the answer. I also tried without data compression and that doesn't fix the issue.
  6. I want to record data on one channel using the scope tool from WaveForms using the Analog Discovery 2. Additionally, I need to record digital signals on 4 channels at the same time in order to delimit windows for post-processing. Even at a (very) low sampling rate, WaveForms displays "Samples were lost! Reduce sample rate." when I attach some digital channels to the scope tool. Even when the sampling rate is reduced to 1Hz, this error still happens. Is this a WaveForms bug? I put my workspace in attachment to reproduce the issue. scope-digital.dwf3work
  7. Is it possible to use digital signals in addition to analog channels with the data logger (Logger) tool in WaveForms? I know this is possible with the Scope tool. However, I want to use digital signals generated from a MCU to delimit windows in long-running captures. Is it possible to access digital channels from a script using a function?