Shop OBEX P1 Docs P2 Docs Learn Events
reading SX ID — Parallax Forums

reading SX ID

ChetChet Posts: 150
edited 2008-07-29 04:43 in General Discussion
How do you read the ID field from the SX?·
Do you have to write into the program to disply it or is there another way to check it?

Thanks

Chet

Comments

  • ZootZoot Posts: 2,227
    edited 2008-07-28 21:59
    With the SX-Key connected:

    Run -> Device -> Read

    The ID will show up in the ID field middle right; if the chip is not "copy-protected" then the source (hex) will appear in the field at lower left (code can be saved to desktop). Even if copy protected, the 8 byte (character) ID can still be read.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    When the going gets weird, the weird turn pro. -- HST

    1uffakind.com/robots/povBitMapBuilder.php
    1uffakind.com/robots/resistorLadder.php
  • Guenther DaubachGuenther Daubach Posts: 1,321
    edited 2008-07-28 22:34
    Chet,

    the ID field is "for reference only" - IOW you may assign a string of text to it with the "ID" directive in a souce code file, and you may later retrieve it like Zoot had described it. There is no way to directly read the ID string from within an SX application program.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Greetings from Germany,

    G
  • JonnyMacJonnyMac Posts: 9,216
    edited 2008-07-28 22:37
    If you need to retrieve an ID at run time you can always store it in a table and read it out. Since data in the SX can only be changed at programming time there is no [noparse][[/noparse]/littel] danger of the ID becoming corrupt.
  • ChetChet Posts: 150
    edited 2008-07-29 04:43
    Thanks gents. I will give it a try tomorrow.

    Chet
Sign In or Register to comment.