-
Notifications
You must be signed in to change notification settings - Fork 31
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
Python demo code - continuous read/write failure #201
Comments
Hi, I ran a test on a clean Windows 10 PC, using the same setup you described above and I can't reproduce the issue. Thank you! |
I'm having the same issue. I don't really understand how the buffer system works, but I'm using def refill_data(num_samples, voltage):
return [voltage] * num_samples
num_samples = session.queue_size + 1
chan_a.write(refill_data(num_samples, voltage_out[0]), -1) I'm getting the error
and
The error appears after a few minutes at 100,000 samples/s, an hour at 10000, and a few hours at 6000. I am considering using channel.flush() to clear the buffers before each write? I have no idea how to get this to stop happening, it crashes the program, and this is being used in a study that is supposed to run for 500hrs. Appreciate the help, |
Windows 10, using Python 3.10, REV-F board. Installed using "pip install -i https://test.pypi.org/simple/pysmu". Code runs/prints for a few seconds then throws an error.
Traceback (most recent call last):
File "libsmu.pyx", line 626, in pysmu.libsmu.SessionDevice.write
RuntimeError: data sample dropped: The directory cannot be removed.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\XXX", line 67, in
chan_a.write(refill_data(num_samples, i % 6), -1)
File "libsmu.pyx", line 782, in pysmu.libsmu.Channel.write
File "libsmu.pyx", line 636, in pysmu.libsmu.SessionDevice.write
pysmu.exceptions.SampleDrop: data sample dropped: The directory cannot be removed.
The text was updated successfully, but these errors were encountered: