04-14-2010 10:38 AM
If I have a sine how can I extrect the moments the signal passes from negative values to positive values(the moments when the signal passes through zero).
Thank you
04-14-2010 12:28 PM
Hi
You will need to use greater or equal function in programming/comparaison palette. You compare with a constant ( 0 in your case)
What time do you want? You said it's a sin function so the zero crossing will repeat over a certain period. Do you want to know the time from start until it cross the first time zero? Or the time between two positive zero crossing?
francis
04-14-2010 01:00 PM
The exact implementation depends on exactly how you are acquiring the sine wave and which measurement you want.
This code will give you an array of timestamps representing the samples immediately after a zero crossing:
04-15-2010 01:51 AM
Your example is very good but I cannot find the block I circled in red.If someone can help me with the name of the block so I can search for it.I am using LabVIEW 8.0.
04-15-2010 06:43 AM
Hi Simon,
Can i ask how you added the arrows onto your BD. Is this something you can do within labview?
Rgs,
Lucither
04-15-2010 09:22 AM
@Americanu22 - it's called "Get Waveform Components" and you can find it in the Programming»Waveform palette.
@Lucither - absolutely -- you can find the frames and arrows in the Programming»Structures»Decorations palette. I always like to recolour a little to make things look nicer.