LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

extracting time from digital signal

Solved!
Go to solution

 Hello,

 

If I have digital signal originating from optical barriers and want to extract time (for a body that passes these 2 barriers) how can I extract that time using Labview.

 

thx 

 

 

0 Kudos
Message 1 of 8
(3,041 Views)

Hi Chata,

 

Thanks for the post!

 

I was wondering if you could post an image of this signal. What aspect of the signal tells you that it has passed through these barriers?

 

Are you trying to find out the time between the 2 barriers?.. some more detail would help greatly.

 

Kind Regards,

Kind Regards
James Hillman
Applications Engineer 2008 to 2009 National Instruments UK & Ireland
Loughborough University UK - 2006 to 2011
Remember Kudos those who help! 😉
0 Kudos
Message 2 of 8
(3,029 Views)
Actually I don't have this signal yet (my friend works on that aspect) I just want to find out the time between the 2 barriers?
0 Kudos
Message 3 of 8
(3,025 Views)

Hi.

 

So would this signal have peaks?

What do you mean by barriers?

 

Kind Regards,

Kind Regards
James Hillman
Applications Engineer 2008 to 2009 National Instruments UK & Ireland
Loughborough University UK - 2006 to 2011
Remember Kudos those who help! 😉
0 Kudos
Message 4 of 8
(3,020 Views)

hey,

 

I'll get back to this when I see the signal. 

0 Kudos
Message 5 of 8
(3,016 Views)
Let's say I have these two analog signal obtained from each optical barrier. What I want is to fin the time between maximum points of diagram. Does someone have some guiding points on this?
0 Kudos
Message 6 of 8
(2,978 Views)
Solution
Accepted by topic author Chata

I chata,

 

Thanks for the reply, and I hope your well.

 

Here is an example Ive done for a customer, who wanted to find out the time of a flat section of his waveform.

 

In your case, you would need to do a peak detection on both codes, and then minus the locations and do some x by sample number to get time.

 

Let me know what you think.

 

Kind Regards,

James.

 

ps sorry code is a bit rushed.

Kind Regards
James Hillman
Applications Engineer 2008 to 2009 National Instruments UK & Ireland
Loughborough University UK - 2006 to 2011
Remember Kudos those who help! 😉
0 Kudos
Message 7 of 8
(2,961 Views)
It is interesting. Waveform Peak Detection VI uses quadratic least squares fit. I menage to solve this using Statistics (time of maximum). Thanks for help.
0 Kudos
Message 8 of 8
(2,956 Views)