Shop OBEX P1 Docs P2 Docs Learn Events
Pink Variable Problems — Parallax Forums

Pink Variable Problems

crgwbrcrgwbr Posts: 614
edited 2007-01-27 00:01 in General Discussion
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

Comments

  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2007-01-26 20:37
    Crgwbr,

    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
  • crgwbrcrgwbr Posts: 614
    edited 2007-01-26 20:51
    Is there anyway to embed the "Set Defalt Value" function into my own webpage?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    NerdMaster
    For
    Life
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2007-01-26 21:20
    Crgwbr,

    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
  • crgwbrcrgwbr Posts: 614
    edited 2007-01-27 00:01
    Thanks, this helped a lot.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    NerdMaster
    For
    Life
Sign In or Register to comment.