Hi, I've been using mcc128 hats for data aquisition, but as I increase the total number of hats to 4. My data aquisition code will encounter overrun error more frequently. Hope to get some suggestions to solve this issue.
My setup:
Raspberry Pi 4 with four stacked MCC 128 hats, all of them were read with sampling rate of 100 kS/s in continuous mode, and data were saved every second. All hats were were synchronized by connecting the CLK pins together and using flag EXTCLOCK.
For the function a_in_scan_start(channel_mask, samples_per_channel, sample_rate_per_channel, options), i set the samples_per_channel = 100k, sample_rate_per_channel=50k (my understanding is this parameter is only for buffer size).
Now after start my data aquisition code with the set up described above, I usually encountered the buffer overun error or hardware overrun in a few minutes. However, when I had the 3-hats setup (one hat less than the current setup), such issue was much less frequent, I usually see a buffer overrun error after tens of hours.
Could anyone share insights on why i am seeing such error for 4 hats setup while no issue for my 3 hats setup? Also, can someone explain in detail what exactly buffer overrun and hardware overrun errors are? what's the difference between those two errors?
Question
fpandpf
Hi, I've been using mcc128 hats for data aquisition, but as I increase the total number of hats to 4. My data aquisition code will encounter overrun error more frequently. Hope to get some suggestions to solve this issue.
My setup:
Raspberry Pi 4 with four stacked MCC 128 hats, all of them were read with sampling rate of 100 kS/s in continuous mode, and data were saved every second. All hats were were synchronized by connecting the CLK pins together and using flag EXTCLOCK.
For the function a_in_scan_start(channel_mask, samples_per_channel, sample_rate_per_channel, options), i set the samples_per_channel = 100k, sample_rate_per_channel=50k (my understanding is this parameter is only for buffer size).
Now after start my data aquisition code with the set up described above, I usually encountered the buffer overun error or hardware overrun in a few minutes. However, when I had the 3-hats setup (one hat less than the current setup), such issue was much less frequent, I usually see a buffer overrun error after tens of hours.
Could anyone share insights on why i am seeing such error for 4 hats setup while no issue for my 3 hats setup? Also, can someone explain in detail what exactly buffer overrun and hardware overrun errors are? what's the difference between those two errors?
Thank you!
Link to comment
Share on other sites
5 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now