Chart Pro – How to set ArchiveCode for a custom (user-defined) archive

Forum Home Forums Understanding the Software Chart Pro – How to set ArchiveCode for a custom (user-defined) archive

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #18307
    Daniel1113
    Participant

    Hello,

    I created a custom historical archive (1-second writing period) registered in Secondary Tables > Archives with Code=”Sec” and Bit=16. I confirmed it works – the channel’s decimal archive value becomes 65536 when only this archive is enabled, and I can retrieve correct data by calling the internal API directly:

    http://localhost:10008/Api/ChartPro/GetFixedChartData?cnlNums=201&timeOffset=…&periodMs=…&archiveBit=16

    However, when I set <ArchiveCode>Sec</ArchiveCode> in PlgChartPro.xml’s DataOptions, the chart page requests archiveBit=1 (Min) instead. When I tried <ArchiveCode>16</ArchiveCode> (the bit number), it requests archiveBit=-1 and shows no data.

    Environment: Rapid SCADA Webstation 6.2.3.1, Chart Pro 6.1.1.1 (trial license).

    Could someone tell me the correct way to configure PlgChartPro.xml’s ArchiveCode field to point to a custom archive (not one of the built-in Cur/Min/Hour/Day/Events)? Is this supported in the current version?

    Thank you.

    #18308
    manjey73
    Participant

    Find the entry ‘Min’ in one of the fields of the Graphics template and replace it with your archive code ‘Sec’

    Next, create a table where you will have data only for ‘Sec’, and in the table parameters, specify the line for running the Archive.

    #18309
    manjey73
    Participant

    PlgChartPro_Sec20.xml=&profile=PlgChartPro_Sec20.xml

    By analogy. Go to the Table, click the gear.

    #18310
    Mikhail
    Moderator

    Hello,
    In short, you should create a new chart profile. It is a file located in the Webstation configuration in the project.

    1. Copy the existing file PlgChartPro.xml with a new name, and specify the archive in the new profile (DataOptions – ArchiveCode).
    2. Edit PlgChartPro_Config.xml by adding a new profile.
    3. Upload the project for execution.

    • This reply was modified 7 hours, 13 minutes ago by Mikhail.
    #18312
    Mikhail
    Moderator

    However, when I set ArchiveCode=Sec in PlgChartPro.xml’s DataOptions, the chart page requests archiveBit=1 (Min) instead.

    It sounds weird. Try creating a new profile for the Sec archive.

    I confirmed it works – the channel’s decimal archive value becomes 65536 when only this archive is enabled, and I can retrieve correct data by calling the internal API directly

    An archive name is shown in the chart info in the top. What archive is mentioned there?

    • This reply was modified 6 hours, 31 minutes ago by Mikhail.
Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.