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

Problem with export_data2 #84

Open
carmelalori opened this issue Oct 19, 2023 · 2 comments
Open

Problem with export_data2 #84

carmelalori opened this issue Oct 19, 2023 · 2 comments

Comments

@carmelalori
Copy link

Hi, I am trying to export data with time span. For that purpose, I am using the export_data2. However, it constantly gives error that is given below. How can I cope with that error?
Also, when I tried to run the demo, it also gave same error. I guess it is NAK error, however, I couldnot find any solution.

File "c:\Users\clori\test\main.py", line 49, in
s.export_data2(file_path_on_target_machine=path, digital_channels=[0,3], time_span= [1.0,2.0])
File "C:\Users\New\Desktop\Saleae\venv\Lib\site-packages\saleae\saleae.py", line 1048, in export_data2
digital_active, analog_active = self.get_active_channels()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "c:\Users\clori\test\venv\Lib\site-packages\saleae\saleae.py", line 651, in get_active_channels
device = self.get_active_device()
^^^^^^^^^^^^^^^^^^^^^^^^
File "c:\Users\clori\test\venv\Lib\site-packages\saleae\saleae.py", line 619, in get_active_device
self.get_connected_devices()
File "c:\Users\clori\test\venv\Lib\site-packages\saleae\saleae.py", line 595, in get_connected_devices
devices = self._cmd('GET_CONNECTED_DEVICES')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "c:\Users\clori\test\venv\Lib\site-packages\saleae\saleae.py", line 275, in _cmd
ret = self._recv(expect_nak=expect_nak)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "c:\Users\clori\test\venv\Lib\site-packages\saleae\saleae.py", line 259, in _recv
self._rxbuf += self._s.recv(1024).decode('UTF-8')

@ppannuto
Copy link
Owner

have you tried Saleae's new official library: https://saleae.github.io/logic2-automation/getting_started.html ?

@carmelalori
Copy link
Author

Thank you for yor response. I have tried the new library (logic2-automation) however, I want to export data with time span. New library has no option with exporting data with time span. Do you have any other advice on exporting data with time span?

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

No branches or pull requests

2 participants