Forum Home › Forums › Understanding the Software › How to use ModArcPostgreSql?
- This topic has 18 replies, 2 voices, and was last updated 7 months, 2 weeks ago by Mikhail.
-
AuthorPosts
-
December 11, 2023 at 1:07 pm #13813kcks66Participant
Hi Mikhail,
I had done configuring both as below, pls advice for what should I do next in order to see some data in database.
Thank you.
December 12, 2023 at 1:36 pm #13817MikhailModeratorHi,
Open the Schemas node and check what schemas are available. You should find data there.December 15, 2023 at 9:30 am #13830kcks66ParticipantHi Mikhail,
Yes I see new schema with table are available:
The next step is I just enable those archives with ModArcPostreSql module then Rapid SCADA will start storing data into PostgreSql database already, right?
December 18, 2023 at 9:20 am #13834MikhailModeratorHi,
The next step is I just enable those archives with ModArcPostreSql module then Rapid SCADA will start storing data into PostgreSql database already, right?
Yes, if default settings are used. You should select data from the database table to make sure that data exist.
December 20, 2023 at 11:51 am #13846kcks66ParticipantHi Mikhail,
I can see my data store in PostgreSql now.
Can I just use PostgreSql as my main and only achieves? Like below setting.Thank you.
December 20, 2023 at 1:26 pm #13850MikhailModeratorHi,
Yes, you can.December 22, 2023 at 11:13 am #13867kcks66ParticipantHi Mikhail,
I configured PostgreSql as my main achieve now. This is great.
Thank you.January 3, 2024 at 2:21 am #13889kcks66ParticipantHi Mikhail,
Right now I have weeks of data in Postgresql database. I am thinking of write a script in Formula to pull past DateTime Cnl channel’s Val value from database for further processing in real-time.
Can I do that? Pls advice and thank you.
January 3, 2024 at 9:23 am #13891MikhailModeratorHi,
Could you clarify your question?January 4, 2024 at 1:57 am #13892kcks66ParticipantHi Mikhail,
Let say I have a Real Channel (101) to read meter energy kWh data, I configure a Calculated Channel (102) to calculate how much energy used in 30 minutes. In my script when every 30 minutes interval time, I will take the Real Channel (101)’s Current reading and access PostgreSql Minute Archive database to search for the same Channel (101) but DateTime is past 30 minutes ago to get its value. Thus I can get their different to become the result.
January 4, 2024 at 10:55 am #13893MikhailModeratorHi,
Channel formulas work only with current data. To calculate differences (e.g., power consumption), I suggest Elastic Report Plugin.January 9, 2024 at 9:29 am #13898kcks66ParticipantHi Mikhail,
I have Elastic Report but what I want to do is to use the result/value from the calculated channel (e.g., power consumption) to show in table and to plot on chart.
January 10, 2024 at 10:56 am #13903MikhailModeratorHi,
I see. It would be handy. For now, there is no ready to use solution.
If there is a business need and you could sponsor that feature, I could create a prototype of the module that will become a part of Rapid SCADA.January 11, 2024 at 7:33 am #13913kcks66ParticipantHi Mikhail,
Noted. I try calculate power consumption by using current data at the moment.
Thank you.January 11, 2024 at 9:46 am #13915MikhailModeratorHi,
OK. I hope we will create a module to calculate consumption in the future. -
AuthorPosts
- You must be logged in to reply to this topic.