Skip to content
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

examples/iio_readdev.py: --samples argument selects number of bytes instead of number of samples #714

Closed
jcormier opened this issue Jul 12, 2021 · 0 comments · Fixed by #715

Comments

@jcormier
Copy link
Contributor

--samples argument selects a number of bytes instead of a number of samples like the c version of the app.

It would be nice to have a working example on how to iterate through samples instead of bytes

$ python3 libiio/bindings/python/examples/iio_readdev.py -u ip:192.168.0.29 -s 2 ads1246 | hexdump
0000000 ffff                                   
0000002
$ iio_readdev -u ip:192.168.0.29 -s 2 ads1246 | hexdump
0000000 ffff 007f 0001 0000 8953 42b6 29fa 1691
0000010 ff7f 007f 8953 42b6 e236 431a 29fa 1691
0000020

libiio version:

$ python3 libiio/bindings/python/examples/iio_info.py --uri ip:192.168.0.29
IIO context created: network
Backend version: 0.21 (git tag: 48e5852
...
jcormier added a commit to jcormier/libiio that referenced this issue Jul 13, 2021
jcormier added a commit to jcormier/libiio that referenced this issue Jul 13, 2021
jcormier added a commit to jcormier/libiio that referenced this issue Jul 13, 2021
pcercuei pushed a commit that referenced this issue Jul 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant