I had a working Debian 8 production system using python2.7 to talk to an Analog Discovery 2. I decided to update the .deb packages to be current and now I get "Segmentation fault" "stack smashing detected" when I try to start my python program.
I was using the amd64.deb files:
digilent.adept.runtime 2.16.6
digilent.waveforms 3.5.4 (for the libdwf.so file)
Upgraded to
digilent.adept.runtime 2.17.1
digilent.waveforms 3.7.5
Also on the system is digilen
Hi @Torfey
I think I found the issue...
Your application lacks the channel index argument in the following functions and only God knows what is the value of a missing argument: dwf.FDwfDigitalOutEnableSet(self.hdwf, c_int(i), chen)
dwf.FDwfDigitalOutEnableGet(self.hdwf, c_int(i), C.byref(chen))
It took me a few hours to figure this out... It was strange that your application was working under Windows but not under Linux.
If understand correctly you are using the digital-out only