Jump to content
  • 0

MCC 128 & MCC 172 frequency question


skycraper3

Question

Hello,

I'm using MCC 128 and MCC 172 for data acquisition and noticed frequency is not exact.

My application is continuous acquisition and split data at every hour reached, timestamps of these file is increasing constantly like
00:00:00.data
01:00:00.data
02:00:01.data
03:00:01.data
04:00:02.data...
, every file has exactly same size because it just appends data from "a_in_scan_read(frequency, timeout)" 3600 times to binary.

This application running on 2048 Hz, and I know MCC128 has cannot achieve 2048 Hz (it shows 2047.8... Hz from a_in_scan_actual_rate()), but in MCC172 shows 2048 Hz but it drift about 0.02~0.07 seconds per hour. Of course data is continuous.

These RPis has GPS source, it syncs time from GPS every minute.

Is it normal or have to handle in code?

 

Edited by skycraper3
Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

The boards will drift apart when run continuously for a length of time. If you run both for 12 hours, ideally you would get 88,473,600 input scans from each. However, the 128 will return slightly less at 88,464,960, a difference of 8640 or approximately 4.2 seconds. (check my math). The only way to overcome this is by periodically restarting them.

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...