>>Message imported from previous forum - Category:ClearSCADA Software<<
User: florian, originally posted: 2018-10-25 19:42:35 Id:286
This is a re-posting from the obsoleted (October 2018) "Schneider Electric Telemetry & SCADA" forum.
-------------------------------
**_NIWTelemetry:_**
**_Hello everyone. Could someone please advise me how to access .Net API help files on CleaeSCADA and if any code examples or training documentation exists specificaly for ClearSCADA?_**
**_Thanks._**
---------------------
AWoodland:
There is the Client API Guide in the Start Menu under Schneider Electric - ClearSCADA
That's the best place for information that I use.
---------------------
Zhibin:
I recently used PowerShell to connect to ClearSCADA via .net API, here are part of the codes, hope it help.
1. Set reference to "ClearScada.Client.dll"
add-type -path "D:\\ClearScada.Client.dll"
2. Create the object
$scx = New-Object ClearScada.Client.Simple.Connection("test")
3. Connect
$scx.Connect("localhost")
4. Log on
$scx.LogOn("username", "password")
5. Get all CDNP3Point descendants under the "Project.Group1" folder
$descendants = $scx.GetObject("Project.Group1").GetDescendants("CDNP3Point","")
6. Loop through all descendants and output the "CurrentValue" of each point
foreach ($decendant in $descendants) {
$v = $decendant.GetProperty("CurrentValue")
write-host $v
}
7. Disconnect
$scx.Disconnect()
User | Count |
---|---|
188 | |
56 | |
18 | |
17 | |
16 | |
10 |
Discuss challenges in energy and automation with 30,000+ experts and peers.
Find answers in 10,000+ support articles to help solve your product and business challenges.
Find peer based solutions to your questions. Provide answers for fellow community members!