>>Message imported from previous forum - Category:ClearSCADA Software<<
User: florian, originally posted: 2018-10-25 15:55:14 Id:227
This is a re-posting from the obsoleted (October 2018) "Schneider Electric Telemetry & SCADA" forum.
--------------------
**_ArtemMilenin:_**
**_Hello,_**
**_I have an project with several thousands similar AI points and I'm writing a script by MVB for easiest creation points. And I don't understand how to work with history in CS via Automation Interface._**
**_In first how to check "Enable" in the Historic properties of the point via Automation Interface by MVB? And in second, third and etc how to change another options of Historic properties? Are available to downloading manuals about working with historic properties or about automation interface?_**
**_Thanks for answers_**
---------------------
AWoodland:
You need to either use the ScxV6Aggregate class or the Aggregate("Historic").Enabled style. Something such as (I don't have VS infront of me):
_Dim csObj as ScxV6Object_
_Set csObj = Server.FindObject("Some.Point")_
Then you can either do...
_Dim csAgg as ScxV6Aggregate_
_Set csAgg = csObj.Aggregate("Historic")_
_csAgg.Enabled = True_
_csAgg.SomeProperty = SomeValue_
or...
_csObj.Aggregate("Historic").Enabled = True_
I'd suggest the first method to make things cleaner, especially if you're dealing with functions or/and multiple property changes on the aggregate.
-------------------
**_ArtemMilenin:_**
**_It works 😃 Thank you!_**
----------------
JesseChamberlain:
In case anyone comes across this, it should be .Enable not .Enabled, ie:
_csObj.Aggregate("Historic").Enable = True_
(we'll forgive Adam seeing that he typed the above from memory!)
User | Count |
---|---|
188 | |
53 | |
16 | |
16 | |
15 |
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!