Jump to content
  • 0

Real sample rate of MCC134 does not reach 1 S/s


Daniel Deng

Question

image.png.9182d679da79231cf1dac90f542443a9.png

Hi, 

I ran this Python code to collect temperature data from the MCC 134 every second. However, I noticed that every 3 to 4 samples, there are two consecutive seconds that read exactly the same temperature data. It seems that the actual sample rate of the MCC 134 is slightly less than 1 S/s, because when I set time.sleep(1.5), the data varies between any consecutive samples.
 

Could you possibly test the actual sample rate and let me know if there's any way to ensure that the actual sampling rate reaches 1 S/s?

Thank you.

Edited by Daniel Deng
Make the question clearer
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Hello @Daniel Deng.

The MCC 134 has a maximum sampling rate of 1 Sample/sec (best case scenario of single reads in a tight loop).  Each sample is captured as a single value and a continuous scan capture (while available on some other DAQ HATS) is not supported on the MCC 134.  The effective capture rate is system dependent.  The more background processes running, the number of MCC 134 boards enabled, the number of enabled channels on each board, and your code all affect achieving the maximum sampling rate.

Are you using a RPi 5 module with the Raspbian Bookworm OS and 8 GB RAM?

Regards,

Fausto

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...