-
Notifications
You must be signed in to change notification settings - Fork 10
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
No timeout when acquisition card bugs #44
Comments
Indeed this does not appear to be supported at the moment. I believe the best would be to have a timeout before acquisition starts (after it can last as long as necessary). Help welcome. |
Sometimes the card also seem to bug in the middle of the measurement at one point (for no reason that I can see), and never returns an error. |
the driver should also catch memory overflow and raise an error. It looks like it does not for now https://spdevices.com/images/stories/user_guides/14-1351_ADQAPI_Reference_Guide.pdf references a GetStreamOverflow method. It would additionnaly be nice to add in the driver the trigger limit (it is at .5V per default, I think this information could be written in the driver, what do you think ?) |
I believe both changes would be reasonable. The question would be when to check for Overflow we do not want to do that too often. |
A likely related issue occurs occasionally in the middle of measurements during DemodSPTask with ADQ14. Observed it when using 'avg_before_demod'. Traceback:
It seems that for some reason, either the acquisition card does not work properly (this occurs randomly) or resizing does not work in driver.get_traces. Then the array of traces that is returned is not of good dimensions (should be 2 in 'avg_before_demod' with 2 channels, dim1 ->channels, dim2 -> samples). After the call to driver.get_traces in perform of spdev_tasks.py, during treat_channel_data(.), an error occurs line 188
where here 50000 was the number of traces and 500 the number of samples. The shape of cosin, given by nsamples defined line 172 looks wrong. Indeed in 'avg_before_demod' ch should be dimension 1, but seems to be 2 here. I could not see what is causing the issue of size. Any idea? Or would it be acceptable to add a check on the size of the returned array ? |
@Billthered Could you share a typical configuration file exhibiting this issue ? I will try to have a look this week-end or next week. |
The issue comes from https://github.com/Exopy/exopy_hqc_legacy/blob/master/exopy_hqc_legacy/instruments/drivers/dll/sp_adq14.py#L250 |
Great ! As this occurs occasionally only (likely one out of 1.000.000 calls) I guess the best is to start a long measurement over the WE and see whether this happens again, I will be able to tell very soon! Thanks a lot @MatthieuDartiailh ! |
No fail over 10 billion traces over the WE. It seems fine and can be merged ! |
For example when you forget to turn on the modulation signal, the card can't demodulate (simply can't even trigger) but the program just stays stuck without returning an error or timeout at some point.
The text was updated successfully, but these errors were encountered: