LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to reconstruct waveform with new zero and create histogram type of waveform?

Solved!
Go to solution

hello all, i have an application where i have to reconstruct a waveform using some 'x' amount of data samples. the conditions are:

1. new zero of the new waveform is the maximum peak value obtained frm the old waveform., lets assign this value as y sec.

2. based on this peak value, i have to plot (y-t) and (y+t) sample points...  

 

the above waveform might look like a histogram, but is not exactly a histogram... can anyone suggest a concept??

 

Now on LabVIEW 10.0 on Win7
0 Kudos
Message 1 of 4
(2,490 Views)

Use either Peak Detector VI or just array Max/Min to find the location of the Max or peak value.

 

Use that information in the Get Waveform Subset VI to extract the portion of the waveform to the left and right of that peak.

0 Kudos
Message 2 of 4
(2,489 Views)

hello Ravens Fan, thanks for the info, I am little confused/cannot understand how to use the Get Waveform Subset vi correctly, can you please throw in an sample vi? i would really appreciate that...

 

Now on LabVIEW 10.0 on Win7
0 Kudos
Message 3 of 4
(2,479 Views)
Solution
Accepted by topic author LV_Enthu

I'm not able to take the time for "throwing in a sample VI".

 

But if you look at the Get Waveform Subset help file, you'll see it has all the inputs you need.

 

There is an enum constant that lets you pick either samples or time.  I would say pick samples since that is what will come from most of the Array Max/Min or Peak detector VIs.

 

There is a start sample/time.  Put in the value from your peak detector minus t.

There is a duration.  Put in the value of 2 times t.

 

If you t is time, you may need to convert that to samples based on your sampling rate.

0 Kudos
Message 4 of 4
(2,474 Views)