Welcome to the new Schneider Electric Community

It's your place to connect with experts and peers, get continuous support, and share knowledge.

  • Explore the new navigation for even easier access to your community.
  • Bookmark and use our new, easy-to-remember address (community.se.com).
  • Get ready for more content and an improved experience.

Contact SchneiderCommunity.Support@se.com if you have any questions.

Close
Invite a Co-worker
Send a co-worker an invite to the Exchange portal.Just enter their email address and we’ll connect them to register. After joining, they will belong to the same company.
Send Invite Cancel
84650members
353991posts

[Imported] Historic Enable via Automation Interface

EcoStruxure Geo SCADA Expert Forum

Find out how SCADA systems and networks, like EcoStruxure Geo SCADA Expert, help industrial organizations maintaining efficiency, processing data for smarter decision making with IoT, RTU and PLC devices.

sbeadle
Janeway Janeway
Janeway
0 Likes
0
205

[Imported] Historic Enable via Automation Interface

>>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!)