Startup script for 49G+



#17

I want to have a particular User RPL program run automatically every time the calc is turned on. Can anybody tell me what I need to do?

Thanks.

Tony.


#18

Hi,

store either the RPL program or better it's name
into the variable STARTUP.

More info: comp.sys.hp48

Also try to RTFM;-)

Raymond


#19

The question is not at Startup (RTFQ) but when turned on.
To do this, you need to start your program like this << OFF ... >> and assign it to the OFF key

2: << OFF ... >>
1: 101.3
ASN
Then you need to get your calculator in user mode so it uses the new definition of the [OFF] key: -62 SF of [LS][ALPHA] until USR displays in the header.
Also try asking questions on comp.sys.hp48 where people are more interested in the new hp calculators.
Good luck

Arnaud


#20

Arnaud: Thanks, that seems to work.

Raymond: I did RTFM and TFUG, but couldn't find anything there about this. Maybe you could tell me where I could find it, for future reference.

All: I get the hint; this is a museum. I'll try comp.sys.hp48 in future.

Thanks a lot.

Tony.


#21

Raymond is not being rude. He often answers questions in comp.sys.hp48 and you will see this when you visit there. It is just that experts here are more familiar with the older units (some are also very familiar with the newer ones too!). As such, you are best served by asking your questions there.

Another suggestion, visit hpcalc.org and download both the HP48G user's guide and more importantly, the Advanced User's Guide for the Hp48G series. This is a must have for any 48/49G owner.

#22

Hi Arnaud,

your program only works if the user explicitely

turns off the calc by pushing buttons.

If the calc turns off automatically then

the program won't be executed.

I'm not too deep in the 49g+, I have to admit;-)

My favourite machines are the HP-41 and HP-48.

But I thought the Startup var of the 4g series would be evaluated

every time the calc is turned on, not only after a warmststart.

If it's the latter case, then the Startup var seems to be of limited use.

Recently there was a thread (either here or in c.s.hp48)

related to this topic, where I suggested to use kinda


startup library, which can perform various tasks.

At least that's what I use on my HP-48;-)

Raymond


#23

Quote:
But I thought the Startup var of the 4g series would be evaluated

every time the calc is turned on, not only after a warmststart.

If it's the latter case, then the Startup var seems to be of limited use.

Recently there was a thread (either here or in c.s.hp48)

related to this topic, where I suggested to use kinda


startup library, which can perform various tasks.

At least that's what I use on my HP-48;-)


Yes, the STARTUP var only works after a warmstart so it would be equivalent to your libary solution for the 48. My startup on sets up the flags and few parameters I want to run with.

Arnaud

#24

I haven't been able to get the STARTUP variable (in the home directory) to have /any/ effect. Maybe I'm missing something.

Arnaud's solution is fine for my purposes; it's just a maintenance routine to clear out junk from the directories before I start work.

Tony.


#25

Just store << "It is working" 'Test' STO >> in 'STARTUP' in your HOME directory. Restart your calculator with [ON][C] and you should see the effect.

Arnaud


#26

Ah yes, that works alright. Thanks.

Tony.

#27

STARTUP runs only after a "warmstart"; for examples, the hold down
[ON] while pressing [C] combination, a "paper clip reset", or the
ON.REBOOT operation from the [ON] and [F] combination; basically
the same situations that configure libraries on a 49 series.

STARTUP is a good place to ATTACH libraries that aren't attached
automatically by their $CONFIG routines, and also a good place to
DETACH libraries that attach automatically if you don't want them
routinely attached, as well as running any other commands that you
want run at every warmstart.

Holding down the backspace key while warmstarting prevents both
running STARTUP and configuring libraries. This is good for when
you have a bad library or a STARTUP variable that cripples your
calculator.

Note that the library configuration isn't done at every ON on the
49 series, as it is on the 48 series, and the 48 series doesn't
recognize STARTUP as a reserved variable or the special action of
backspace while warmstarting.

For information on STARTUP and other "reserved names" on the 49
series, see
http://www.hpcalc.org/search.php?query=Reserved+names.

Regards,
James


#28

That's a useful link. Thanks.

Tony.


#29

From Joe Horn:

"49g+ owners should set ->NDISP to 12, since the default is 9 which wastes some of the 49g+'s taller screen when the font is FONT7, FONT6, or the MINIFONT. Also, note that the ->NDISP setting is reset to 9 at every warmstart. Including << 12 ->NDISP >> in 'STARTUP' eliminates this problem."

9 works for the 48gII and the older 48G series. 12 is what the 49g+ should be set to.

Gene


#30

Thanks for the tip but mine is set to 3 so I can still see the stack when I have big objects on it.

Arnaud

#31

Edited for corrections. STARTOFF (if found in the path) is what
the calculator executes when it reaches the inactivity timeout. It
doesn't include turning off the calculator, so you have to
explicitely include the OFF command in the program if you want it
to do that.

Quote:
But I thought the Startup var of the 4g series would be evaluated

every time the calc is turned on, not only after a warmststart.

If it's the latter case, then the Startup var seems to be of limited use.


Indeed it's the latter, but there's a work-around. There's
also a reserved variable STARTOFF, that's executed only when the
49 turns off automatically, either after the default 300 seconds
or the ticks value stored in the TOFF reserved variable. STARTOFF
is not evaluated when you press the OFF key.

So store a program to be executed at every turn-on in a variable
named, say 'AUTOEXEC'.

Store the program

\<< OFF AUTOEXEC \>>
in STARTOFF.

Asssign

\<< STARTOFF \>>
to the OFF key, and turn on USER mode. This way the program will
be executed regardless of which way the calculator turns off, as
long as USER mode is active.

If you also want it to be executed when warmstarting, then include
AUTOEXEC in the STARTUP program

Caution; not tested, but the above makes sense to me.

Quote:
Recently there was a thread (either here or in c.s.hp48)

related to this topic, where I suggested to use kinda


startup library, which can perform various tasks.

At least that's what I use on my HP-48;-)

Will that also work on the 49 series, where libraries aren't
configured just by turning the calculator on?

Regards,
James

Edited: 6 July 2005, 7:44 p.m.


#32

That not only makes sense, but works very well!

Thanks.

Tony.


Possibly Related Threads...
Thread Author Replies Views Last Post
  HP-85 Display Error on startup hogelmann 3 616 11-19-2012, 10:57 PM
Last Post: Paul Berger (Canada)
  41CX Startup Program? Egan Ford 12 1,334 10-15-2009, 02:27 AM
Last Post: Christoph Klug
  Hp calculator (41CV/71B) startup question Kou Tadayoshi(United States) 6 831 05-06-2008, 04:39 PM
Last Post: Kou Tadayoshi(United States)
  Re: Porting 49G Programs to 49G+/50G Les Wright 0 386 02-21-2007, 10:16 AM
Last Post: Les Wright
  Porting 49G Programs to 49G+/50G Les Wright 6 983 02-20-2007, 06:27 PM
Last Post: Tim Wessman
  TI-57 Emulator for HP-48S/SX/G/G+/GX, HP-49G and HP-49G+ is finished HrastProgrammer 9 1,237 01-17-2006, 12:57 AM
Last Post: HrastProgrammer
  txt2raw.pl: an HP-42S program listing to "raw" conversion script Thomas Okken 4 675 03-06-2005, 10:17 PM
Last Post: Namir
  HP35 Startup George Stilley 12 1,189 09-16-2004, 05:10 PM
Last Post: David Smith
  telnet in ksh script David 2 455 12-13-2002, 03:29 AM
Last Post: Les Bell [Sydney]
  HP-95LX startup files Johnny Bjoern Rasmussen 1 375 08-07-2002, 07:54 AM
Last Post: Andrés C. Rodríguez (Argentina)

Forum Jump: