Start here for access to our Knowledge Base to get answers to over one hundred thousand questions online in seconds.Find Answers
...See what we've been doing in some of our major markets.Find your Location
Access tailored services, 24/7 self-service and expert help. Anywhere, anytime, any project.Discover now
Everything you need to know about our IoT technology backbone.Learn more
Theis sample program is intended to demonstrate one or more programming functions or methods and is presented as programming example only. Schneider Electric assumes no liability for the use or application of this example program or any portion thereof.
sInstanceName = InputBox("Enter instance name")
If Len(sInstanceName) > 0 Then
'Specify ClearSCADA Server object.
Set oServer = CreateObject ("Serck.ScxV6Server")
' Provide connection information to connect to the ClearSCADA Database. The SystemName should be the same as in the Configure Connections utility.
oServer.Connect "SystemName", "UserName", "UserPassword"
' Get references to the Group to create the instance in.
Set oGroup = oServer.FindObject (Server.ThisObject.Parent.FullName)
' Create the instance by passing the class information.
Set oNewUser = oGroup.Create("CTemplateInstance")
' Name the instance.
Server.SetOPCValue oNewUser.FullName + ".TemplateId", 9