athes

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 19 total)
  • Author
    Posts
  • in reply to: Continuing a calcuation after restart ? #7918
    athes
    Participant

    Wow, really impressive.
    Far more advanced then my solution 🙂

    in reply to: Continuing a calcuation after restart ? #7915
    athes
    Participant

    I’ve just added to crontab this:

    5 0/3 * * * cp /opt/scada/ArchiveDAT/Cur/current.dat /opt/scada/ArchiveDAT/
    @reboot cp /opt/scada/ArchiveDAT/current.dat /opt/scada/ArchiveDAT/Cur/

    I have this entry in my fstab as per installation guide, so current.dat is on tmpfs / ramdrive:
    tmpfs /opt/scada/ArchiveDAT/Cur tmpfs defaults,noatime,size=10m 0 0

    What exactly do you mean on “I used formulas to save and read channel data to a file”? Did you remove the tmpfs and write current.dat to SD card?

    in reply to: Continuing a calcuation after restart ? #7912
    athes
    Participant

    RAM disk was the issue. I’ve set up a script to back up the current.dat in every 3 hours and an other to copy back after @restart. Working fine.
    Thanks for your kind support!

    in reply to: Continuing a calcuation after restart ? #7904
    athes
    Participant

    Sorry for the confusion, I see it is not exactly the same question as the original in this thread.

    in reply to: Continuing a calcuation after restart ? #7903
    athes
    Participant

    Hi,

    1. Done
    2. Done. Value correct (25089)
    3. Done. Value correct (25089, status: 1)

    I have no issue if only the RapidScada server/communicator got restarted.
    I have issue if the whole raspberry got restarted (OS restart) –> If I restart my raspberry, the value will be 0 instead of continuing from the last valid value.

    My – not so elegant – workaround: I have a daily copy of the current.dat file, and after reboot I stop the server, overwrite the new current.dat with the old saved one, then my counters continue from the right value.

    in reply to: ChartPro Colors are gone #7902
    athes
    Participant

    Hi Mikhail,

    Thanks, point 2 was the issue: I’ve copied it during the upgrade, but was missing from the project. After the firs upload I assume it was deleted from the /opt/SCADA/ScadaWeb/config/ path.

    Now it works as designed. 🙂

    in reply to: Continuing a calcuation after restart ? #7895
    athes
    Participant

    Hi Mikhail,

    I need again your kind help.
    I have the same issue. I didn’t get you how to store the values to survive restart.

    I have at least 30 calculated minute values.
    One example: https://drive.google.com/file/d/1_XMJvwn8yaApgV3lr1lA9NkmWRFj0-Mm/view?usp=drivesdk

    In this example I want to keep Val(1311) after restart.

    What exactly should I do if I want to keep the calculated values?

    athes
    Participant

    Thanks Mikhail,
    This solved my issue.

    in reply to: Automatic Control Module – Multiply triggers #6317
    athes
    Participant

    Got it, thanks.

    in reply to: Automatic Control Module – Multiply triggers #6312
    athes
    Participant

    Wow, what a magic. It works, thank you!

    Can I use ‘Formulas’ also for this purpose? If yes, how? (my formula returns with a 0 or 1)

    Does it work in output formula field?
    CustomFormula(Val(101), Val(102), Val(103)) = 1 ? Cmd : double.NaN

    in reply to: Elastic Report – xml configuration #6281
    athes
    Participant

    Hello, this part (xml) is a bit difficult for me and when I opened a report after modification I was shocked 🙂 , so I developed an other way to have the information: based on your posts I’ve put together a counter for each on/off channels, and now I can use more easily ElasticReport with the calcType=”Diff”.
    Thanks for your kind help, problem is solved now.

    in reply to: Elastic report — non clickable link #6265
    athes
    Participant

    I had a lot of play with this, but finally after a webserver restart everything works as expected. Thanks for your kind help.

    athes
    Participant

    Oh yeah, getting tired, you are absolutely right, thanks.

    in reply to: Remove unused Views #6247
    athes
    Participant

    Working fine, thank you.

    in reply to: Runtime Error on Rasbian after upgrade to 5.7.1 #6231
    athes
    Participant

    1) Worked fine, thank you.
    2) Worked also fine, but it transferred with the Server Common Parameters the Windows default folder configuration, which is obviously not working on Linux. After edeiting this it is fine again.

    Big thank you for your kind support.

Viewing 15 posts - 1 through 15 (of 19 total)