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

get_capture_range throws ValueError #72

Open
tamenol opened this issue Mar 30, 2021 · 1 comment
Open

get_capture_range throws ValueError #72

tamenol opened this issue Mar 30, 2021 · 1 comment

Comments

@tamenol
Copy link

tamenol commented Mar 30, 2021

I use the following code snippet:

from saleae import Saleae, Trigger

s = Saleae()
s.set_active_channels(digital=[0], analog=[1])
s.set_sample_rate((500000000, 50000000))
s.set_digital_voltage_option(2)
s.set_trigger_one_channel(digital_channel=0, trigger=Trigger.Posedge)
s.set_capture_seconds(0.4)
s.capture_start_and_wait_until_finished()
s.get_capture_range()

This results in:

>>> INFO:saleae.saleae:Connected.
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "c:/Users/X.X/Documents/project/capture.py", line 10, in <module>
    s.get_capture_range()
  File "C:\Users\X.X\AppData\Roaming\Python\Python39\site-packages\saleae\saleae.py", line 755, in get_capture_range
    index_samples = list(map(int, map(str.strip, indexes.split(','))))
ValueError: invalid literal for int() with base 10: 'TRUE'

This is in W10 with Python3.9

@tamenol
Copy link
Author

tamenol commented Mar 30, 2021

The particular function got added in #69

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

1 participant