Range Method
Returns the difference between the point’s maximum and minimum archive values during a specified time interval.
Definition
Namespace: GHost.GSharp.PI.ACE
Assembly: GHost.GSharp.PI.ACE (in GHost.GSharp.PI.ACE.dll) Version: 1.2.44.3 (1.2.44.3)
C#
public double? Range(
Object startTime,
Object endTime,
double pctGood = 80
)
VB
Public Function Range (
startTime As Object,
endTime As Object,
Optional pctGood As Double = 80
) As Double?
Parameters
- Object
- Timestamp for the beginning of the time range.
- Object
- Timestamp for the end of the time range.
- Double (Optional)
- [Optional] Minimum time percentage over the given time range that the point’s archived values must be good.
Return Value
Nullable(Double)
Returns the difference between the point’s maximum and minimum archive values during a specified time interval.
Remarks
If the point has no good values or the time percentage of archive values for the specified time range that is good is less than PctGood, returns null and raises an error.