Pink Variable Problems
Acording to the PINK manual, variable 0 through 19 are written to flash memory, and 20 through 99 are written to ram.··This should mean that 0-19 retain there·data, even when power is lost.· However, When I (expletive)ign a variable through a web page or through the propeller, the data seems to disapear after a power reset.· The following is what code I am using with the Pink:
<FORM method="post" action="/test.html">
<P>
What value would you like stored in variable 01?
<INPUT name="Nb_var01"type="text"size="24"maxlength="63">
<INPUT type="submit">
</P>
</FORM>
Serial.str(string("!NB0W02:25")
Serial.tx(0)
Like I said, the data writes fine, it just disappears after power reset.· Any Ideas?
Thanks,
crgwbr
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
NerdMaster
For
Life
<FORM method="post" action="/test.html">
<P>
What value would you like stored in variable 01?
<INPUT name="Nb_var01"type="text"size="24"maxlength="63">
<INPUT type="submit">
</P>
</FORM>
Serial.str(string("!NB0W02:25")
Serial.tx(0)
Like I said, the data writes fine, it just disappears after power reset.· Any Ideas?
Thanks,
crgwbr
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
NerdMaster
For
Life
Comments
These variables are not written the the Flash every time they are updated. To make them default you must got the variables page and click on the link to make them defaults. I hope this helps. Take care.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
NerdMaster
For
Life
Yes, if in the variable modify page you cursor over each link to set the default you will see the link, which affects this. For example, for the first two variables it is…
http://xxx.xxx.xxx.xxx/VV_Default.htm?00
http://xxx.xxx.xxx.xxx /VV_Default.htm?01
Duplicating this on your page should have the same affect.· I hope this helps.· Take care.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
NerdMaster
For
Life