01-24-2012 12:05 PM
Here you go.
01-24-2012 12:07 PM
Weird...I still get same error code...
01-24-2012 12:13 PM
What Error Code are you getting?
01-24-2012 12:16 PM
See attached
01-24-2012 12:20 PM
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.
01-24-2012 12:21 PM
Let's try again
01-24-2012 12:44 PM
That worked. Thanks ! ![]()