Ask our Experts
Didn't find what you are looking for? Ask our experts!
Schneider Electric support forum about installation, configuration, integration and troubleshooting of EcoStruxure Geo SCADA Expert (ClearSCADA, ViewX, WebX).
Search in
Link copied. Please paste this link to share this article on your social media post.
Posted: 2019-11-05 02:07 PM . Last Modified: 2023-05-03 12:32 AM
>>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()
Link copied. Please paste this link to share this article on your social media post.
You’ve reached the end of your document
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.