I am trying to acquire data from a Raspberry Pi 4 with the following 4 daqhats simultaneously:
2 x MCC172 board
1 x MCC128 board
1 x MCC152 board
I can acquire data from each DAQ HAT individually without an issue. However, I am having trouble reading all data of all boards simultaneously and combining them using python on the raspberry pi. I have also tried using multiple processes using the builtin multiprocessing module in Python3.
The code I am using is a combination of the continuous measurement scripts in the examples folder found on GitHub. The only change I have made, is to use the following settings for each board:
2 x MCC172 boards: scan_rate 51200 & samples_per_channel 10240 (2 x channels used for each board)
1 x MCC128 boards: scan_rate 12500 & samples_per_channel 12500 (8 SE x channels used for board)
1 x MCC152 boards: 5 samples for each channel per second (10 DI x channels used for board)
The first gathering of data takes a couple of seconds and causes the Buffer Overrun to become true for the MCC172 boards (with 51.2 kHz). The delay in the first loop does not affect the data acquisition in the other boards.
Are there any examples on how to read data from multiple boards simultaneously in Python? Or has anyone had the same issue and could solve it?
Question
RPi4-IPC
Hello everyone,
I am trying to acquire data from a Raspberry Pi 4 with the following 4 daqhats simultaneously:
I can acquire data from each DAQ HAT individually without an issue. However, I am having trouble reading all data of all boards simultaneously and combining them using python on the raspberry pi. I have also tried using multiple processes using the builtin multiprocessing module in Python3.
The code I am using is a combination of the continuous measurement scripts in the examples folder found on GitHub. The only change I have made, is to use the following settings for each board:
The first gathering of data takes a couple of seconds and causes the Buffer Overrun to become true for the MCC172 boards (with 51.2 kHz). The delay in the first loop does not affect the data acquisition in the other boards.
Are there any examples on how to read data from multiple boards simultaneously in Python? Or has anyone had the same issue and could solve it?
Thanks in advance for any answers
Link to comment
Share on other sites
3 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