Announcement

REXYGEN forum has been moved. This one is closed.
Head over to the new REXYGEN Community Forum at https://forum.rexygen.com.

Looking forward to meeting you there!
 

#1 2016-04-07 16:14:18

scoobsalamander
Member
From: Belgium - Hulshout
Registered: 2015-10-27
Posts: 217

Non volatile memory for storing totals?

In my project I have some integrators running to totalize the kilowatts measured by means of a current trafo + voltage measurement.

All this is working fine but every time I download a change to my project I loose all the total values and after restart they start at zero again.

What would be the easiest/best way to store these values?

Offline

#2 2016-04-08 11:25:33

tomáš čechura
Administrator
Registered: 2016-02-22
Posts: 371

Re: Non volatile memory for storing totals?

Hey scoobsalamander!

You can try to use FB called SGSLP (Set, Get, Save and Load Parameters). For more details see documentation.

Cheers, Tomas

Offline

#3 2016-04-08 12:36:47

scoobsalamander
Member
From: Belgium - Hulshout
Registered: 2015-10-27
Posts: 217

Re: Non volatile memory for storing totals?

Wouldn't this result in a big amount of write/read cycles on my SD card?

Maybe I can constantly update a record on my MySQL dB (on external server) and during a restart of the RasPi the latest record will be read during start-up to give the block(integrator) an initial starting value......just a thought...


(but a possibility to keep values and parameters stored in a non-volatile memory I would like to put on the wishlist wink )

Offline

Board footer

Powered by FluxBB