Only Archive on “Status change”

Forum Home Forums Understanding the Software Only Archive on “Status change”

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #17412
    TroyV23
    Participant

    Hi,

    I have a digital input logger device in the field that communicates with RapidScada via modbus, and currently I am polling the device to get updated status of each input “ON” or “OFF” but this creates a lot of wasted data.

    A preferred, and more efficient method would be if the archive only contained time stamps when the input status changed, and what that status changed to.

    For Example…

      Current setup:

    Input0001 – ON – 10:00:01
    Input0001 – ON – 10:00:02
    Input0001 – ON – 10:00:03
    Input0001 – ON – 10:00:04
    Input0001 – OFF – 10:00:05
    Input0001 – OFF – 10:00:06

      Preferred Setup:

    Input0001 – ON – 10:00:01
    Input0001 – OFF – 10:00:05

    Is this possible to do inside Rapidscada?
    I am currently archiving to an PostgreSQL database.

    Thanks in advance!

    #17413
    Mikhail
    Moderator

    Hi,
    Historical archives of the default type save data with fixed period.
    To save data on change, enable PostgreSQL archives. They are disabled in the HelloWorld project. Archives can be found and configured in Instances – Default – Server – Archives.

    #17414
    Mikhail
    Moderator

    > I am currently archiving to an PostgreSQL database.
    If so, just configure the archive options.

    #17415
    Mikhail
    Moderator

    Note that you need some intermediate points to draw a chart.

    #17416
    TroyV23
    Participant

    Thanks!

    I will need up to seconds accuracy for the time-stamp of the status changes, how would I achieve that?

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