Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Notifications
Login / Register
Community
Community
Notifications
close
  • Forums
  • Knowledge Center
  • Events & Webinars
  • Ideas
  • Blogs
Help
Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Login / Register
Sustainability
Sustainability

Join our "Ask Me About" community webinar on May 20th at 9 AM CET and 5 PM CET to explore cybersecurity and monitoring for Data Center and edge IT. Learn about market trends, cutting-edge technologies, and best practices from industry experts.
Register and secure your Critical IT infrastructure

Introductions to the Server and Client Automation Interfaces

Geo SCADA Knowledge Base

Access vast amounts of technical know-how and pro tips from our community of Geo SCADA experts.

cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Home
  • Schneider Electric Community
  • Knowledge Center
  • Geo SCADA Knowledge Base
  • Introductions to the Server and Client Automation Interfaces
Invite a Co-worker
Send a co-worker an invite to the portal.Just enter their email address and we'll connect them to register. After joining, they will belong to the same company.
You have entered an invalid email address. Please re-enter the email address.
This co-worker has already been invited to the Exchange portal. Please invite another co-worker.
Please enter email address
Send Invite Cancel
Invitation Sent
Your invitation was sent.Thanks for sharing Exchange with your co-worker.
Send New Invite Close
Top Labels
Top Labels
  • Alphabetical
  • database 32
  • Web Server and Client 31
  • WebX 19
  • Request Form 18
  • Lists, Events & Alarms 16
  • ViewX 15
  • Application Programming 12
  • Setup 12
  • Telemetry 8
  • Events & Alarms 7
  • Lists 7
  • Mimic Graphics 7
  • Downloads 6
  • Support 5
  • IoT 5
  • SCADA 5
  • Geo SCADA Expert 5
  • Drivers and Communications 4
  • Security 4
  • DNP 3 3
  • IEC 61131-3 Logic 3
  • Trends and Historian 2
  • Virtual ViewX 2
  • Geo Scada 1
  • ClearSCADA 1
  • Templates and Instances 1
  • Releases 1
  • Maps and GIS 1
  • Mobile 1
  • Architectures 1
  • Tools & Resources 1
  • Privacy Policy 1
  • OPC-UA 1
  • Previous
  • 1 of 4
  • Next
Latest Blog Posts
  • OPC UA - Driver and Server
  • Requirements for Generating a Valid OPC UA Server Certificate
  • Load Events Using LoadRecord and LoadRecords
  • Geo SCADA Embedded Component Licenses
  • Geo SCADA 2023 Known Issues
Related Products
product field
Schneider Electric
EcoStruxure™ Geo SCADA Expert

Invite a Colleague

Found this content useful? Share it with a Colleague!

Invite a Colleague Invite
Anonymous user
Not applicable
‎2021-06-09 10:48 AM
0 Likes
0
1703
  • Bookmark
  • Subscribe
  • Email to a Friend
  • Printer Friendly Page
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2021-06-09 10:48 AM

Introductions to the Server and Client Automation Interfaces

Originally published on Geo SCADA Knowledge Base by Anonymous user | June 09, 2021 07:48 PM

📖 Home  Back  

Database Client COM Interface

The database client COM interface remains in support, but modern applications should use the .Net Client instead. It enables a program or script to manipulate Geo SCADA database object properties and methods. You can not use it to manipulate Geo SCADA mimic or logic content - see below for this. You can find details of the API in the Visual Studio Object Browser.

 

Name of the library "ScxV6DbClient"

DLL Name: C:\Program Files (x86)\Schneider Electric\ClearSCADA\DBClient.dll

Text description: "Scx V6 Automation Interface" or "Geo SCADA Expert Automation Interface"

To use this interface from C#, you need to use lines like this:

using ScxV6DbClient; 'Add a reference to the COM library first
...
         var server = new ScxV6Server();
         server.Connect("Local", "user", "password"); // System name is Local
         ScxV6Object obj = server.FindObject("$Root");
         Console.WriteLine(obj.FullName);

To use this from VBScript (for example within a Geo SCADA Mimic script):

	Set svr = CreateObject("Serck.ScxV6Server")
	svr.Connect "Local", "user", "password" ' System name is Local
	Set obj = svr.FindObject( "$Root")
        MsgBox obj.FullName 

You don't really need to use this from a mimic script because you have the Server object, to make calls like Server.FindObject().

 

Objects within Geo SCADA have properties that define the behavior of the object, and a number of methods that allow users to perform some action on that object. An example of a method is Accept. This method is called when users acknowledge an alarm in ClearSCADA and is associated with the point currently in alarm. Methods can be called in the Automation Interface using the 'Interface' property.

Some examples of this are shown below:

Acknowledge an Alarm

Object.Interface.Accept


Acknowledge an Alarm with Comment

Object.Interface.AcceptWithComment "Comment"


Disable Alarms for a Given Duration

Object.Interface.DisableAlarms 5

The units for the duration are in minutes, so this example will disable alarms on Object for 5 minutes.

 

ViewX COM Interface

The second COM interface can be used to manipulate ViewX objects on the client side, such as mimic or logic content.
Name of the library "ViewX"
DLL Name: C:\Program Files (x86)\Schneider Electric\ClearSCADA\SE.Scada.ViewX.Interop.dll
Text description: "Serck Controls ViewX Object Library"
Again, you can find details of the API in the Visual Studio Object Browser.

To use this interface from C#, you need to use lines like this:

using ViewX; 'Add a reference to the COM library first
...
	var vwx = new ViewX.Application();
	vwx.Logon("Local", "user", "password"); // System name is Local
	vwx.Mimics.OpenFromServer(false, "Local", "Opening Page"); 

To use this from VBScript (for example within a Geo SCADA Mimic script):

	    Set xvw = CreateObject("Serck.ViewXApplication")
	    'xvw.Logon("Local", "user", "password"); ' Optional if ViewX is running and logged in already
	    Set mim = xvw.Mimics.OpenFromServer( False, "Local", MimicFullname )

Note that when using from VBScript there are currently some operations which will cause ViewX to fail. This is because you are 'looping back' into ViewX. We're looking to see if this can be resolved, but in current versions you won't be able to set properties of the parent (e.g. mimic size), select items (e.g. select for deletion or cutting/pasting). But it can be used to add or modify properties of items within the mimic's layers.

For example, this incomplete code add lines and animations:

Set xvw = CreateObject("Serck.ViewXApplication")
Set mim = xvw.Mimics.OpenFromServer( False, SystemName, MimicFullname )
Set Layer = mim.Layers(0)
Set tLine = Layer.AddLine( cx, cy, x, y )
With tLine
	With .Animations
		.Add "Visible", """Parameter:ShowTicks"""
		.Add "PosMax", """Parameter:MaxValues.V" & trim(a) & """"
	End With
End With
Dim TitleText
Set TitleText = Layer.AddText( cx-r*0.7, cy-r*1.2, cx+r*0.7, cy-r)
With TitleText
        .Font.HorzAlignment = 1
        .Font.VertAlignment = 1
	.Animations.Add "Text", """Parameter:TitleText"""
	.Font.Height = 18
End With
mim.Save
mim.Close

You can enumerate the contents of mimics like this example:

    For Each Layer In m.Layers
        For Each Item In Layer
            If Not IsEmpty(Item) Then
                If Item.Type = DrwEmbeddedMimic Then
                    For Each AnimItem In Item.Animations

Documentation for this interface is in the class definitions - viewable from Visual Studio's object browser.


Go: Home Back

Labels:
  • Application Programming

  • Web Server and Client

Author

Biography

Anonymous user

Link copied. Please paste this link to share this article on your social media post.

  • Back to Blog
  • Newer Article
  • Older Article
To The Top!

Forums

  • APC UPS Data Center Backup Solutions
  • EcoStruxure IT
  • EcoStruxure Geo SCADA Expert
  • Metering & Power Quality
  • Schneider Electric Wiser

Knowledge Center

Events & webinars

Ideas

Blogs

Get Started

  • Ask the Community
  • Community Guidelines
  • Community User Guide
  • How-To & Best Practice
  • Experts Leaderboard
  • Contact Support
Brand-Logo
Subscribing is a smart move!
You can subscribe to this board after you log in or create your free account.
Forum-Icon

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.

Register today for FREE

Register Now

Already have an account? Login

Terms & Conditions Privacy Notice Change your Cookie Settings © 2025 Schneider Electric

This is a heading

With achievable small steps, users progress and continually feel satisfaction in task accomplishment.

Usetiful Onboarding Checklist remembers the progress of every user, allowing them to take bite-sized journeys and continue where they left.

of