I am trying to only show values of the maximum difference between my temperature setpoint and PV ($hssp) within a certain period ($hrs).
I used the below to set up my capsule (hopefully using the right notation) but am getting all the values during my condition range ($hrs which I identified which steps of the process to consider).
$hssp.within($hrs).toCondition('Heater_Sag')
I will like to ONLY show the maximum value seen during this condition range. I tried the following below but got an error message as it seems that I am not using the proper notation:
$hssp.maxValue($hssp.within($hrs).toCondition('Heater_Sag'))
No variant of function 'maxValue' consumes the parameters (Signal, Condition) at 'maxValue', line=1, column=7
I then tried the below and received another error message:
$hd.aggregate(maxValue(), $hsis)
⬆ No variant of function 'aggregate' consumes the parameters (Signal, Stat:Sample:Scalar, Condition) at 'aggregate', line=1, column=5