How to use ModArcPostgreSql?

Forum Home Forums Understanding the Software How to use ModArcPostgreSql?

Viewing 15 posts - 1 through 15 (of 19 total)
  • Author
    Posts
  • #13813
    kcks66
    Participant

    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.

    https://ibb.co/Fb956Xh

    https://ibb.co/JH4BBGW

    Thank you.

    #13817
    Mikhail
    Moderator

    Hi,
    Open the Schemas node and check what schemas are available. You should find data there.

    #13830
    kcks66
    Participant

    Hi Mikhail,

    Yes I see new schema with table are available:

    https://ibb.co/vjXVhsH

    The next step is I just enable those archives with ModArcPostreSql module then Rapid SCADA will start storing data into PostgreSql database already, right?

    https://ibb.co/pr40ZGV

    #13834
    Mikhail
    Moderator

    Hi,

    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.

    #13846
    kcks66
    Participant

    Hi Mikhail,

    I can see my data store in PostgreSql now.
    Can I just use PostgreSql as my main and only achieves? Like below setting.

    https://ibb.co/nnnLDYr

    Thank you.

    #13850
    Mikhail
    Moderator

    Hi,
    Yes, you can.

    #13867
    kcks66
    Participant

    Hi Mikhail,

    I configured PostgreSql as my main achieve now. This is great.
    Thank you.

    #13889
    kcks66
    Participant

    Hi 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.

    #13891
    Mikhail
    Moderator

    Hi,
    Could you clarify your question?

    #13892
    kcks66
    Participant

    Hi 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.

    #13893
    Mikhail
    Moderator

    Hi,
    Channel formulas work only with current data. To calculate differences (e.g., power consumption), I suggest Elastic Report Plugin.

    #13898
    kcks66
    Participant

    Hi 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.

    #13903
    Mikhail
    Moderator

    Hi,
    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.

    #13913
    kcks66
    Participant

    Hi Mikhail,

    Noted. I try calculate power consumption by using current data at the moment.
    Thank you.

    #13915
    Mikhail
    Moderator

    Hi,
    OK. I hope we will create a module to calculate consumption in the future.

Viewing 15 posts - 1 through 15 (of 19 total)
  • You must be logged in to reply to this topic.