I have the good fortune to enjoy toying with an HP49. Fortunatly setting flag 117 returns soft keys similar to my old 48S.
Problem Statement:
We have developed a simple list program:
« DEPTH LIST SORT REVLIST DUP 'OFILE' STO LIST DROP »
The "DUP 'OFILE' STO" posts a textfile which is easy to transfer to my PC, but difficult to parse using excel (linebreaks do not equal record breaks). My goal is to collect data using the hp49, then analyse it on the spot. Later, back in the office, to load the records into a master list for further analysis.
Is there a way to use the PRST command to generate a textfile to HOME on the 49? for simple transfer to my PC?
I have use HPComm software, but can only create the link using the start server command.
HP49 Printing
|
|
« Next Oldest | Next Newest »
|
▼
Post: #9
07-17-2002, 08:23 PM
▼
Post: #10
07-17-2002, 09:27 PM
I don't think that PRST is the command you're looking for. Maybe change your program to: \<< DEPTH \->LIST SORT REVLIST DUP \->STR 'OFILE' STO LIST\-> DROP \>> and use the character commands to work with the string? But what type of objects are on the stack when you start? How many? How do you need it formatted for use on the PC?
Regards,
Post: #11
07-18-2002, 12:14 AM
Hi; I agree with Mr. Prange, transfering a string object will parse "spell checking", so you will have no problem transfering. Anyway, your Linebreak characters can be easily found (POS) and replaced by the ones -record breaks- you need (REPL); put this in a loop that will end when POS returns zero, and your former string with linebreaks will contain record breaks in their places. There is also the translation code issue. Have you tried changing it? I'm not sure these are the problems, neither if my suggestions will (help) to solve them, but, as Mr. Prange mentioned, some more data will help us understanding. Hope it helps a bit more. Cheers. (try the HP48G related material, mostly the AUR manual; a lot of good stuff in a better, concise text is there. And most of it "fits" on the 49's resources)
Post: #12
07-20-2002, 02:31 PM
Fellows; Luiz, James
FI Last Name [ENTER] @Character string, including spaces
[En1] @ stores this info as a list {average minimum FI LAST {RAW DATA}
[WINN2] @ sorts the records in descending order, and posts data to [OFILE2].
At this point the field mission is complete and the HP49 returns to my skilled? hands.
PS: ▼
Post: #13
07-20-2002, 02:49 PM
Long on talk, missed my question. How do I insert a carrige return (space up, line break, any name will do) on that text string? [right shift] [.] just adds a line break to the text for the program? I remember that this is an an asci chr 10. This agrees with the; symbol number and function given on the 49. How do I apply it to the string?
Post: #14
07-20-2002, 08:26 PM
Well, first off, I suggest that when you upload programs to your
Personally, I like to add the information from the BYTES command
Note that there's a lot of information about these calculators
Also note that the usenet newsgroup comp.sys.hp48 rather
For your EN1 program, note that DUP DUP DUP can be replaced by
If you want to do statistical analysis, the 49G has lots of As a replacement for:
%%HP: T(3)A(R)F(.);I'd suggest: %%HP: T(3)A(R)F(.);Much smaller, and I'd bet faster, although it's hard to get anything done in a nanosecond when using a 4MHz processor.
Regarding "carriage return" characters, yes, I think that you
Anyway, I'll guess that the best thing for you to do is replace %%HP: T(3)A(R)F(.);but the 49G provides the faster, shorter, and easier SREPL command specifically for this task. Try: %%HP: T(3)A(R)F(.);If you also want to get rid of the "{ " and " }" delimiters, you can use: %%HP: T(3)A(R)F(.);Regards, James ▼
Post: #15
07-20-2002, 10:49 PM
PS:
If you're trying to key this stuff in directly on a calculator instead
Regarding Google, you can also just browse the newsgroup at |