I am currently running my ADP3450 in Linux mode. I have uploaded the python samples located in .\Digilent\WaveFormsSDK\samples\py onto the device, and running several scripts provides correct results.
However, when running AnalogIn_FFT.py via the command python3 AnalogIn_FFT.py, I run into an error, which is pasted directly below:
digilent@ADPro:~/wf$ python3 AnalogIn_FFT.py
Loading libdwf.so
DONE LOADING
DWF Version: b'3.17.1'
Opening first device
fpga_manager fpga0: writing design_1_wrapper.bit.bin to Xilinx Zynq FPGA Manager
Generating sine wave...
Samples: 32768
Starting oscilloscope
Acquisition done
Traceback (most recent call last):
File "AnalogIn_FFT.py", line 106, in <module>
dwf.FDwfSpectrumWindow(byref(rgdWindow), c_int(nSamples), DwfWindowFlatTop, vBeta, byref(vNEBW))
File "/usr/lib/python3.7/ctypes/__init__.py", line 369, in __getattr__
func = self.__getitem__(name)
File "/usr/lib/python3.7/ctypes/__init__.py", line 374, in __getitem__
func = self._FuncPtr((name_or_ordinal, self))
AttributeError: /lib/libdwf.so.3.17.1: undefined symbol: FDwfSpectrumWindow
As can be seen, the device loads in, and the sine wave is generated. However, something with the linker library appears to not be working?
I located the libdwf.so file in the lib directory, but opening the file just shows garbage data. There were two other versions of the file in the lib directory, libdwf.so and libdwf.so.3, but changing the AnalogIn_FFT.py to reference those still gets the same error.
Is anyone aware of why the FDwfSpectrumWindow is not appearing? Any help would be appreciated, and if any other information is provided, please do not hesitate to ask.
Question
Caleb Messerly
I am currently running my ADP3450 in Linux mode. I have uploaded the python samples located in .\Digilent\WaveFormsSDK\samples\py onto the device, and running several scripts provides correct results.
However, when running AnalogIn_FFT.py via the command python3 AnalogIn_FFT.py, I run into an error, which is pasted directly below:
As can be seen, the device loads in, and the sine wave is generated. However, something with the linker library appears to not be working?
I located the libdwf.so file in the lib directory, but opening the file just shows garbage data. There were two other versions of the file in the lib directory, libdwf.so and libdwf.so.3, but changing the AnalogIn_FFT.py to reference those still gets the same error.
Is anyone aware of why the FDwfSpectrumWindow is not appearing? Any help would be appreciated, and if any other information is provided, please do not hesitate to ask.
Thanks again,
Caleb
Link to comment
Share on other sites
5 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now