-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dds.__update_dds throws an exception #628
Comments
Looking at the error from the trace the behavior of the libiio bindings does not appear correct. What version of pylibiio and libiio (the C library) are you using? |
Hey @tfcollins, my perma-links were not to the tagged branch I fixed that in my previous comment. I'm using the networked back-end from a host to a target, here's the versions I'm running let me know if that gives the information you need. on the host:
and on the target:
|
Can you downgrade to libiio v0.XX? libiio v1 is unstable and this commit has undesired behavior |
Hi @tfcollins, I can confirm that when downgrading to libiio v0.26 and re-installing pyadi-iio the issue is resolved. Any indication what is causing the problem for v1.0? I can patch pyadi-iio for the time being with a try-expect statement around the line that throws an error, but I would rather know what is causing the actual issue of 12 instead of 8 channels being reported. |
Returning more than 8 channels is expected. The issue is that in v1 the find_channel method will generate errors instead of returning None when no channel with a specific name is found. This is a bug in the libiio v1 bindings. You can see the return error is 0 which is not a valid error code |
Hi! When running https://github.com/analogdevicesinc/pyadi-iio/blob/main/examples/ad9361_example.py using the ADRV9361-Z7035 on the FMC carrier the following exception is raised:
Debugging shows that
len(self._txdac.channels)
inpyadi-iio/adi/dds.py
Line 19 in 191e31d
altvoltage
signals are 0-7 causingpyadi-iio/adi/dds.py
Line 20 in 191e31d
The text was updated successfully, but these errors were encountered: