-
Notifications
You must be signed in to change notification settings - Fork 41
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
some issues with continuous.read #35
Comments
0x1E is 30 in decimal and stands for 30 MHz. The modded firmware and custom firmware support some new sample rates. It is not supported by the stock firmware. The list of sample rates is: 10,20,50=100/200/500kHz, 1,2,4,8,12,16,24,30,48 = samplerate in MHz. 48 MHz doesn't really work, since USB 2.0 is too slow.
This is not what happens for me. Did you install the modded firmware, or the custom firmware? Also try a different USB port/hub. If you can only read up to 12 MB/s, there may be some other USB device on the same bus that needs some bandwidth. This also explains the gaps you see. I can sample up to 30 MB/s with very few gaps. You can also choose 8MB/s by setting the sample_rate_index to 8. |
I finally got around playing with my Oscilloscope again. Please try this patch: jhoenicke@6dfbf52
|
thanks a lot for checking that out!
I'm very busy right now, but will definitely test it, when I find some more
time...
2017-04-24 18:00 GMT+02:00 Jochen Hoenicke <[email protected]>:
… I finally got around playing with my Oscilloscope again. Please try this
patch: ***@***.***
<jhoenicke@6dfbf52>
1. The sample rate 0x1e = 30 was too high for isochronous transfers.
2. The firmware wasn't reflashed and this leads to the python library
not supporting the single channel mode (maybe I can change the python
library to autodetect single channel support). Single channel is important
to get 24Msamples/s, and explains why you only got 12288000 samples/s (3072
bytes per 1/8 ms divided by number of channels).
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#35 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ANHZpmebD6-FgJl5k6lyEsbVtPl3BIlbks5rzMc2gaJpZM4JpW30>
.
|
Hey @jhoenicke, thank you for helping.
I've also come to the conclusion, that the sample_rate or better the data-point-creation-rate is always 24*10⁶ data points per second. And here my current code for deleting the useless values:
|
thanks for sharing the api!
I would like to gather data for a longer period of time. I've played around with the continuous read script, and have some questions.
sample_rate_index = 0x1E
What does 0x1E stand for? I couldn't find it in the dictionary of SAMPLE_RATES in LubUsbScope.py; The oscilloscope gathers 12 Million data entries within one second, so I suppose that it's a sampling rate of 12 MS.
It doesn't seem to be possible to change the sample_rate, when using the read_async method. The data has always a length of 12288000 (within one sec), regardless of chosen sample rate and the data looks strange (gaps between measured samples). Is this a limitation, or am I not understanding something?
'Also the data_points doesn't seem to change anything. I'm a little bit confused about that.
It would be great, if you could clarify these points. thanks
piotr
The text was updated successfully, but these errors were encountered: