LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Obtain the time period of burst of a signal

I would like to know a way to measure the time period of a burst of signal, cycle off time and cycle on time, as shown in the picture. 

0 Kudos
Message 1 of 5
(2,521 Views)

Quick thoughts off the top of my head:

 

1. Plan to iterate through your array of data, maybe with an auto-indexed For Loop.

2. Establish criteria for how you identify:

  • a transition from OFF to ON (for example, a value above a threshold?)
  • a transition from ON to OFF (for example, N consec samples with no values above that threshold?

3. Now iterate over your data and identify all the indices where these transitions occur 

4. Knowing the sample rate, you can now calculate your times

 

 

-Kevin P

ALERT! LabVIEW's subscription-only policy came to an end (finally!). Unfortunately, pricing favors the captured and committed over new adopters -- so tread carefully.
Message 2 of 5
(2,515 Views)

Kudos

 

Subtract red plot from blue.   Normalize the sum.  Stuff a low pass filter (like pt by pt mean at some period 2 x or better of the prr) and threshold that with greater than. Bool to 0,1 x2, -- sign that result then invert compare each to 0 sum arraysui add the sums and divide by one of the sums and duty cycle is the output.

 

Simple and RG thread worthy!  Next?

 

Sorry, but it does it...just like Kp said!


"Should be" isn't "Is" -Jay
0 Kudos
Message 3 of 5
(2,498 Views)

I am having hard time to define threshold because, i cannot define as amplitude as needed to include the values inbetween, so it is becoming on/off and then off for long time . So need to differentiate between on/off and the long off. Hope it makes sense.

0 Kudos
Message 4 of 5
(2,490 Views)

I'm sorry,  I should apologize for intentionally being unclear.  

 

I was teasing another poster whom I respect and hoped for a better outcome than confusing you.  Again,  I will try to make my advice more clear to you.  

 

Way long ago in hardware the common approach was to use a crystal detector to gong an envelope of signal power.  Pulsed high frequency input in...envelope out.. just like you want...

 

A rectifier and a low pass filter!  Or a diode with some ignorant capacitance..  take a running average of the input signal .. while the pulses are there the average amplitude will be higher than while the noise only is present.  

 

We could find the exact threshold if we knew more about the signal to noise ratio of the input..  

 

What is the application? Radar, Fsk, dial tone for telephony?  ... what details could you provide about the intelligence in the signal?


"Should be" isn't "Is" -Jay
0 Kudos
Message 5 of 5
(2,477 Views)