PLUS+1 User Forum

PLUS+1 Software => General controls => Topic started by: 240glt on February 05, 2014, 09:09:04 AM

Title: Save an array to non-volatile memory
Post by: 240glt on February 05, 2014, 09:09:04 AM
What is the best way to save an array to non-volatile memory? Is there an easy way?
Title: Re: Save an array to non-volatile memory
Post by: Marbek_Elektronik on March 08, 2014, 08:56:48 AM
I suggest to split the arrray in U8.
(To save memory it might be better to combine 2 U8 to 1 U16. Test this.)
then save each Byte (or Word) to 1 NV.
To read the array, you should combine all NVs to an array.
Title: Re: Save an array to non-volatile memory
Post by: kdcommon on March 31, 2014, 04:57:11 AM
Write is one by one to NV_ROM. And your array should avoid usin 'Insert' Function if your array is very long. Otherwise the each time a new value come in, all the elements will be wirte again otherwise only the new coming one. This will consuming a long time.