The following warnings occurred:
Warning [2] Undefined array key 20030 - Line: 275 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 275 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined array key 20034 - Line: 275 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 275 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined array key 20039 - Line: 275 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 275 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined array key 20108 - Line: 275 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 275 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined array key 20109 - Line: 275 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 275 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined array key 20123 - Line: 275 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 275 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined array key 20128 - Line: 275 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 275 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined array key 20130 - Line: 275 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 275 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined variable $thread - Line: 295 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 295 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Trying to access array offset on value of type null - Line: 295 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 295 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined variable $fid - Line: 295 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 295 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined array key 20034 - Line: 331 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 331 errorHandler->error_callback
/inc/plugins/threaded_mode.php 332 ThreadedMode::buildtree
/inc/plugins/threaded_mode.php 304 ThreadedMode::buildtree
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined array key 20039 - Line: 331 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 331 errorHandler->error_callback
/inc/plugins/threaded_mode.php 332 ThreadedMode::buildtree
/inc/plugins/threaded_mode.php 304 ThreadedMode::buildtree
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined array key 20109 - Line: 331 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 331 errorHandler->error_callback
/inc/plugins/threaded_mode.php 332 ThreadedMode::buildtree
/inc/plugins/threaded_mode.php 332 ThreadedMode::buildtree
/inc/plugins/threaded_mode.php 304 ThreadedMode::buildtree
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined array key 20130 - Line: 331 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 331 errorHandler->error_callback
/inc/plugins/threaded_mode.php 332 ThreadedMode::buildtree
/inc/plugins/threaded_mode.php 332 ThreadedMode::buildtree
/inc/plugins/threaded_mode.php 332 ThreadedMode::buildtree
/inc/plugins/threaded_mode.php 332 ThreadedMode::buildtree
/inc/plugins/threaded_mode.php 304 ThreadedMode::buildtree
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined variable $theme - Line: 3 - File: inc/plugins/threaded_mode.php(305) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php(305) : eval()'d code 3 errorHandler->error_callback
/inc/plugins/threaded_mode.php 305 eval
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Trying to access array offset on value of type null - Line: 3 - File: inc/plugins/threaded_mode.php(305) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php(305) : eval()'d code 3 errorHandler->error_callback
/inc/plugins/threaded_mode.php 305 eval
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined variable $theme - Line: 3 - File: inc/plugins/threaded_mode.php(305) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php(305) : eval()'d code 3 errorHandler->error_callback
/inc/plugins/threaded_mode.php 305 eval
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Trying to access array offset on value of type null - Line: 3 - File: inc/plugins/threaded_mode.php(305) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php(305) : eval()'d code 3 errorHandler->error_callback
/inc/plugins/threaded_mode.php 305 eval
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined variable $lang - Line: 5 - File: inc/plugins/threaded_mode.php(305) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php(305) : eval()'d code 5 errorHandler->error_callback
/inc/plugins/threaded_mode.php 305 eval
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Attempt to read property "messages_in_thread" on null - Line: 5 - File: inc/plugins/threaded_mode.php(305) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php(305) : eval()'d code 5 errorHandler->error_callback
/inc/plugins/threaded_mode.php 305 eval
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks





HP49 Printing



#9

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.


#10

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,

James

#11

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)

#12

Fellows; Luiz, James
Thanks for the feedback. To answer Mr. Vieira 's question.
Input will be via unskilled hands.
Two entries go onto the stack;

FI Last Name [ENTER] @Character string, including spaces
{0.102 0.507 0.437 0.252 0.7654} [ENTER] @ a list, containing three to five measurements, measured to 10/10,000 inch.

[En1] @ stores this info as a list {average minimum FI LAST {RAW DATA}
There may be from ten to twenty records during the day, once all measurements are completed....
At the end of the day,

[WINN2] @ sorts the records in descending order, and posts data to [OFILE2].
Now a string, thanks to Mr. Prange's advice.

At this point the field mission is complete and the HP49 returns to my skilled? hands.
At my office, I will transfer [OFILE2] to my PC (and rename) for record retention.
On request, I will import each data file into EXCEL, and prepare a pivot table to post results.
I'm lazy, so most of this is presently done via macros.
Presently? A fair question to ask.
Presently, this is being done with an aged HP notebook, using a DOS application written in Alpha 4.
"Unskilled hands" are intimidated by the notebook, unwilling to try or learn.
Getting data entry has been problematic. Even in my skilled hands, the notebook can be unnerving. Three hours to generate the measurements, then entry, analysis, and reporting.... in one nanosecond or less, please.
The mighty 49 is my Trojan horse. It is eminently more suitable to the task, and has eager operators to provide data entry. One calculator, several buttons, far less intimidating, much better suited to the task.
Programs behind the softkeys:
[En1] %%HP: T(1)A(D)F(.);
« DUP DUP DUP SORT
HEAD SWAP (sum)LIST 3.
ROLL SIZE / 3. DROP
4. PICK 4. PICK SWAP
4. PICK 4. PICK 4.
->LIST REVLIST SWAP
DROP SWAP DROP SWAP
DROP SWAP DROP
»
[WINN2] %%HP: T(1)A(D)F(.);
« DEPTH -> LIST SORT
REVLIST DUP ->STR
'OFILE2' STO LIST ->
DROP
»
[OFILE2] %%HP: T(1)A(D)F(.);
"{ { 0.6123 0.3210 PTY { 0.3210 0.6540 0.8620 } } { 0.4560 0.1230 VQM { 0.7890 0.4560 0.1230 } } { 0.2580 0.1470 MQV { 0.2580 0.1470 0.3690 } } }"

PS:
"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"
I understand this advice, and I know exactly what Mr. Vieira has in mind. The syntax in the 49 AUR manual also seems straightforward. Unfortunately, my 49 thinks otherwise. I'm sure that a sharp programmer, will quickly conclude from the instructions in [En1] that our 49 programming experience is in it's infancy. Any more advice?


#13

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?

#14

Well, first off, I suggest that when you upload programs to your
PC in ASCII mode, you use HP Kermit translation mode 3 instead
of 1. You can set that by executing 3 TRANSIO, or in the
"TRANSFER" input form you can choose "\->255" for the "Xlat:"
field. I find it much easier to read or edit that way; pure
ASCII text, and you can use copy and paste from a text editor to
a Forum message (and vice versa) without having to mess around
with non-ASCII characters. I don't believe the 49G guides
include the Kermit translations, but they should be on page
27-16 of the HP 48G Series User's Guide; if you don't have it,
you can download a scanned PDF copy from hpcalc.org; see
http://www.hpcalc.org/details.php?id=3937. In the forum
you can use the preformatted text option (see
http://www.hpmuseum.org/artfmt.htm for details) to avoid
things like unwanted newlines after a hyphen.

Personally, I like to add the information from the BYTES command
so that anyone who copies a program can verify that he got it
exactly right.

Note that there's a lot of information about these calculators
at http://www.hpcalc.org/, and most of the information
about the 48 series (and even the 28 series) also applies to the
49G.

Also note that the usenet newsgroup comp.sys.hp48 rather
specializes in the 28 series, 48 series, 38G, 39G, 40G, and 49G
calculators. You can search the newsgroup archive at
http://groups.google.com/advanced_group_search?group=comp.sys.hp48,
which can be customized to you preferences by using
http://www.google.com/help/customize.html. But GOOGLE only
updates a few times a day, so if you wish to participate it's
better to use a different server. If your ISP doesn't provide a
usenet server, then I recommend
http://www.mailgate.org/index.html for a free web-based
server, or after you've signed up at mailgate, you can use your
own newsreader and the newsreader.mailgate.org server. This
Forum is great, but the Museum seems to specialize in
out-of-production models; I hope that not all of these
calculators will "qualify" for the museum anytime soon.

For your EN1 program, note that DUP DUP DUP can be replaced by
DUPDUP DUP, DUP DUPDUP, or (I believe very slightly faster) DUP
DUP2. The sequence 3. DROP seems particularly pointless. The 49G
command NIP can replace SWAP DROP. I haven't figure out why they
named it NIP; maybe it makes sense in French. In general, don't
put more copies of anything on the stack than you'll actually
use, that way it will be easier to keep track of what's actually
on the stack, the program will run faster, and you won't have to
go to the trouble of discarding unneeded copies later.

If you want to do statistical analysis, the 49G has lots of
commands for that, but they do require that the data is in the
form of a matrix stored in '\GSDAT', so as long as you only want
the minimum and average, it's probably just as easy to stick to
using lists.

As a replacement for:

%%HP: T(3)A(R)F(.);
@ Checksum: # 7F0Eh
@ Bytes: 104.5
\<<
DUP DUP DUP SORT HEAD SWAP \GSLIST
3. ROLL SIZE / 3. DROP 4. PICK 4. PICK
SWAP 4. PICK 4. PICK 4. \->LIST
REVLIST SWAP DROP SWAP DROP SWAP DROP
SWAP DROP
\>>
I'd suggest:
%%HP: T(3)A(R)F(.);
@ Checksum: # EF5Fh
@ Bytes: 54.
\<<
DUP \GSLIST OVER SIZE / OVER SORT HEAD
4. ROLL 4. ROLL 4. \->LIST
\>>
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
want character 10. I believe that the calculator manual refers
to it as "newline", but in ASCII it's called "Line Feed" or
"LF". I'll use the HP Kermit "backslash" translation "\010". The
ASCII "Carriage Return" or "CR" is character 13. Note that when
you transfer a string in HP Kermit ASCII translation mode 1, 2,
or 3, "\010" is translated to "\010\013", which is expected as
an "End-Of-Line" marker for text files in the MS DOS/Windows
world.

Anyway, I'll guess that the best thing for you to do is replace
every space character in your string with a "newline" character,
even though that may give you a few more newlines than you
really need. You could loop through the string looking for every
occurrence of " " and using REPL to replace it with "\010", like
this:

%%HP: T(3)A(R)F(.);
@ Checksum: # B40Bh
@ Bytes: 47.
\<<
WHILE
DUP " " POS DUP
REPEAT
"\010" REPL
END
DROP
\>>
but the 49G provides the faster, shorter, and easier SREPL
command specifically for this task. Try:
%%HP: T(3)A(R)F(.);
@ Checksum: # 179Fh
@ Bytes: 30.
\<<
" " "\010" SREPL DROP
\>>
If you also want to get rid of the "{ " and " }" delimiters, you
can use:
%%HP: T(3)A(R)F(.);
@ Checksum: # A0B7h
@ Bytes: 70.
\<<
"{ " "" SREPL DROP
" }" "" SREPL DROP
" " "\010" SREPL DROP
\>>
Regards,

James

#15

PS:

If you're trying to key this stuff in directly on a calculator instead
of downloading it, don't key in the "backslash translations" literally;
translate them first. That is, for "\->" use ALPHA RightShift
right-arrow (above the 0 key). For "\GS", if you're not already in
program entry mode ("PRG" at the upper right of the display), then do
RightShift ENTRY (above the ALPHA key), and when in program entry mode
use RightShift SIGMA (above the S key), and then backspace to get rid of
the extraneous space character. For "\010", use RightShift newline
(above the . key).

Regarding Google, you can also just browse the newsgroup at
http://groups.google.com/groups?q=comp.sys.hp48.


#16

James
Thank you for your help, and the hyperlink to Google.
Mike


Possibly Related Threads…
Thread Author Replies Views Last Post
  Printing the HP Prime manual BobVA 3 1,742 10-25-2013, 09:53 PM
Last Post: BobVA
  3D printing custom molds Han 3 1,643 08-02-2013, 03:26 AM
Last Post: Bruce Larrabee
  Printing HP 9825 data Norman Pillsbury 3 1,515 06-01-2013, 10:08 PM
Last Post: David Ramsey
  Does IR printing not work on your converted WP34s? Then read on... Harald 3 1,611 04-04-2013, 05:46 PM
Last Post: Harald
  WP34s IR Printing Update? Thomas Chrapkiewicz 2 1,231 02-24-2013, 01:53 PM
Last Post: Marcus von Cube, Germany
  hp49 en hp50 qgrdne 1 992 02-04-2013, 08:05 AM
Last Post: Eduardo Duenez
  is there a printing error in the HP 50G Quick Starrt Guide? Al 12 3,057 11-23-2012, 07:07 PM
Last Post: Al
  Symbolic limit of a function of 2 variables, HP49/50 Gilles Carpentier 0 846 08-26-2012, 10:28 AM
Last Post: Gilles Carpentier
  HP49 PocketGuide in German / Italian / Spanish / French / Portuguese Software49g 1 1,086 06-30-2012, 09:43 AM
Last Post: Luiz C. Vieira (Brazil)
  WP 34S Printing Harald 15 3,897 04-28-2012, 08:54 PM
Last Post: Les Wright

Forum Jump: