hapetter
Member
Hi,
Im going to calculate rate of change, but im struggeling a bit.
So I want to calculate ROC in engineerring units. e.g. A pressure with span 0-210Bar.
So I have a ROC_Lim and a ROC_Tim value available.
I like to calculate ROC due to pressure input change and the ROC_tim ( XXX ms) and fire an alarm when ROC is above ROC_Lim
Formula:
ROC = (Pt2 - Pt1) / (t2 - t1)
So I calculate (Pt2 - Pt1) by updating a temporary P value by a timer witch update P_Temp every ROC_Tim. Then I calculate ROC by P_input (realtime pressure value ) - P_Temp. and divide by ROC_Tim..
Its not working as a like.
Any tip on how to calculate ROC in engineering units by specifying ROC_Lim only. (ROC_Lim is the timespan I like to measure change of Pressure)
Thanks
Im going to calculate rate of change, but im struggeling a bit.
So I want to calculate ROC in engineerring units. e.g. A pressure with span 0-210Bar.
So I have a ROC_Lim and a ROC_Tim value available.
I like to calculate ROC due to pressure input change and the ROC_tim ( XXX ms) and fire an alarm when ROC is above ROC_Lim
Formula:
ROC = (Pt2 - Pt1) / (t2 - t1)
So I calculate (Pt2 - Pt1) by updating a temporary P value by a timer witch update P_Temp every ROC_Tim. Then I calculate ROC by P_input (realtime pressure value ) - P_Temp. and divide by ROC_Tim..
Its not working as a like.
Any tip on how to calculate ROC in engineering units by specifying ROC_Lim only. (ROC_Lim is the timespan I like to measure change of Pressure)
Thanks