Share Your Feedback – Help Us Improve Search on Community! Please take a few minutes to participate in our Search Feedback Survey. Your insights will help us deliver the results you need faster and more accurately. Click here to take the survey
Access vast amounts of technical know-how and pro tips from our community of Geo SCADA experts.
Search in
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.