LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Peak detection (threshold detector) from spreadsheets.

"According to them" - according to datasheets I mentioned above. "System" - is VI we are trying to optimize.

 

Thank you very much!Smiley Happy I am going to try  to find the reason why we interpret the same datasheets in different way and why graphs differ so significantly.

0 Kudos
Message 21 of 30
(523 Views)

@johnsold wrote:

Do you want peaks or thresholds? You seem to be using the terms somewhat interchangeably while they actually refer to different things.  From the way you seem to be using the results I think you want thresholds.

 

I had composed a reply going into great detail about the differences between peak and threshold and how the numbers would be different, but stepped back, took a deep breath and deleted it.

Omar
0 Kudos
Message 22 of 30
(522 Views)

Okay, I have two waveforms. I need to detect the moment when signal exceeds a certain threshold (e.g. 0.2V). Then to do so with another channel waveform and finally compare them to find time difference. I am interested only in first rising edges.

Yes, I have read the white paper.. I think it worths to try Threshold Detector.vi as well.

I do understand difference between a threshold and a peak. I need a threshold, you are absolutely right.. 

0 Kudos
Message 23 of 30
(517 Views)

@Ivan899 wrote:

"According to them" - according to datasheets I mentioned above. "System" - is VI we are trying to optimize.

 

Thank you very much!Smiley Happy I am going to try  to find the reason why we interpret the same datasheets in different way and why graphs differ so significantly.


There is no differance between your datasheets ("them") and the LabVIEW VI (System)

They both agree.

 

From Datasheet S2a CH2.CSV

4048 1.60E-09 0.088125
4049 1.80E-09 0.179156
4050 2.00E-09 0.299187
4051 2.20E-09 0.44675

Cross over 0.2 between 4049 and 4050

LabVIEW VI reports 4049.17 (interpolation)

 

From Datasheet S2a CH4.CSV

4041 2.00E-10 0.051781
4042 4.00E-10 0.1165
4043 6.00E-10 0.37675
4044 8.00E-10 0.859969

Cross over 0.2 between 4042 and 4043

LabVIEW VI reports 4042.32 (interpolation)

Omar
0 Kudos
Message 24 of 30
(507 Views)

Probably I received different results because of interpolation that I did not apply.

 

0 Kudos
Message 25 of 30
(501 Views)

I only wanted to clarify your requirements. I did not intend to be critical. Many times it is difficult to tell what someone understands.

 

First edge and threshold is more straightforward than many of the other combinations.  Here is the way I would do it using Threshold 1D Array.

 

Lynn

0 Kudos
Message 26 of 30
(495 Views)

Lynn, thank you!Smiley Happy

 

Probably I need to run this VI on another PC because again there is something wrong with graphs or their settings and results are zeroes. 

 

123.jpg

 

0 Kudos
Message 27 of 30
(487 Views)

I have no idea what is going on when you run the VI. Here is what I get with the files you posted earlier.

 

I noticed that the subtracts in the dt calculations have their inputs reversed.  dt is not really negative.

 

Lynn

 

waveforms.png

0 Kudos
Message 28 of 30
(482 Views)

Hey, I see that several people are helping you now.  Excellent!  🙂

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 29 of 30
(460 Views)

Thanks very much! Smiley Wink It all works on another PC! 

0 Kudos
Message 30 of 30
(443 Views)