Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
How to transfer formulas from HP 50g to Matlab?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  11 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Dima  
View profile  
 More options Jan 18, 6:27 am
Newsgroups: comp.sys.hp48
From: Dima <iosaa...@gmail.com>
Date: Wed, 18 Jan 2012 03:27:37 -0800 (PST)
Local: Wed, Jan 18 2012 6:27 am
Subject: How to transfer formulas from HP 50g to Matlab?
I did some symbolic calculations using inverse Laplace transform. I've
got a function that describes how a circuit works and now I want to
enter it into Matlab to do numeric calculations and to build graphs.
The problem is that my function is very big and if I enter it manually
I can make too many errors. So the question is how can I transfer a
formula from HP 50g to Matlab or to make it simple, how do I save a
formula on 50g as text file?

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John H Meyers  
View profile  
 More options Jan 19, 1:23 am
Newsgroups: comp.sys.hp48
From: John H Meyers <jhmey...@nomail.invalid>
Date: Thu, 19 Jan 2012 00:23:05 -0600
Local: Thurs, Jan 19 2012 1:23 am
Subject: Re: How to transfer formulas from HP 50g to Matlab?
On 1/18/2012 5:27 AM, Dima wrote:

> how do I save a formula on 50g as text file?

Use the \->STR command, then transfer the string.

IIRC some special Filer version can even save strings
without binary prefixes to SD cards, but in general
there will otherwise be a 13-byte prefix to delete from files
if "strings" are stored or transferred in a "binary" mode.

Using transfer software in "ascii" mode, one gets some different
extraneous characters, but those are plain text and easier to edit as text.

In addition, not all possible syntax in the HP calc CAS
need coincide with the equivalent syntax in another CAS,
and of course there are special calculator symbols which may differ,
so there remains the possible need for other additional editing.

[r->] [OFF]


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dima  
View profile  
 More options Jan 20, 9:00 am
Newsgroups: comp.sys.hp48
From: Dima <iosaa...@gmail.com>
Date: Fri, 20 Jan 2012 06:00:47 -0800 (PST)
Local: Fri, Jan 20 2012 9:00 am
Subject: Re: How to transfer formulas from HP 50g to Matlab?
I use 64-bit version of Windows 7. Is there any way to save the string
on SD card in ASCII format?

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John H Meyers  
View profile  
 More options Jan 24, 7:55 pm
Newsgroups: comp.sys.hp48
From: John H Meyers <jhmey...@nomail.invalid>
Date: Tue, 24 Jan 2012 18:55:51 -0600
Local: Tues, Jan 24 2012 7:55 pm
Subject: Re: How to transfer formulas from HP 50g to Matlab?
On 1/20/2012 8:00 AM, Dima wrote:

> I use 64-bit version of Windows 7.
> Is there any way to save the string on SD card in ASCII format?

"Ascii format" may not be what you expect,
or what Matlab can directly use.

Any calculator formula or UserRPL program, however,
may be converted to a string object by the \->STR command.

Any calculator string object that you can read
can be saved on the SD card, using the built-in character set,
which is mostly ISO-8859-1 with additional math and program symbols
in undefined sections of that character set.

Any "hex editor" can be used to remove the first 13 bytes
of the object that was saved on the card ("HPHP49-xBBBBB"
where x is a letter and BBBBB are binary byte values)
which leaves you with the original character string,
or you can try "Filer6" in the calculator, which may be able
to store the "bare" string directly on the SD card:
<http://www.hpcalc.org/search.php?query=filer6>

A free hex editor for Windows:
<http://www.softcircuits.com/cygnus/fe/>

The calculator has an additional concept called
"ascii translation," which can represent special characters
that are undefined in ISO-8859-1 by \xx or \nnn
Formula examples: \pi and \GS (pi and Greek [uppercase] Sigma).
Program examples: \<< \->STR \>>

Such "ascii translation" allows posting or saving
any programs and formulas using only universal ascii text,
but it may require translating back again into the calculator's
more complete internal symbol set to handle the complete universe
of all possible mathematical formulas and calculator programs.

I don't know how elementary or complex are your formulas,
nor how Matlab expresses the more complex of formulas and functions,
which may differ from the calculator's internal syntax,
so I don't know what approach will prove best for you.

FWIW, the following article happens to supply calculator programs
which can export all internal formulas and UserRPL programs
in "ascii translated" form, and can also import those again:

"Ascii Import/Export for SD card and Emulator"
<http://groups.google.com/group/comp.sys.hp48/msg/4e7ed90b3cf11c42>

Interesting things about that article are that its first short program
can be used to import all the other programs offered in the article,
and also that the first two short programs do almost everything
that most people need, so there's no need to import all the others anyway :)

[r->] [OFF]


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dima  
View profile  
 More options Jan 25, 7:26 am
Newsgroups: comp.sys.hp48
From: Dima <iosaa...@gmail.com>
Date: Wed, 25 Jan 2012 04:26:12 -0800 (PST)
Local: Wed, Jan 25 2012 7:26 am
Subject: Re: How to transfer formulas from HP 50g to Matlab?
Thank you very much for the answer. My formulas don't contain only
EXP() functions. Using \->STR, saving to SD card and then removing the
first characters is a perfect solution.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
electricpete  
View profile  
 More options Jan 30, 11:16 pm
Newsgroups: comp.sys.hp48
From: electricpete <electricpe...@gmail.com>
Date: Mon, 30 Jan 2012 20:16:32 -0800 (PST)
Local: Mon, Jan 30 2012 11:16 pm
Subject: Re: How to transfer formulas from HP 50g to Matlab?
On Jan 25, 6:26 am, Dima <iosaa...@gmail.com> wrote:

> Thank you very much for the answer. My formulas don't contain only
> EXP() functions. Using \->STR, saving to SD card and then removing the
> first characters is a perfect solution.

Hello Dima and Mr Meyers

I have Droid48 emulator on an Android phone. I am desparate to be able
to transfer/convert program file from calculator to computer (text
format for editing) and back.

I have read of Dima's success. I am familiar with the HP calculator,
but not the file utilities.  My calculator has port 1 and port 2
identified. I did successfuly transfer a program from bottom level of
stack to port 2 using :2:outname   STO.  But then what? The only files
that show in my .hp48 directory are:
hp48
port1
port2
ram
rom

None of these files are readable on my pc. (I haven't tried the hex
reader yet... should I use that on these?).

By the way I also tried to backup my directory using Memory/Next/Archi
as suggested in HP48 user manual. However there is no Archi in that
menu on Droid48, and it does not seem to recognize when I type in
Archi using alpha keyboard.

Next step, I tried to type into my Droid48 the program that Mr. Meyers
posted in 2007
\<< \->STR 3 TRANSIO RCLF SIZE 3 >
#2F34Dh #3016Bh IFTE SYSEVAL + STR\-> \>> 'IN' STO

I got stuck at the ">" sign. It does not exist on my keyboard. Is that
part of HP48 keyboard? Where does it hide.

Thanks for your patience. Any assistance would be greatly appreciated.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John H Meyers  
View profile  
 More options Jan 31, 12:53 am
Newsgroups: comp.sys.hp48
From: John H Meyers <jhmey...@nomail.invalid>
Date: Mon, 30 Jan 2012 23:53:44 -0600
Local: Tues, Jan 31 2012 12:53 am
Subject: Re: How to transfer formulas from HP 50g to Matlab?
On 1/30/2012 10:16 PM, electricpete wrote:

> I tried to backup my [HOME] directory using Memory/Next/Archi
> as suggested in HP48 user manual. However there is no Archi in that
> menu on Droid48, and it does not seem to recognize when I type in
> Archi using alpha keyboard.

What do you see on HP48G/GX after
Left shift, Memory[VAR] NXT

Command names such as ARCHIVE and RESTORE
are truncated to fit into menu key labels.

However, right shift cursor-down ["Review"]
is provided to show complete labels on the screen.

> I got stuck at the ">" sign. It does not exist on my keyboard.

Try right shift CHARS[PRG] [-64] [-64]

When you highlight the > character,
you will also see, on the screen
Key: Alpha right shift 2
which provides another way to enter the character on 48G/GX.

In alpha mode, try each of left shift, right shift
with each of keys 1, 2, 3
for an interesting group of symbols.

Further review of a downloadable manual might be helpful.

[r->] [OFF]


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
electricpete  
View profile  
 More options Jan 31, 8:35 pm
Newsgroups: comp.sys.hp48
From: electricpete <electricpe...@gmail.com>
Date: Tue, 31 Jan 2012 17:35:49 -0800 (PST)
Local: Tues, Jan 31 2012 8:35 pm
Subject: Re: How to transfer formulas from HP 50g to Matlab?
> > [electricpete]I tried to backup my [HOME] directory using Memory/Next/Archi
> > as suggested in HP48 user manual. However there is no Archi in that
> > menu on Droid48, and it does not seem to recognize when I type in
> > Archi using alpha keyboard.

> [John Meyers]What do you see on HP48G/GX after
> Left shift, Memory[VAR] NXT

There it is. ARCHI.  I was pressing green-right-shift- Memory[VAR]
rather than purple-red-shift-Memory[VAR].
Seemed logical since Memory is written in green as if to be invoked by
the green shift key.
Rookie mistake, I guess. Thanks for setting me straight.

> > [electricpete wrote]I got stuck at the ">" sign. It does not exist on my keyboard.

> [Johnm Meyers wrote:]Try right shift CHARS[PRG] [-64] [-64]

That did the trick.  And that first "IN" program enabled me to input
and execute program file that I had created on my computer, which is
what I've been having so much trouble with.
Thanks to you for your help and thanks to whoever wrote that IN
program!

> [Johnm Meyers wrote:]Further review of a downloadable manual might be helpful.

Tactful, but I get your point. This forum is a great resource which I
hope to take advantage of again, but will try to use it wisely.
Thanks again.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John H Meyers  
View profile  
 More options Feb 1, 1:22 pm
Newsgroups: comp.sys.hp48
From: John H Meyers <jhmey...@nomail.invalid>
Date: Wed, 01 Feb 2012 12:22:54 -0600
Local: Wed, Feb 1 2012 1:22 pm
Subject: Re: How to transfer formulas from HP 50g to Matlab?
On 1/31/2012 7:35 PM, electricpete wrote:

>> What do you see on HP48G/GX after
>> Left shift, Memory[VAR] NXT
> There it is. ARCHI.  I was pressing green-right-shift- Memory[VAR]
> rather than purple-red-shift-Memory[VAR].
> Seemed logical since Memory is written in green
> as if to be invoked by the green shift key.

Many of the HP48G/GX green keyboard labels are intended to be used
both with left shift for a menu of programming commands,
and with right shift for built-in special operations.

This applies to all of the labels above digit keys 1-9
and to four labels in the second key row -- apparently
to every case where _only_ a green label appears above a key.

Wasn't that rather clever on the part of the original designers?
Like the Dead Sea Scrolls, however, all that knowledge
remained unknown to later civilizations,
until someone finally found those scrolls and read them :)

"Full many a gem of purest ray serene
The dark unfathom'd caves of ocean bear:
Full many a flower is born to blush unseen,
And waste its sweetness on the desert air."

Thomas Gray 1716–1771
"Elegy written in a Country Churchyard"
http://www.bartleby.com/101/453.html

[r->] [OFF]


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John H Meyers  
View profile  
 More options Feb 1, 4:49 pm
Newsgroups: comp.sys.hp48
From: John H Meyers <jhmey...@nomail.invalid>
Date: Wed, 01 Feb 2012 15:49:38 -0600
Local: Wed, Feb 1 2012 4:49 pm
Subject: Re: How to transfer formulas from HP 50g to Matlab?
While we were discussing the HP48G/GX keyboard,
I should have included a link to a keyboard image:
<http://www.hpcalc.org/hp48/pc/pictures/huge48gx.jpg>

Where a key has only a green label above it:

o Use left shift for a menu of programming commands.
o Use right shift to launch built-in applications.

Other built in "secrets" where shift keys work with menus
(these may work even with HP49/50 series):

o Shift keys will generate commands to STO/RCL variables
   when used with the VAR menu.
o Shift keys will generate commands to set/clear system flags
   corresponding to "Mode" menu keys.
o Shift keys will generate complete program structures with
IF, CASE, START, FOR, DO, WHILE, etc.

[r->] [OFF]


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
electricpete  
View profile  
 More options Feb 3, 1:12 pm
Newsgroups: comp.sys.hp48
From: electricpete <electricpe...@gmail.com>
Date: Fri, 3 Feb 2012 10:12:26 -0800 (PST)
Local: Fri, Feb 3 2012 1:12 pm
Subject: Re: How to transfer formulas from HP 50g to Matlab?
On Feb 1, 12:22 pm, John H Meyers <jhmey...@nomail.invalid> wrote:

"dead sea scrolls"... funny!.  There surely are a lot of secrets and
power hidden in this "ancient" device.
Once explained, with a little reflection, even a newbie like me can
see there is some logic to the approach.
Using the shift keys (mentioned in your other response) will save a
few keystrokes on frequently-performed operation of storing values
into variables.
Thanks again for your help!

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »