Subscribing is a smart move!
You can subscribe to this board after you log in or create your free account.
Geo SCADA Knowledge Base
Access vast amounts of technical know-how and pro tips from our community of Geo SCADA experts.
Link copied. Please paste this link to share this article on your social media post.
Originally published on Geo SCADA Knowledge Base by Anonymous user | June 09, 2021 11:55 PM
Dim Svr As ScxV6ServerDim Obj As ScxV6ObjectDim His As ScxV6AggregateSet Svr = New ScxV6Server'substitute your server name, username and passwordSvr.Connect "MAIN", "user", "pwd"Set Obj = Svr.FindObject("Test")' get the historic aggregateSet His = Obj.Aggregate("Historic")' Enable the historic optionHis.Enable = True' Can then set propertiesHis.Property("Compress") = TrueHis.Property("MinimumTime") = 300His.Property("TrendInterval") = "1H"His.Property("TrendOffset") = "M-55M"
Dim Svr As ScxV6ServerDim Obj As ScxV6ObjectDim His As ScxV6AggregateSet Svr = New ScxV6Server'substitute your server name, username and passwordSvr.Connect "MAIN", "user", "pwd"Set Obj = Svr.FindObject("Test")' Enable the historic optionobj.Aggregate("Historic").Enable = True' Can then set propertiesobj.Aggregate("Historic").Property("Compress") = Trueobj.Aggregate("Historic").Property("MinimumTime") = 300obj.Aggregate("Historic").Property("TrendInterval") = "1H"obj.Aggregate("Historic").Property("TrendOffset") = "M-55M"
Link copied. Please paste this link to share this article on your social media post.
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.