CreateDigitalState Method (PIData Object)

                    

 

Return a DigitalState object for the associated PIPoint given a Variant which contains either the state name or its code.

 

Not Implemented

Syntax

object.CreateDigitalState vtWhich

The CreateDigitalState method syntax has these parts:

Part Description

object

An object expression that evaluates to a PIData object.

vtWhich

A Variant containing either a state name as a string or a number representing the 0 based code of the state.

 

Remarks

The PIPoint should be of type Digital and the state should correspond to a state in the PIPoint's DigitalSet.

 

Trappable Errors

In addition to generic errors (such as Out of Memory), the following errors may occur:

Error

Description

Enabling Operational Intelligence