Shop OBEX P1 Docs P2 Docs Learn Events
This code gives eror, do not know why. — Parallax Forums

This code gives eror, do not know why.

GRCGRC Posts: 22
edited 2006-04-12 02:07 in General Discussion
Hello all.Having trouble with a code example from the SX/B help file(Thermomter Code).The "READ" instruction causes an error, if commeted out, program will loadin to sx. Will some one try to load this into an SX to see if they have the sametrouble? ·Thank youGordon·

Comments

  • Jon WilliamsJon Williams Posts: 6,491
    edited 2006-04-05 21:32
    You've probably got an older vesion of SX/B -- you can get 1.42.01 (the latest) from a sticky post at the top of this forum.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
  • GRCGRC Posts: 22
    edited 2006-04-05 22:48
    Thanks Jon.

    Wasn't aware my current version was out-dated. I'll upgrade it right away.

    Thanks Again

    Gordon
  • GRCGRC Posts: 22
    edited 2006-04-05 23:07
    Hello again.
    Still no Luck.· Think I have most current version of SX software, dowloaded it in December.
    This line
    ·· READ Digmap + digPntr, DigCtrl··············· ' select display element
    in the code causes this error to be displayed...INVALID PARAMETER·"Digmap".
    Any ideas or tips?
    Gordon

    P.S. Why does my post format skip every other line?
  • BeanBean Posts: 8,129
    edited 2006-04-05 23:57
    Gordon,

    SXB was updated AFTER the sx software was released. You need to download version 1.42.01 from this forum and replace the files in the C:\PROGRAM FILES\PARALLAX INC\SX-KEY 3.1\COMPILERS\SXB with the files in the zip you download.

    This problem is corrected in the update.

    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "SX-Video·Module"·available from Parallax for only $28.95 http://www.parallax.com/detail.asp?product_id=30012

    "SX-Video OSD module"·available from Parallax for only·$49.95 http://www.parallax.com/detail.asp?product_id=30015
    Product web site: www.sxvm.com

    Available now! Cheap 4-digit LED display with driver IC·www.hc4led.com

    "I reject your reality, and substitute my own." Mythbusters
    ·
  • GRCGRC Posts: 22
    edited 2006-04-06 01:59
    I understand what you guys are saying. The trouble is I'm unable to upgrade the SX/B.· Must

    have made a dozen attempts. To tell the truth, I'm running out patience with this issue. After

    running the update from the sticky post, I run the program, only to recieve a black screen(DOS style).

    This screen says it needs a selected file to complie.

    Any ideas? Perhaps someone else might have this trouble. I'm stuck.

    Gordon.
  • BeanBean Posts: 8,129
    edited 2006-04-06 02:12
    You do NOT run the SXB.EXE, you just copy the file to the directory I mentioned above. Your done.
    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "SX-Video·Module"·available from Parallax for only $28.95 http://www.parallax.com/detail.asp?product_id=30012

    "SX-Video OSD module"·available from Parallax for only·$49.95 http://www.parallax.com/detail.asp?product_id=30015
    Product web site: www.sxvm.com

    Available now! Cheap 4-digit LED display with driver IC·www.hc4led.com

    "I reject your reality, and substitute my own." Mythbusters
    ·
  • Charlie JohnsonCharlie Johnson Posts: 147
    edited 2006-04-06 03:20
    From the first 3 lines of the "Sticky Post" that you used to get the update:
    ================================================

    Download and unzip the attached file to this folder:

    C:\Program Files\Parallax Inc\SX-Key v3.x\Compilers\SXB

    (This assumes you've installed in the default program location)
  • Jon WilliamsJon Williams Posts: 6,491
    edited 2006-04-06 15:29
    There is an errant character in the code -- in this line

    · READ Digmap: + digPntr, DigCtrl

    -- your version of the program has a colon (:) after "Digmap" and if you remove that the program will compile.

    I've checked the original source on my computer and the colon is not present.· This must have just been a slip of the keyboard while examining the file.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
  • GRCGRC Posts: 22
    edited 2006-04-07 00:11
    Hi guys, thanks for the replies. Sounds like I'm making this more difficult than it is. I'll
    give copying the file and not running the .exe a go. Do you know if the lastest download
    in·the download sections includes the lastest SX/B?

    Jon, the ":" was something I added·after making several attempts at making the code work.
    The version in my computer would not complie with or without the ":". Tried severeal time
    without it. No luck.

    Thanks·for your help
    Gordon
  • GRCGRC Posts: 22
    edited 2006-04-07 01:58
    ARGHHH!!!
    Ok, this isn't working. Copying the file to the one mentioned does change anything. Deleting the
    orginal version and replacing it only make the SX software unusable.· How can I update the SX/B.
    No matter what I try it still fails.· Will not accept update, will not complie code.

    I'm at a lost here. What am I doing wrong?
    Please help.
    Gordon
    ·
  • Jon WilliamsJon Williams Posts: 6,491
    edited 2006-04-07 02:06
    Frustration may be getting in the way -- you might want to call Tech Support (888-512-1024) in the morning and have them walk you through it. Ask for Chris, he uses SX/B quite a lot. If you want help tonight, PM me with your phone number and I'll call.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
  • GRCGRC Posts: 22
    edited 2006-04-07 02:50
    Hi Jon, believe you might be correct when said "frustraion getting in the way".
    Decide to put my efforts into a new approach. Heres a work-around for the READ/DATA.

    update_Segs:
    Segs = Blank ' blank segs
    'READ DigMap + digPntr, DigCtrl ' select display element
    if digPntr = 1 then dig1
    if digPntr = 2 then dig2
    if digPntr = 3 then dig3
    if digPntr = 4 then dig4
    workaround:
    Segs = display(digPntr) ' output new digit segs




    then modified this piece of the code

    DigMap:
    dig1:
    DigCtrl = %11111110 ' digit select map
    'DATA %11111110
    goto workaround
    dig2:
    DigCtrl = %11111101
    'DATA %11111101
    goto workaround
    dig3:
    DigCtrl = %11111011
    'DATA %11111011
    goto workaround
    dig4:
    DigCtrl = %11110111
    'DATA %11110111
    goto workaround

    Code compiles, though believe the 4-segement-display might have a fewLEDs mis-wired.
    Can see anyerrors/issuses this modifacition might cause?

    Thanks for the tech support suggestion Jon. I give them a call after work tomorrow.
    Gordon













  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2006-04-07 14:30
    Gordon,

    ·· The offer still stands.· You have the option to go through the setup and updating of the SX/B with us here in Tech Support.· If you choose to do this I would recommend downloading the latest SX Key Editor software from our web page, and the file Jon asked you to download, and we will make sure everything is up to date, since it sounds like you're trying to find work-arounds.


    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
    csavage@parallax.com
  • Jon WilliamsJon Williams Posts: 6,491
    edited 2006-04-07 14:56
    Gordon,

    Please take Chris up on his offer -- coding "work-arounds" because you don't have the lastest software installed is really not the best long-term answer and I fear it will lead to even greater frustration.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
  • GRCGRC Posts: 22
    edited 2006-04-12 02:07
    Got it straightened out now. Thanks Tech-support, and everyone else for your input.

    Gordon
Sign In or Register to comment.