📖HomeBack When using the automation interface to query the properties of objects in the ClearSCADA database, there are three main methods. The examples below read the State0Desc property of a digital point. Note that all examples on this page assume that the script objects referenced have already been set to objects in the ClearSCADA database.
Using the Interface property directly.
Using the interface property as part of a second object.
To write to properties of objects in the database, a similar method is followed to the examples shown above. In each case where a property is returned, simply turn the statement around to have a property equal some value. For example, the code below would set the value of the State0Desc property equal to "Stopped".
Note that the ClearSCADA database schema will summarize which properties can be written to and which are read-only.