Click here to Skip to main content
15,916,692 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Period and Duty cycle calculation Pin
LittleYellowBird13-Jul-09 21:52
LittleYellowBird13-Jul-09 21:52 
GeneralRe: Period and Duty cycle calculation Pin
sks8313-Jul-09 22:17
sks8313-Jul-09 22:17 
GeneralRe: Period and Duty cycle calculation Pin
Stuart Dootson13-Jul-09 22:32
professionalStuart Dootson13-Jul-09 22:32 
GeneralRe: Period and Duty cycle calculation Pin
sks8313-Jul-09 23:01
sks8313-Jul-09 23:01 
GeneralRe: Period and Duty cycle calculation Pin
Stuart Dootson13-Jul-09 23:05
professionalStuart Dootson13-Jul-09 23:05 
GeneralRe: Period and Duty cycle calculation Pin
Cedric Moonen13-Jul-09 23:07
Cedric Moonen13-Jul-09 23:07 
GeneralRe: Period and Duty cycle calculation [modified] Pin
sks8313-Jul-09 23:12
sks8313-Jul-09 23:12 
GeneralRe: Period and Duty cycle calculation Pin
Cedric Moonen13-Jul-09 23:19
Cedric Moonen13-Jul-09 23:19 
sks83 wrote:
My waveform is not symmetric and it can have n number of cycles. Also waveform data may have clipped data at the beginning.


Not symetric is not a problem. What I mean is that if you have a very complex waveform (like sound), then this technique won't work. If a period of your signal is the time in which your signal is positive plus the time were the signal is negative, then this will work fine (and it is quite easy to implement).
If you have multiple cycles, that's fine, you can for instance do an average of all the positive times and all the negative times (well, that depends on your requirements of course).
For the clipping, simply skip the first half period: start your calculation were the sign of your signal is switching.


sks83 wrote:
2. If you could tell me how to determine the crossing level of the waveform. With that i can determine the period.


What do you mean by crossing level ? The time at which your signal sign changes ? If yes, then that is really easy to do: simply walk over your data points and check when the sign of your data changes.

Cédric Moonen
Software developer

Charting control [v2.0]
OpenGL game tutorial in C++

GeneralRe: Period and Duty cycle calculation Pin
sks8313-Jul-09 23:56
sks8313-Jul-09 23:56 
GeneralRe: Period and Duty cycle calculation Pin
LittleYellowBird14-Jul-09 0:05
LittleYellowBird14-Jul-09 0:05 
Questioncommand buttons in SDI Pin
Member 59031013-Jul-09 20:27
Member 59031013-Jul-09 20:27 
AnswerRe: command buttons in SDI Pin
_AnsHUMAN_ 13-Jul-09 20:35
_AnsHUMAN_ 13-Jul-09 20:35 
Questiondatetime control on Windows mobile 5.0 win32 application. Pin
zakkas248313-Jul-09 20:23
zakkas248313-Jul-09 20:23 
QuestionRe: datetime control on Windows mobile 5.0 win32 application. Pin
David Crow14-Jul-09 9:02
David Crow14-Jul-09 9:02 
QuestionSocket Pin
navneet198513-Jul-09 20:15
navneet198513-Jul-09 20:15 
AnswerRe: Socket Pin
Michael Schubert14-Jul-09 0:52
Michael Schubert14-Jul-09 0:52 
Questionhow to detect the data on the transmission line when using a comport Pin
jitendrapothuru13-Jul-09 19:55
jitendrapothuru13-Jul-09 19:55 
QuestionRe: how to detect the data on the transmission line when using a comport Pin
CPallini13-Jul-09 21:33
mveCPallini13-Jul-09 21:33 
AnswerRe: how to detect the data on the transmission line when using a comport Pin
jitendrapothuru13-Jul-09 22:13
jitendrapothuru13-Jul-09 22:13 
QuestionRe: how to detect the data on the transmission line when using a comport Pin
CPallini13-Jul-09 22:15
mveCPallini13-Jul-09 22:15 
AnswerRe: how to detect the data on the transmission line when using a comport Pin
jitendrapothuru13-Jul-09 22:20
jitendrapothuru13-Jul-09 22:20 
GeneralRe: how to detect the data on the transmission line when using a comport Pin
CPallini13-Jul-09 23:04
mveCPallini13-Jul-09 23:04 
GeneralRe: how to detect the data on the transmission line when using a comport Pin
jitendrapothuru13-Jul-09 23:29
jitendrapothuru13-Jul-09 23:29 
QuestionProblem in vs2008 Pin
002comp13-Jul-09 19:25
002comp13-Jul-09 19:25 
QuestionRe: Problem in vs2008 Pin
Randor 13-Jul-09 19:52
professional Randor 13-Jul-09 19:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.