Archive Mask and Select Archives – How are they related?

Forum Home Forums Understanding the Software Archive Mask and Select Archives – How are they related?

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #18137
    Andi
    Participant

    Hello Mikhail,

    while working on my Rapid SCADA project I noticed something that I do not fully understand regarding channel archives.

    Every channel contains an Archive Mask value (for example 17 or 81) and there is also a Select Archives button.

    However, when I click the Select Archives button, the dialog always opens with:

    -Decimal value = 0
    -all archive bits cleared

    This happens even for channels whose Archive Mask column already contains values such as 17 or 81.

    Nevertheless, the historical values are correctly written into PostgreSQL by ModArcPostgreSql, and Grafana displays them without any problem.

    Therefore I would like to understand:

    1. What is the difference between Archive Mask and Select Archives?

    2. Which setting actually controls whether a channel is archived by ModArcPostgreSql?

    3. Is it expected that the Select Archives dialog opens with all bits cleared although the channel table already contains Archive Mask values?

    Thank you very much for your help!

    #18142
    manjey73
    Participant

    The presence of checkboxes should be present when you click on the Archive Selection with the specified mask.
    I didn’t check, maybe you set the archive, but didn’t assign it a bit for the mask, as a result of which you lose the checkboxes? But in theory, if the bit is not assigned, then it will simply be missing from the list when selecting the archive in the channel.

    #18143
    manjey73
    Participant
    #18146
    Mikhail
    Moderator

    Hello,

    In the Channels table, there are 4 columns (related to the question):
    Archive Mask,
    Select Archives,
    Event Mask,
    Select Events.

    If the Archive Mask cell contains, for example, 81, when you click the Select Archives button, the popup form should contain 81 and some checkboxes are checked.

    If it doesn’t work, please provide screenshots.

    #18148
    Andi
    Participant

    Hello Mikhail,

    Thank you for your explanation.

    Unfortunately, this is exactly the behaviour that I observe.

    For example:

    -The channel table shows Archive Mask = 17 (or 81 for a writable channel).
    -When I click Select Archives, the popup always opens with:
    -Decimal value = 0
    -no checkboxes selected.

    I have attached screenshots that demonstrate this behaviour.

    So it seems that the Archive Mask value is not transferred into the selection dialog.

    Is there anything else I should check?

    Thank you very much!

    https://ibb.co/mCt33BVs

    #18149
    Andi
    Participant

    Thank you very much, Manjey73, for your reply and for taking the time to provide the screenshot. It is a great help.

    #18151
    Mikhail
    Moderator

    Hello,
    In the screenshot provided, 17 is the event mask, while the clicked button is for archive mask.

    #18152
    Andi
    Participant

    Hello Mikhail,

    Thank you for your clarification. You were absolutely right – I had mixed up the Event Mask and the Archive Mask. That explains why I was looking at the wrong value.

    I then performed some tests with a single channel.

    Results:

    – If the Archive Mask is empty, the channel is written to the default archives, including the PostgreSQL minute copy (mincopy_historical), and Grafana receives the data.

    – If I explicitly select only “Daily archive copy”, the data immediately stops appearing in Grafana because it is no longer written to the PostgreSQL minute archive.

    – If I select only “Minute archive copy”, the data is written to PostgreSQL again and Grafana continues normally.

    – If I select only “Minute archive” (without “Minute archive copy”), the data is still stored in the internal Rapid SCADA minute archive, but it is no longer copied to PostgreSQL, so Grafana no longer receives it.

    These tests helped me understand how the archive selection works.

    Thank you very much for your help!

    #18153
    Mikhail
    Moderator

    Hello Andi,
    Thanks for the detailed report 🙂

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