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 01:06 PM . Last Modified: 2023-05-03 12:35 AM
>>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!)
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.