LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Finding a Line in a Waveform

Hi all,

 

I have a test VI which performs a test and then writes a spreadsheet waveform to file.

In a different VI, I then take the waveform from file and perform some analysis on it. 

I need to find a few points and hence get a measurement.

 

I have attached the analysis VI and a sample waveform txt file. 

Also attached is a quick paint drawing of what the waveform looks like.

 

What i need is an easy way the programatically find the height of the straight line after the peak.

I had a few ways in my head of how to do it, but I'm sure there could be an easier way. 

 

Any help would be greatly appreciated and kudos given.

 

Tanx,

Rkll

 

sample.JPG

0 Kudos
Message 1 of 3
(2,405 Views)
Probably the easiest way to do it would be to average the last 10% of the signal.  Does that work for you?  If you'd like, you can reverse the signal and take the first 10%...
-Matt Bradley

************ kudos always appreciated, but only when deserved **************************




Message 2 of 3
(2,392 Views)

Hi Rkll,

 

MattBradley is right, the best way is to average out the line. The last 10% is a safe bet but as long as you don't use any values from the slope you'll get a good reading. It needs to be averaged as the line has noise on it. 

 

I've attached a modified version of your VI. Let me know how it goes.

 

Regards

 

Rico

Smiley Very Happy 

Rico P
Smiley Very Happy
Message 3 of 3
(2,365 Views)