Calculating Period for Signal's Waveform

Join Date
Jan 2012
Location
Singapore
Posts
4
Hell Experts,

I need sugestions on calculation of time period for different parameters of my motion sensor like ROLL, PItch, Heave etc. Currently I am using method of zero crossing for calculating the period of signals. Period is calculated using number of zero crossings. I am using timer and counters for that purpose, once the signal value cross zero and enters negative region counter increments again when it crosses zero crossing to go into positive region counter increments. But now I am looking at a case when my signal waveform never crosses zero value and remains in positive region always or negative region then in that case how can I calulate the period of my signals' waveform. Any ideas will be appreciated, if someone has implemented such scenario then please help me with this!

I have attached another function that is outputting the period of signal after each complete cycle.
Please suggest how can I do the above two scenarios when there is no zero crossings. Hope now you have a clearer picture of what I intend to achieve.

Please suggest asap!

Thanks in advance!
 
Welcome to the forum.

If you are satisfied with your zero-cross method you could try this:

Make a slow lowpass or a mean value of your input value.
When the input value crosses this mean value, do the counting.

Kalle
 
Can you estimate the velocity or rate of change in the Roll, Pitch and Heave? The 'zero crossing' occurs when the velocity is the highest. You could also use the time between the maximum and minimum reading. This isn't very accurate though. I have more sophisticated techniques but they would be tough to implement in a PLC.

An FFT will provide the frequency/period and magnitude but good luck with that on a PLC.
 
Welcome to the forum.

If you are satisfied with your zero-cross method you could try this:

Make a slow lowpass or a mean value of your input value.
When the input value crosses this mean value, do the counting.

Kalle
Thanks a lot for your suggestion! can you elaborate how can I implement your suggestion in my code attached in my first post!
 
Can you estimate the velocity or rate of change in the Roll, Pitch and Heave? The 'zero crossing' occurs when the velocity is the highest. You could also use the time between the maximum and minimum reading. This isn't very accurate though. I have more sophisticated techniques but they would be tough to implement in a PLC.

An FFT will provide the frequency/period and magnitude but good luck with that on a PLC.

Thanks Sir,

I thought of a logic to calculate the timer period without using the ero crossing or sign concept. Please look at the attached picture for understanding. However I need help in implementing that logic in the PLC Programming. I also want suggestions on how can I do comparison between current and previous values?


Thanks!
 
Thanks Sir,

I thought of a logic to calculate the timer period without using the ero crossing or sign concept. Please look at the attached picture for understanding. However I need help in implementing that logic in the PLC Programming. I also want suggestions on how can I do comparison between current and previous values?


Thanks!
The rate of change is very fast however its difficult give an exact estimate!
 

Similar Topics

I want to measure the period of a 60Hz signal with .001 Hz accuracy resolution. The Schneider M430 high speed counter BMX EHC 0200 has a...
Replies
15
Views
8,226
This application has a motor with encoder feedback that drives a linear actuator that moves in/out, and is at roughly 45 degs from horiz. As the...
Replies
19
Views
1,364
I need to keep a running pass/fail yield of the previous 5,000 parts produced. I have used this formula before to calculate average: AvgValue =...
Replies
6
Views
2,152
Does anyone know how to calculate the savings from now needing to run an air compressor all day? Basically I have a design that replaced 6 * 1"...
Replies
26
Views
4,827
I would like to refer to this document of which I used some data ...
Replies
1
Views
1,477
Back
Top Bottom