pde vs internal memory

Related to the development libraries, released by Curt Binder
Post Reply
wijigong
Posts: 51
Joined: Sat Sep 17, 2011 5:03 am

pde vs internal memory

Post by wijigong »

if i use reef angel client or ragen for change time for light or temperature and i upload it is write on the memory????

and after this i make pde file and put some config for time light or temperature this pde file bypass the value set when i upload memory value??

the french guy :lol:
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: pde vs internal memory

Post by rimai »

It will only bypass those values if it is hardcoded.
Here is an example:
The code below will not bypass any memory settings.

Code: Select all

ReefAngel.StandardLights(Port1);
But the code below will always bypass any memory settings and will always turn on at 10am and off at 6pm

Code: Select all

ReefAngel.StandardLights(Port1,10,0,18,0);
If you use the first, the order you change the memory settings is what is going to matter.
Let's say you upload a "Internal Memory" code that you generated with RAGen and then upload your "PDE" code that you generated with RAGen.
Assuming you didn't change the "PDE" code, it will start working with the same schedule you entered on the "Internal Memory" code.
If you change the light shcedule through the Client, the previous schedule that was created by the RAGen will be erased and the new schecule sent by the Client will take over.
I hope this helped.
Roberto.
wijigong
Posts: 51
Joined: Sat Sep 17, 2011 5:03 am

Re: pde vs internal memory

Post by wijigong »

thank a lot
Post Reply