Skip to main content

PIACEPoint Class

Every AFElement Attribute is declared as a PIACEPoint object within an ACE Module.

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#

[SerializableAttribute]
public class PIACEPoint : AFDataPoint

VB

<SerializableAttribute>
Public Class PIACEPoint
Inherits AFDataPoint
InheritanceObject → DataPointBase(AFDataValue, Int32) → AFDataPoint → PIACEPoint

Properties​

AdjustClockOffsetSets and gets the flag on whether to adjust all time arguments for the clock drift between the gSharp server and the PI Server. The default value is True.
ArcModeSets and gets the archive mode. The default value is dmErrorDuplicates.
CachedSnapshotReturns the snapshot event in the cache.
ExecutionTime
(Overrides DataPointBase.ExecutionTime)
ExeTimeSets and returns the current execution time in UTC seconds.
IsAliasDetermines if the tag corresponds to an AFAttribute configured with a PI Point Data Reference.
IsQuestionableSets or returns whether the current output value is questionable. The default is False (i.e., not questionable). This flag is only applicable to output tags and its setting applies only to the current value. The flag is reset to its default value (i.e., False) when the timestamp is reset.
IsRecalculatingReturns if the current calculation is auto or manual recalculation.
SendDataToPISets and returns if the current value for the point should be sent to PI.
ServerReturns the server name where the point is defined.
TagReturns the tag name for the point.
TagIDReturns the tag ID for the point.
TagUsedAsTypeReturns the tag used as type (i.e., as Input, Output, or Both).
Value
(Overrides AFDataPoint.Value)
Value(Object)Gets or sets the value of the point for a specific timestamp.

Methods​

AlmAckStatus()Returns the acknowledgement status code for an alarm tag at the current execution time.
AlmAckStatus(Object)Returns the acknowledgement status code for an alarm tag at a specified time.
AlmCondition()Returns the condition code for an alarm state at the current execution time.
AlmCondition(Object)Returns the condition code for an alarm state at a specified time.
AlmCondText()Returns the string for the condition of an alarm state at the current execution time.
AlmCondText(Object)Returns the string for the condition of an alarm state at a specified time.
AlmPriority()Returns the priority of an alarm state at the current execution time.
AlmPriority(Object)Returns the priority of an alarm state at a specified time.
AvgDetermines the time-weighted average of archived values for the point over a given time interval.
Code()Returns the digital state code associated with the value of a tag at current execution time.
Code(Object)Returns the digital state code associated with the value of a tag at a specified time.
DescReturns the descriptor for a point.
DigStateReturns the digital state (AFEnumerationValue) object for a specified string.
EUReturns the string for the tag’s engineering unit.
ExDescReturns the point’s extended descriptor.
FindEQFinds the first time, within a specified time range, when an archive value for the point is equal to a given value.
FindGEFinds the first time, within a specified time range, when an archive value for the point is greater than or equal to a given value.
FindGTFinds the first time, within a specified time range, when an archive value for the point is greater than a given value.
FindLEFinds the first time, within a specified time range, when an archive value for the point is less than or equal to a given value.
FindLTFinds the first time, within a specified time range, when an archive value for the point is less than a given value.
FindNEFinds the first time, within a specified time range, when an archive value for the point is not equal to a given value.
GetAttributeReturns the specified attribute for the point.
GetValue 
IsGood()Determines if the value for the tag at the current exetime equals one of the system digital states.
IsGood(Object)Determines if the value for the tag at the current exetime equals one of the system digital states.
IsSet(String)Determines if value for the tag at current execution time is annotated, substituted, or questionable.
IsSet(String, Object)Determines if value for the tag at current execution time is annotated, substituted, or questionable.
IsTriggerDetermines if the tag triggered the current calculation.
MaxMaximum archive value of the point over a given time interval.
MeanAverage value of all archive events in the interval.
MinMinimum archive value of the point over a given time interval.
NextEventReturns timestamp of the point’s next archive event after a specified time.
NextValReturns value of the point’s next archive event after a specified time.
PctGoodReturns the percentage of time, over a given time period, that the point’s archived values are good.
PIPointTypeReturns the point’s type.
PrevEvent()Returns timestamp of the point’s previous archive event before the current execution time.
PrevEvent(Object)Returns timestamp of the point’s previous archive event before a specified time.
PrevVal()Returns value of the point’s previous archive event before the current execution time.
PrevVal(Object)Returns value of the point’s previous archive event before a specified time.
PutValueSends the value for an output tag to the PI Snapshot Subsystem.
RangeReturns the difference between the point’s maximum and minimum archive values during a specified time interval.
RefreshAttributeRefreshes tag attributes immediately.
ResetCurrentValueResets the currently cached value for the point.
ResultTimestampReturns the timestamp associated with the current value.
SetTag(String, String)Sets the context and tag alias for a PIACEPoint object, to be used as an input tag.
SetTag(String, String, TagAliasUsedType)Sets the context and tag alias for a PIACEPoint object.
SourceReturns the AF SDK string point source.
SpanReturns the point’s span.
StateNoReturns the digital state code for a specified string.
StDevReturns the time-weighted standard deviation of archive values for the point over a given time interval.
TimeEQFinds the total time in seconds, within a specified time range, when archive values for the point are equal to a given value.
TimeGEFinds the total time in seconds, within a specified time range, when archive values for the point are greater than or equal to a given value.
TimeGTFinds the total time in seconds, within a specified time range, when archive values for the point are greater than a given value.
TimeLEFinds the total time in seconds, within a specified time range, when archive values for the point are less than or equal to a given value.
TimeLTFinds the total time in seconds, within a specified time range, when archive values for the point are less than a given value.
TimeNEFinds the total time in seconds, within a specified time range, when archive values for the point are not equal to a given value.
TotalReturns the totalized value (time integral) in unit per day of archive values for the point over a given time interval.
TypValReturns the point's typical value.
Values(Object, Object)Returns all events for a specified time range from the archive as a PIACEValues collection.
Values(Object, Object, BoundaryTypeConstants)Returns all events for a specified time range from the archive as a PIACEValues collection.
ZeroReturns the point's zero.

Extension Methods​

AvgDetermines the time-weighted average of archived values for the point over a given time interval.
(Defined by AFDataPointExtensions)
FindEQFinds the first time, within a specified time range, when an archive value for the point is equal to a given value.
(Defined by AFDataPointExtensions)
FindGEFinds the first time, within a specified time range, when an archive value for the point is greater than or equal to a given value.
(Defined by AFDataPointExtensions)
FindGTFinds the first time, within a specified time range, when an archive value for the point is greater than a given value.
(Defined by AFDataPointExtensions)
FindLEFinds the first time, within a specified time range, when an archive value for the point is less than or equal to a given value.
(Defined by AFDataPointExtensions)
FindLTFinds the first time, within a specified time range, when an archive value for the point is less than a given value.
(Defined by AFDataPointExtensions)
FindNEFinds the first time, within a specified time range, when an archive value for the point is not equal to a given value.
(Defined by AFDataPointExtensions)
MaxMaximum archive value of the point over a given time interval.
(Defined by AFDataPointExtensions)
MeanAverage value of all archive events in the interval.
(Defined by AFDataPointExtensions)
MinMinimum archive value of the point over a given time interval.
(Defined by AFDataPointExtensions)
NextEventReturns timestamp of the point’s next archive event after a specified time.
(Defined by AFDataPointExtensions)
NextValReturns value of the point’s next archive event after a specified time.
(Defined by AFDataPointExtensions)
PctGoodReturns the percentage of time, over a given time period, that the point’s archived values are good.
(Defined by AFDataPointExtensions)
PrevEventReturns timestamp of the point’s previous archive event before the current time.
(Defined by AFDataPointExtensions)
PrevEventReturns timestamp of the point’s previous archive event before a specified time.
(Defined by AFDataPointExtensions)
PrevValReturns value of the point’s previous archive event before the current time.
(Defined by AFDataPointExtensions)
PrevValReturns value of the point’s previous archive event before a specified time.
(Defined by AFDataPointExtensions)
RangeReturns the difference between the point’s maximum and minimum archive values during a specified time interval.
(Defined by AFDataPointExtensions)
RecordedValueReturns a single value from the archive for the specified timestamp.
(Defined by AFDataPointExtensions)
RecordedValueReturns a single value from the archive for the specified timestamp.
(Defined by AFDataPointExtensions)
RecordedValueReturns a single value from the archive for the specified timestamp.
(Defined by AFDataPointExtensions)
RecordedValuesReturns all compressed (archived) values during a specified time interval.
(Defined by AFDataPointExtensions)
RecordedValuesReturns all compressed (archived) values during a specified time interval.
(Defined by AFDataPointExtensions)
RecordedValuesReturns all compressed (archived) values during a specified time interval.
(Defined by AFDataPointExtensions)
SampledValuesReturns a collection of interpolated values during a specified time interval.
(Defined by AFDataPointExtensions)
SampledValuesReturns a collection of interpolated values during a specified time interval.
(Defined by AFDataPointExtensions)
SampledValuesReturns a collection of interpolated values during a specified time interval.
(Defined by AFDataPointExtensions)
StDevReturns the time-weighted standard deviation of archive values for the point over a given time interval.
(Defined by AFDataPointExtensions)
TimeEQFinds the total time in seconds, within a specified time range, when archive values for the point are equal to a given value.
(Defined by AFDataPointExtensions)
TimeGEFinds the total time in seconds, within a specified time range, when archive values for the point are greater than or equal to a given value.
(Defined by AFDataPointExtensions)
TimeGTFinds the total time in seconds, within a specified time range, when archive values for the point are greater than a given value.
(Defined by AFDataPointExtensions)
TimeLEFinds the total time in seconds, within a specified time range, when archive values for the point are less than or equal to a given value.
(Defined by AFDataPointExtensions)
TimeLTFinds the total time in seconds, within a specified time range, when archive values for the point are less than a given value.
(Defined by AFDataPointExtensions)
TimeNEFinds the total time in seconds, within a specified time range, when archive values for the point are not equal to a given value.
(Defined by AFDataPointExtensions)
TotalReturns the totalized value (time integral) in unit per day of archive values for the point over a given time interval.
(Defined by AFDataPointExtensions)

See Also​

Reference​

GHost.GSharp.PI.ACE Namespace