HELP with programming the HP50G



#5

I am tinkering with RPL on the HP graphing calculators. Today I wrote a program on my HP50G to do multiple regression using vector/matrix commands. I was able to store, debug, and run the program just fine. HOWEVER, For some reason I was unable to store my test data in variables (I created a special directory for the program). When I enter the name of a variable (enclosed in single quotes) to store a vector or matrix, and click the STO button, the data disappears! I don't see new variables listed in either the current directory OR ANY OTHER directory. I ended up having to re-key in the data many times in several debugging sessions. Ugh!!!

What setting must I change for the HP50G to store data like it should?? I must be missing something or must have set something in the Mode->Flags menu that produces this bizarre behavior.

Thanks,

Namir

Edited: 28 July 2010, 6:34 p.m.


#6

Hi, Namir;

the only explanation that comes (at this point, at least) to my mind is that you are storing data in local variables that have been created by instance(s) of the program still HALTed. Please, check if the HLT annunciator is shown in the upper right corner of the display and, if so, use KILL to stop/remove any pending session, hence killing any local variables still active.

I am not sure if there is something else, like storing/retrieving data in a directory chain, but once I had observed such particular memory handling structure while step-by-step executing HP48/49/50 programs, I think yours is the same case.

You see, if you are debugging a program and notice one problem, edit it, correct the problem, store the edited version and go ahead stepping through the halted version, you are actually stepping into the original, unmodified version. If you start a new one without KILLing any pending programs, you have something like a memory leak (described in previous threads... I liked the term!!!): the newly executed program, either in straight execution or in step-by-step mode, does not automatically kill the halted executions, and these program 'ghosts' use memory in a 'hidden' way. You can only go back to previously halted program(s) instances once you go ahead and finish the one(s) halted after those. KILL, however, wipes them all out.

Hope this helps a bit.

Luiz (Brazil)


Edited: 28 July 2010, 8:06 p.m.


#7

Luiz,

You are a genius!!! Since I was debugging the program (several times) I had pressed the HTL menu and the HLT annunciator was on. I pressed KILL as you suggested and the proceeded to store data. It worked!

Thank you very much for your valuable help!

Namir

Edited: 28 July 2010, 8:44 p.m.


#8

Hi, Namir;

good to know that the mystery is solved.

Quote:
Luiz,
You are a genius!!!
I´m flattered, thanks! Anyway, the actual geniuses are the ones who created such gentle beasts... I just figured that out prior to read about it later, though.

Cheers!

Luiz (Brazil)


Edited: 28 July 2010, 10:27 p.m.


Possibly Related Threads…
Thread Author Replies Views Last Post
  hp50g screen weird line Sok-khieng Chum Hun 2 1,647 09-10-2013, 08:11 AM
Last Post: Sok-khieng Chum Hun
  Documentation about Hp50g / 49g+ / 48gII and wikis Pier Aiello 9 3,033 09-10-2013, 04:22 AM
Last Post: Software49g
  "A Penny for your thoughts" on the HP50g Tom Grydeland 3 1,746 08-01-2013, 03:57 AM
Last Post: Les Koller
  Is there a HP50g emulator for Linux? Matti Övermark 2 1,559 07-03-2013, 07:40 AM
Last Post: Matti Övermark
  HP50G advanced applications for mathematics CompSystems 0 1,182 06-17-2013, 08:38 AM
Last Post: CompSystems
  HP50g rebind stat key Chris Smith 1 1,172 05-26-2013, 06:21 PM
Last Post: Software49g
  How I use my HP50G at work. David Bengtson 7 2,549 05-06-2013, 02:57 PM
Last Post: Ingo
  HP50g emulator Richard Berler 1 1,198 03-24-2013, 02:43 PM
Last Post: aurelio
  Focus on the HP50g Mic 13 3,607 01-22-2013, 09:18 PM
Last Post: Ronald Williams
  HP50g and rechargeables Chris Smith 11 3,041 01-07-2013, 02:43 AM
Last Post: Derek Walker (UK)

Forum Jump: