>>Message imported from previous forum - Category:Scripts and Tips<<
User: ROVSCADAENGINEER, originally posted: 2019-02-01 01:06:10 Id:358
Is there a way on clear SCADA to set the filter to display only a set amount of readings within an hour from a series of recorded data over the last year. I am extracting all the current readings on a pump for the last year and am wanting to extract the data however there are over half a million rows. I cannot seem to find a way to grab just hourly readings as the timestamps are never exactly on the hour. this would save so much processing time if i could apply some filter to reduce the amount of readings called back into the historic list.
Solved! Go to Solution.
>>Responses imported from previous forum
Reply From User: ROVSCADAENGINEER, posted: 2019-02-01 02:17:38
I am also looking into SQL techniques of editing the SQL directly. Basically i want to apply a filter that takes readings and selects minutes in an hour based on a ffrequency of every 2nd minute with 1 minute timesteps.
Reply From User: adamwoodland, posted: 2019-02-01 04:05:51
Have you looked into historic views? You can set how you want those hourly values to appear (average of all values in the hour, interpolated, max, min, etc) and access them via SQL
Reply From User: ROVSCADAENGINEER, posted: 2019-02-03 21:17:34
I will try and do that using that method Adam, Good suggestion!
>>Responses imported from previous forum
Reply From User: ROVSCADAENGINEER, posted: 2019-02-01 02:17:38
I am also looking into SQL techniques of editing the SQL directly. Basically i want to apply a filter that takes readings and selects minutes in an hour based on a ffrequency of every 2nd minute with 1 minute timesteps.
Reply From User: adamwoodland, posted: 2019-02-01 04:05:51
Have you looked into historic views? You can set how you want those hourly values to appear (average of all values in the hour, interpolated, max, min, etc) and access them via SQL
Reply From User: ROVSCADAENGINEER, posted: 2019-02-03 21:17:34
I will try and do that using that method Adam, Good suggestion!
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!