binary to ascii conversion for HP49+ data

binary to ascii conversion for HP49+ data

Post by johnp.wagn » Wed, 05 Nov 2003 10:05:27


I would like to convert the variables (mainly matrices)I upload from
my 49G+ to ascii, so I can import into Excel, or JMP. I downloaded an
old DOS program from HPCalc.org for the 48G, but it didn't work
(numbers were still in binary format) Does anyone know of a program to
convert, once the data is on a PC, or failing that, can I get a
detailed file format for variables so I can write my own (probably
Visual Basic) program to do it. Of course, I would much prefer the
first option! I am running Windows NT and Windows 2000.
 
 
 

binary to ascii conversion for HP49+ data

Post by James M. P » Wed, 05 Nov 2003 10:51:46


> I would like to convert the variables (mainly matrices)I upload from
> my 49G+ to ascii, so I can import into Excel, or JMP. I downloaded an
> old DOS program from HPCalc.org for the 48G, but it didn't work
> (numbers were still in binary format) Does anyone know of a program to
> convert, once the data is on a PC, or failing that, can I get a
> detailed file format for variables so I can write my own (probably
> Visual Basic) program to do it. Of course, I would much prefer the
> first option! I am running Windows NT and Windows 2000.

I've decided to write a pair of programs for my own use to do just that.
Well, one to convert to the decompiled and translated format, and the
other to translate back and compile. They won't be fancy, just UserRPL
with a few SYSEVALs, but they'll do the job. I'll be happy to share them
with you and anyone else who wants them.

Well, but not on the PC, on the calculator itself which has exactly the
right tools to do the job; why make things difficult?

But I'm a bit tired and although I'm quite sure of how to go about it, I
haven't actually started writing anything yet, and I wouldn't want to
let them out until I'm happy with them. So have patience, maybe
tomorrow.

For now, I expect that putting the object on the stack, and doing \->STR
(where "\->" is the right arrow, character 141) on it to decompile it to
the string form, and then storing it in a named variable before
uploading it will suffice for what you want.

If you download it back to the calculator, it should be a character
string. Put it on the stack and do either STR\-> or OBJ\-> on it to
compile it again.

Are you using Conn4x to transfer the variables by the Xmodem protocol?
Conn4x doesn't work on my PC, so I'm using my SD card and reader to do
the transfers. But as long as Conn4x and Xmodem are working correctly,
it shouldn't make any difference.

--
Regards,
James