mccdaq / daqhats

MCC DAQ HAT Library for Raspberry Pi
Other
125 stars 88 forks source link

Hardware overruns? #54

Closed DrBwts closed 11 months ago

DrBwts commented 1 year ago

7 x MCC172 Raspberry Pi 3 B+

I'm collecting data at 25.6KHz on all 14 channels & its been running fine for days but today I cant get past 10 seconds acquistition before it throws a "Hardware overrun" error. After I've loaded all the channel data into a buffer & then send that buffer via WiFi using MQTT. So roughly a packet/second.

nwright-mcc commented 1 year ago

The SPI bus on the Raspberry Pi is unable to keep up with continuous streaming from 7 x MCC 172s at 25.6 kHz (25.6kS/s 2 channels 7 devices = 358.4 kS/s aggregate). Per the data sheet, the max aggregate sample rate is 307.2 kS/s when using multiple MCC 172s, but this can vary with the type of Raspberry Pi used and the system load.

Some options are:

DrBwts commented 1 year ago

How odd, today the setup is having no overruns at all at 25.6KHz continuous acquisition on all channels.