cancelar
Mostrando resultados para 
Pesquisar então 
Você quer dizer: 

Detecting edges in sampled data

Hello NG,

I sample analog signals with an oscilloscope and transfer the data over gpib to a pc. The next problem is to detect edges in the signal. For example, I have sampled trapeze and need to detect the for edges of the signal.

Is there a simple way or has anyone any idea how to do this.

Just looking for minima and maxima won't work, because by having 10.000 samples, there are many values nearly the same.

Thanks a lot for your help.

Best regards,
Michael

Message Edited by MichaGue_01 on 05-14-2006 02:22 PM

0 Kudos
Mensagem 1 de 14
3.947Exibições

Hi Michael

There are several solutions. For instance I could imagine something like derivatives or maybe some averaging of a certain range could do what you want.

What you really have to know is if the aquired singals may be different. For instance the majority is a trapeze and some signals are more like a sine or maybe a square. If it could be possible that your signals vary, the algorithm to find the edges must be more flexible. This is something that can be very tricky.

It may also be helpful if you could post a signal.

Thomas

Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Mensagem 2 de 14
3.931Exibições
Hi Thomas,
 
attached you will find some example data, an triangle and a trapeze (sine signals will be follow in future, at the moment there are only triangle and trapeze).
 
The signals could be different in:
 
- Level
- Time of rising and falling edge
- Resolution
 
Thanks a lot for your help.
 
Best regards
Michael
0 Kudos
Mensagem 3 de 14
3.923Exibições

What exactly do you want to detect? The range vom rising edge to falling edge as a signal subset or a specific point?

Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Mensagem 4 de 14
3.920Exibições

I want to detect the range from rising edge to falling edge, and the posititon ot these edges in the array, because this postions are needed to detect other parts in other signals.

Best regards,

Michael

0 Kudos
Mensagem 5 de 14
3.916Exibições
What about filtering? How precise should the position be?
 
By the way - you see that I come up with some question. Just for your future use of the forums - always try to provide as much information as you can.
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Mensagem 6 de 14
3.914Exibições

Of course, except if you were using the LV base version, the Analyse > Waveform measurement sub-palette or the Analyse > Signal Processing > Time domain sub palette provides vis that answer your question, such as the Transition Measurements or Pulse Parameters vis.

Chilly Charly    (aka CC)
0 Kudos
Mensagem 7 de 14
3.912Exibições

Okay, it is possible to filter the data, but then you have nearly the same problem. how to detect the poitons of the rising and falling edge. The precision should be around 1µs for the trapeze and around 1ms for the triangle.

Thank you.

0 Kudos
Mensagem 8 de 14
3.911Exibições
Well, I'd suggest you to filter the signal first in order to remove noise. Afterwards calculate the derivative of the signal. Usign this signal you could set a ceratin threshold to detect rising and falling edge.
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Mensagem 9 de 14
3.908Exibições
Did I miss something in my previous reply ?
Chilly Charly    (aka CC)
0 Kudos
Mensagem 10 de 14
3.905Exibições