05-17-2012 09:55 PM
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??
Solved! Go to Solution.
05-17-2012 09:59 PM
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.
05-18-2012 10:14 AM
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...
05-18-2012 10:32 AM
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.