DigState Method
Returns the digital state (AFEnumerationValue) object for a specified string.
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 AFEnumerationValue DigState(string state)
VB
Public Function DigState (state As String) As AFEnumerationValue
Parameters
- String
- String corresponding to a digital state.
Return Value
AFEnumerationValue
AFEnumerationValue (Digital state object) corresponding to the specified string if successful and null if otherwise.
Remarks
For a digital point, the digital state is obtained based on first the digital state table for the point and, if not found, the system digital state table. For non-digital points, the digital state is generated based on the system digital state table.
If there is no digital state corresponding to the specified string, then Nothing is returned, and an error is raised.
Change to interface - returns AFEnumerationValue instead of PISDK.DigitalState object.