Skip to main content

Code(Object) Method

Returns the digital state code associated with the value of a tag at a specified time.

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 int Code(Object time)

VB

Public Function Code (time As Object) As Integer

Parameters​

  Object
Timestamp.

Return Value​

Int32
Returns the digital state code associated with the value of the tag at a specified time; if the value is not a digital state, returns -1; if it is null (i.e., could not be determined), raise an error.

See Also​

Reference​

PIACEPoint Class
Code Overload
GHost.GSharp.PI.ACE Namespace