Shop OBEX P1 Docs P2 Docs Learn Events
doubt — Parallax Forums

doubt

jabezsdavidjabezsdavid Posts: 11
edited 2010-07-19 15:22 in BASIC Stamp
I am working on with PINK. I want to send data to pink variable and then display it on the web page. so example program DS 1620 instead of debug I used serout.
DO

HIGH 10
SHIFTOUT 12,11,LSBFIRST,[noparse][[/noparse]170]
SHIFTIN 12,11,LSBPRE ,[noparse][[/noparse]x]
LOW 10

degC=x/2

SEROUT 15,396,[noparse][[/noparse]"!NBOW06:degC",DEC degC,CLS]

PAUSE 1
LOOP

and to get it on the web page, I used the html code

<html>
the value in variable 06 is : <Nb_var06>
</html>


I am not able to display onto the webpage.

Comments

  • stamptrolstamptrol Posts: 1,731
    edited 2010-07-15 12:30
    More info is needed in order to help you.

    Can you see the PINK on your network?

    Have you used the sample programs?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Tom Sisk

    http://www.siskconsult.com
    ·
  • jabezsdavidjabezsdavid Posts: 11
    edited 2010-07-15 13:16
    s I am able to see pink on my network and I am able to download the html file via ftp. the output which I get is "NA" on the web page screen. I also tried this sample program

    ' {$STAMP BS2p}
    ' {$PBASIC 2.5}
    SEROUT 14,396,[noparse][[/noparse]"!NBOW06:25",CLS]
    END

    do I have to go modify the variables in the System Variables
  • stamptrolstamptrol Posts: 1,731
    edited 2010-07-15 14:17
    I will have a look at my PINK system when I get home and show you what I've got.

    Hopefully someone else will join in the conversation before then.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Tom Sisk

    http://www.siskconsult.com
    ·
  • MoskogMoskog Posts: 554
    edited 2010-07-18 07:30
    Your code:

    ' {$STAMP BS2p}
    ' {$PBASIC 2.5}
    SEROUT 14,396,[noparse][[/noparse]"!NBOW06:25",CLS]
    END
    



    Try to replace with this code, the only difference is that·your O in·!NBOW06 is replaced with a zero, !NB0W06:
    ' {$STAMP BS2p}
    ' {$PBASIC 2.5}
    SEROUT 14,396,[noparse][[/noparse]"!NB0W06:25",CLS]
    END
    



    Hope this helps!

    Additional note:

    When writing to memory location 06 I think you write to Pink's Flash-memory, (00-19). I guess this memory have limited life, like in the BS2, ·so I prefer using memory location 20-99 for fast-changing data.



    Post Edited (Moskog) : 7/18/2010 4:47:50 PM GMT
  • MoskogMoskog Posts: 554
    edited 2010-07-19 15:22
    I said...
    When writing to memory location 06 I think you write to Pink's Flash-memory, (00-19). I guess this memory have limited life, like in the BS2, ·so I prefer using memory location 20-99 for fast-changing data.
    After checking the PDF-documentation I believe you can't write to Flash memory using your microcontroller. So !NB0W06 still write to RAM location 06. To set a default value (write to Flash memory location 06) you will have do that manually by going to [noparse][[/noparse]Pink's IP-address]/VV_Show.htm

    ·
Sign In or Register to comment.