Jump to content

RPi4-IPC

Members
  • Posts

    2
  • Joined

  • Last visited

RPi4-IPC's Achievements

Newbie

Newbie (1/4)

0

Reputation

  1. Hey @JRys, Thanks for the quick and helpful reply. Perhaps I used the wrong terminology there. By simultaneous data acquisition from all boards, I meant parallel data acquision from all boards and not exact synchronized data acquisition. Is it then correct for me to assume, that it is possible to acquire data from multiple different DAQ HATs in different processes or threads at the same time, and the code I am using at the moment is not optimized for what I want it to do and it is not a hardware limitation? Best Regards
  2. Hello everyone, 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? Thanks in advance for any answers
×
×
  • Create New...