{}

Our Brands

Impact-Company-Logo-English Black-01-177x54

Schneider Electric USA Website

Welcome to our website.

Search FAQs

ClearSCADA: Verify Scripting Connection

As a simple check, the script below may be used to test the connection between ClearSCADA scripts and the ClearSCADA database.  This can be used to test the connection between the client hosting the script and the ClearSCADA Server.
To run this test, open the script editor (i.e. from a mimic object) and enter the code below.  Then, create a button on that same mimic and configure a pick action to call the script

Option Explicit
Public Sub GetRootObject
Dim Obj
Set Obj = Server.RootObject
MsgBox "If you are reading this your connection worked"
End Sub

If the connection is successful, then you should be presented with the following dialog:



Note: If the problem is with another ClearSCADA database listening on the WebX ports then this script will probably still work.

The Resource Center article, ‘Diagnosing Scripting Connection Errors’ provides troubleshooting tips to help resolve issues related to scripts not working.  The article may be found here:
https://tprojects.schneider-electric.com/telemetry/display/public/CS/Diagnosing+Scripting+Connection+Errors

Schneider Electric USA

Explore more
Explore more
Users group

Discuss this topic with experts

Visit our Community for first-hand insights from experts and peers on this topic and more.