LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

peak value over a given time period?

Solved!
Go to solution

Here you go.

Tim
GHSP
0 Kudos
Message 11 of 17
(783 Views)

Weird...I still get same error code...

0 Kudos
Message 12 of 17
(779 Views)

What Error Code are you getting?

Tim
GHSP
0 Kudos
Message 13 of 17
(777 Views)

See attached

0 Kudos
Message 14 of 17
(775 Views)

I have posted this method before but it's not very popular, BUT... If you are using a Chart, and the "time period" in which you want to capture the peak value is not longer than the Chart History Length*, then you can read the array from the chart Property Node "History Length" and just use Array Min Max to find the Max. Remember that we get that "free array" with charts.

 

 

*Let's say your loop takes 100mS, and your Chart History Length is set to 4095, that's . This gives you ~6.8 miuntes of data in which to grab the peak. Need longer? Make the Chart History Length longer, or store the highest number in each given chunk of 4095 samples.

 

 

Richard






0 Kudos
Message 15 of 17
(773 Views)

Let's try again

Tim
GHSP
0 Kudos
Message 16 of 17
(770 Views)

That worked. Thanks ! Smiley Happy

0 Kudos
Message 17 of 17
(764 Views)