Geo SCADA Knowledge Base
Access vast amounts of technical know-how and pro tips from our community of Geo SCADA experts.
Link copied. Please paste this link to share this article on your social media post.
Originally published on Geo SCADA Knowledge Base by Anonymous user | June 10, 2021 04:17 AM
📖 Home
In many applications there is a need to interface ClearSCADA to external programs. Geo SCADA supports a range of application program interfaces (APIs) that can be accessed from various programming languages including C#, VB, C/C++ and Python. These include:
Increasingly external programs are written using Microsoft's managed code environment. A .Net API is available for many advanced functions. (However the existing COM based API is also available to use from a managed code environment.)
The .Net API is used to connect to the server to perform monitoring, control or configuration of the Geo SCADA database. You can use any .Net Framework compatible languages, such as VB.Net or C#. You can also use Python via the library 'Pythonnet'.
If you look in the Start Menu folder for Geo SCADA, you will notice a "Client API Guide" shortcut.
This link will take you to the documentation for the automation interface. You should start in the ClearScada.Client.Simple Namespace. The key classes to use are "Connection" and "DBObject". Note that you will need to reference the database schema. You should browse your own database for schema specifics such as your driver and metadata field settings - find it at the web services port of Geo SCADA, e.g. http://localhost/schema
There are two COM interfaces.
Server Automation is a programming interface intended to allow external programs to interface to Geo SCADA. You can use the interface from a number of different programming languages to:
Server Automation uses the Common Object Model (COM) to export ActiveX Objects to external scripting or programming languages.
Documentation for this interface is in the class definitions - viewable from Visual Studio's object browser.
See examples linked below.
Client (ViewX) Automation enables programs to interact with ViewX and its documents. For example, mimics can be opened and edited.
Note: Client side automation is disabled by default for new installations of Geo SCADA 2022 (85) onward for improved security. It can be enabled from the "System Configuration \ ViewX" page in the Server Configuration tool.
Documentation for this interface is in the class definitions - viewable from Visual Studio's object browser.
See examples linked below.
Geo SCADA also presents information through SOAP and XML via the Web Interface, with some additional information as REST queries. Services using the EWS (EcoStruxure Web Services) and OPC-XML-DA protocols are available too. This is used by the Geo SCADA Web Client to communicate to the Geo SCADA Server. These interfaces are also open for use by third party applications.
These interfaces are not documented and may not be stable between Geo SCADA releases.
Home
More Links:
Introductions to the Server and Client Automation Interfaces
Log File Generation with the .Net API
Using the Server Automation Interface from Perl
Using the Server Automation Interface with C(sharp)
Changing Alarm Limits via the Server Automation Interface
Enable Historic Logging on a Point with the Server Automation Interface
Reading or Writing Object Properties in the Server Automation Interface
Resolving Server Automation Interface Connection Failures
Typical Server Automation Interface Errors
Using Server Automation Interface to Add or Modify Security
Using ViewX Client Automation Interface to an Edit ST Program
Link copied. Please paste this link to share this article on your social media post.
Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.