Forum Replies Created
-
AuthorPosts
-
athes
ParticipantWow, really impressive.
Far more advanced then my solution 🙂athes
ParticipantI’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 0What 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?
athes
ParticipantRAM 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!athes
ParticipantSorry for the confusion, I see it is not exactly the same question as the original in this thread.
athes
ParticipantHi,
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.
athes
ParticipantHi 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. 🙂
athes
ParticipantHi 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=drivesdkIn this example I want to keep Val(1311) after restart.
What exactly should I do if I want to keep the calculated values?
July 6, 2020 at 4:11 am in reply to: ModAutoControl – Trigger a command based on the change of a variable #6983athes
ParticipantThanks Mikhail,
This solved my issue.athes
ParticipantGot it, thanks.
athes
ParticipantWow, 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.NaNathes
ParticipantHello, 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.athes
ParticipantI had a lot of play with this, but finally after a webserver restart everything works as expected. Thanks for your kind help.
December 24, 2019 at 8:10 pm in reply to: Upload Configuration — Elastic Report Registration keys are not ignored #6259athes
ParticipantOh yeah, getting tired, you are absolutely right, thanks.
athes
ParticipantWorking fine, thank you.
athes
Participant1) 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.
-
AuthorPosts