LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to cut waveform

Hi,

 

I have a waveform which is repeatting itself(out of DAC). I have added zeros at the beginning and end of the waveform as shown bellow. How can I cut only one copy of waveform. I have attached csv file of the waveform.

 

Capturwfe.PNG

 

Here is what I have tried but every time I have to do it mannually and it is not accurate.

Capturwfe.PNG

 

Thanks

0 Kudos
Message 1 of 5
(1,819 Views)

Hi shirin,

 

what's the point in multiplying with zero and one?

 

Why don't you search for your "added zeros" in the signal?

 

Suggestion:

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 5
(1,812 Views)

Hi GerdW,

-Just to compare original and selected size of data(It will not effect the cutting process anyway)

 

 

Thanks

0 Kudos
Message 3 of 5
(1,803 Views)

Hi shirin,

 


@shirin91 wrote:

I have to add zeros before DAC so after DAC it will not be zero exactly, so I can not just seach for it.


But there seems to be a clear distinction between "signal" and "gap": you just need to define this distinction and then create an algorithm to detect it in your waveform!

How do you define the "gaps"?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 5
(1,799 Views)

My guess is that 0 is an absolutely valid value for a datapoint.  That makes it harder to trigger.   Options:

  • Change your "fake zeros" to NaN.  That does require a change at the recording end but is soooooo much simpler.
  • Envolope detection.  Absolute Value, clipping(use In Range and Coerce with a smallish positive value,) and a low pass FIR filter is the most common means.  Play with it to see how your data behaves with both GOOD and BAD data
  • Assume Something.  What do you know about the waveform? Is the Duration fixed?

Good hunting!


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