HP Forums
Saving Stack of HP 50g - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: General Forum (/forum-4.html)
+--- Thread: Saving Stack of HP 50g (/thread-18200.html)



Saving Stack of HP 50g - matalog - 03-31-2022 10:40 PM

I asked a question somewhere a year or so ago, which calculator would allow the longest stack history of calculations, and someone told me it is the 50g. It would store even until it fills the 2GB SD card, if configured correctly.

I wouldn't want 2GB of stack obviously, but say I had a stack of 1000 calculations in algebraic mode, would it be possible to export them in some form to be downloaded and browsed on PC?


RE: Saving Stack of HP 50g - Eric Rechlin - 04-01-2022 01:54 PM

The stack doesn't operate off the SD card so you can't have a 2 GB stack; I believe it's limited by available memory in HOME (less than 256 KB). Still, that's a pretty deep stack, and 1000 elements would indeed be possible with enough free RAM.

Easiest way to export the stack is something like DEPTH ->LIST ->STR, which would put everything into a list and then convert it to a string which you could then save to an SD card and load onto a computer.


RE: Saving Stack of HP 50g - Wes Loewer - 04-02-2022 10:03 AM

I was going to suggest something similar to what Eric wrote.

STOSTACK
<< -> fn << DEPTH ->LIST fn STO >> >>

RCLSTACK
<< RCL OBJ-> DROP >>

So to store the stack onto an SD card, you would enter a file name such as
:3:mystack
STOSTACK

and to recall the stack
:3:mystack
RCLSTACK

However, I noticed you wanted to do this from Algebraic mode. Unfortunately, these programs only work from RPN mode, not Algebraic mode. I tried switching to RPN withing the program but that did not seem to work either. The work-around is to manually switch to RPN, run the program, then switch back. Someone else might have a better idea how to automate this from Algebraic mode.


RE: Saving Stack of HP 50g - matalog - 04-02-2022 05:40 PM

Does it save both parts of the calculations?

The results and the calculations?


RE: Saving Stack of HP 50g - Allen - 04-03-2022 01:24 PM

It would take a few minutes, but depending on what you want to do with it, it might be useful (and slow?)
to print the entire stack to a 82240A/B Printer.

I don't usually do this for large stacks (mainly because the stack manipulation gets really slow as the size of the stack increases).

You could also add a function to whatever program made the data to have each result appended to the end of a string that is stored on the SD card, then just read the "long" string from the SD card and parse it on the computer accordingly? I'd have to imagine that's just as slow as printing to the 82240 printer?

It's a curious question!


RE: Saving Stack of HP 50g - Wes Loewer - 04-03-2022 07:22 PM

(04-02-2022 05:40 PM)matalog Wrote:  Does it save both parts of the calculations?

The results and the calculations?

Yes, it saves the full Algebraic history, both the calculations and the results.