Calculate the time out of sample points with set frequency

Click For Summary

Homework Help Overview

The discussion revolves around a problem related to data acquisition and timestamping in a system intended to operate at a frequency of 100 Hz. The original poster describes issues with data being received in bursts, leading to incorrect timestamps and unexpected data patterns when analyzing a sinusoidal signal.

Discussion Character

  • Exploratory, Assumption checking, Problem interpretation

Approaches and Questions Raised

  • The original poster attempts to formulate equations to determine the delay in data acquisition and questions the validity of their approach. Some participants suggest examining the data collection method and the timing control of the system, while others propose using FFT analysis to identify issues in the data collection process.

Discussion Status

The discussion is ongoing, with participants exploring various interpretations of the problem. Some guidance has been offered regarding the data collection system and potential diagnostic approaches, but there is no explicit consensus on the next steps or solutions.

Contextual Notes

There is a mention of the original poster's uncertainty about their calculus skills and the potential limitations of their data collection system. The need for accurate data collection and the possibility of not being able to recollect data are also noted.

Kurzma
Messages
1
Reaction score
0
Hi all,

at the moment I am doing my Master Thesis and have the following problem.

I am trying to measure Data and asign it a proper timestamp. My problem is, that the data is coming in bursts and the timestamps I assign with the software are wrong.
The controller I am using for monitoring the data should run at 100 Hz, but it doesn't. I checked the Data while applying a sinudial 100 Hz signal and there appeared constant peaks every 10 datapoints and a sinudial slow drift, in contrary to the expected horizontal line.

Now I am trying to determinate the delay in aquiring the data (peaks in pointdata) So we got the equation:
f(t)=Asin(wt) + C ?
f ~= 100 Hz
w = 2
9be4ba0bb8df3af72e90a0535fabcc17431e540a
f
A= data acquired
C= could be calculated

and somehow just calculate t ? But it doesn't feel right...

Also I came up with another approach:
f(tx) = x = Asin(wt + O)
f(ty) = y = Asin(wt + d + O)
x - y = Asin(wt + O) - Asin(wt + d + O)

I would really appreciate any help with this. I am a real doofus when it comes to calculus especially with harmonic oscillators. I browsed the whole day trigonometrical identities and didn't really progress far.

I hope I explained everything properly, If anything is unclear please feel free to ask me.
I also uploaded an sample from my data.

Best Regards
 

Attachments

Physics news on Phys.org
I'm making some guesses here, but this seems to be what you are describing:
You are collecting data from some source - apparently a signal that can be replace with a sine wave generators.
The data you are receiving at the software end is not only being received in clumps, but is apparently being collected in clumps. So that sine wave isn't looking as smooth as it should.

My guess is that the data collection rate is being controlled through software timing - rather than a regular series of hardware-generated pulses.

For example, if you are collecting data through an analog-to-digital converter, the sampling signal to the ADC should not be driven directly by the software. It is okay for the software to have some executive control over the signal (start, stop, frequency/period selection), but it should not be generating the timing pulses themselves.
 
  • Like
Likes   Reactions: berkeman
Let me add something: The experiment you're doing with the sine wave is good - assuming that the period of the sine wave is slower that the sampling period - but not a whole lot slower. Slower by a factor of 3 to 12 would be fine. I would collect 16384 samples and apply an FFT (using, for example, MatLab) and then check for a very strong spike.

But I am also presuming that you have already concluded that the data is not being collected at regular intervals. That should be all you need to know. Determining the delay might provide a useful diagnostic for finding a problem in a system that should work.

You haven't told us what data collection system you are using and why you think that system should work. So the first place I am looking is at the basic design of you data collection system.
 
Kurzma said:
The controller I am using for monitoring the data should run at 100 Hz, but it doesn't. I checked the Data while applying a sinudial 100 Hz signal and there appeared constant peaks every 10 datapoints and a sinudial slow drift, in contrary to the expected horizontal line.
I looked at your data and reread you post.
I am not sure what you want. Have you concluded that the controller is not collecting the data correctly, but you want to continue using that controller anyway?
Normally you would fix your data collection system and recollect the data. Perhaps you cannot recollect the data?
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 27 ·
Replies
27
Views
5K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 17 ·
Replies
17
Views
3K
Replies
7
Views
47K
Replies
6
Views
2K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 9 ·
Replies
9
Views
4K
  • · Replies 4 ·
Replies
4
Views
3K