The Museum of HP Calculators

HP Forum Archive 19

[ Return to Index | Top of Index ]

HP-41 draws sine curve
Message #1 Posted by Juergen Keller on 20 Mar 2010, 8:18 p.m.

HP-41 draws sine curve

Enjoy!

      
I love it, brings back memories of my lab in 1986
Message #2 Posted by geoff quickfall on 20 Mar 2010, 8:30 p.m.,
in response to message #1 by Juergen Keller

nt

      
Re: HP-41 draws sine curve
Message #3 Posted by Geir Isene on 20 Mar 2010, 9:04 p.m.,
in response to message #1 by Juergen Keller

Excellent

      
Re: HP-41 draws sine curve
Message #4 Posted by Garth Wilson on 21 Mar 2010, 12:13 a.m.,
in response to message #1 by Juergen Keller

It says you need the plotter module. The plotter module will probably make it easier, but you can do this without it. The plotter just uses HPGL (HP graphics language) which is plain text, so it's basically like you're printing the text data, and the plotter interprets it. "PU" (plain text characters) for example means "pen up." If you have the 82169A HPIL-to-HPIB (GPIB, or IEEE-488) interface converter, you can use the HPIB version of the plotter too, without needing the HPIL option. Alternately, if you have the HP82164A or FSI164A HPIL-to-RS232 interface converter, you could use the RS-232 version of the plotter without the HPIL option. There are lots of ways to skin a cat.

            
Re: HP-41 draws sine curve
Message #5 Posted by Juergen Keller on 21 Mar 2010, 5:18 a.m.,
in response to message #4 by Garth Wilson

Yes, I know that, but I wanted to keep the movie short; pointing out all options would have been too confusing.

Anyway, when plotting bar code - I suppose this was one of the main applications - the plotter module turns out _very_ handy. I also tried the HP-IB option with my 9872B plotter (this is a real beast). The only difference is that you have to SELECT the plotter manually (use MANIO, then enter the address of the plotter and SELECT). Finally, an unfullfilled dream is to drive a 7580B plotter with an HP-41 ;-)

Cheers, Juergen

                  
Re: HP-41 draws sine curve
Message #6 Posted by Thomas Chrapkiewicz on 21 Mar 2010, 8:54 a.m.,
in response to message #5 by Juergen Keller

Nice work Juergen!

I too have been doing similar work, although with the HP48 family and RS232 communication.

[Very nice video production, by the way!]

It is a fascinating 'act' to watch a tiny calculator driving an 'E' size sheet plotter!

Cheers, TomC

Edited: 21 Mar 2010, 11:32 a.m.

      
Re: HP-41 draws sine curve
Message #7 Posted by Brian Walsh on 21 Mar 2010, 12:18 a.m.,
in response to message #1 by Juergen Keller

Yup, I have all the stuff including the 7470 Opt. 003, although I expect all the pens dried up years ago.

            
Re: HP-41 draws sine curve
Message #8 Posted by Juergen Keller on 21 Mar 2010, 4:46 a.m.,
in response to message #7 by Brian Walsh

You can still buy suitable new pens, e.g., on eBay ...

                  
Re: HP-41 draws sine curve
Message #9 Posted by Brian Walsh on 23 Mar 2010, 8:43 p.m.,
in response to message #8 by Juergen Keller

Quote:
You can still buy suitable new pens, e.g., on eBay ...
Thanks, Juergen!
      
Re: HP-41 draws sine curve
Message #10 Posted by Walter B on 21 Mar 2010, 2:24 a.m.,
in response to message #1 by Juergen Keller

Oh yeah, those were the times ...

      
Re: HP-41 draws sine curve
Message #11 Posted by Ángel Martin on 21 Mar 2010, 10:48 a.m.,
in response to message #1 by Juergen Keller

Great production Juergen!

Thanks for the Sunday present :)

      
Re: HP-41 draws sine curve
Message #12 Posted by Didier Lachieze on 21 Mar 2010, 11:05 a.m.,
in response to message #1 by Juergen Keller

Very nice to see this in action. It reminds me an article from the December 1982 HP Journal:

Controlling a Graphics Plotter with a Handheld Programmable Calculator,
by Robert M. Miller and Randy A. Coverstone The plotter is the 7470 A. The calculator is the HP-41C.

      
Re: HP-41 draws sine curve
Message #13 Posted by Ignazio Cara (Italy) on 22 Mar 2010, 3:20 a.m.,
in response to message #1 by Juergen Keller

Hi Jurgen, many thanks for this beautiful time machine.

Regards

Ignazio

      
Re: HP-41 draws sine curve
Message #14 Posted by Eddie W. Shore on 23 Mar 2010, 10:03 p.m.,
in response to message #1 by Juergen Keller

Thank you for posting the video, Juergen. It is neat to see the plot of the sine curve with an HP 41.

:)

P.S. Beautiful choice of background music, too.

Edited: 23 Mar 2010, 10:05 p.m.

      
Re: HP-41 draws sine curve
Message #15 Posted by PeterP on 24 Mar 2010, 10:07 a.m.,
in response to message #1 by Juergen Keller

really cool. I'm still looking for the 7470A Opt 3 (got a 7475 with HP-IB though). Anyone has one or knows of one, pls let me know...

What is it that makes it so slow? I think if it were driven by a HP-71, it would be faster. But the program sounds pretty simple... IF one wanted to do this in MCODE, how could one speed it up?

Cheers

Peter

            
Re: HP-41 draws sine curve
Message #16 Posted by Egan Ford on 24 Mar 2010, 10:25 a.m.,
in response to message #15 by PeterP

Quote:
What is it that makes it so slow?
The 41. I've got the same plotter and have done the same plot. Yes it is slow. However using EMU41 or nonpareil in turbo mode with a PIL-Box or IL-ISA adapter is significantly faster.
                  
Re: HP-41 draws sine curve
Message #17 Posted by PeterP on 24 Mar 2010, 10:43 a.m.,
in response to message #16 by Egan Ford

so MCODE would make it faster. Is it the PRPLOT program that is so slow or the sin calculation?

Cheers

Peter

                        
Re: HP-41 draws sine curve
Message #18 Posted by Egan Ford on 24 Mar 2010, 1:59 p.m.,
in response to message #17 by PeterP

It could be PRPLOT, the 41, or the HP-IL adapter. Hard to tell without a PRPLOT replacement.

                              
Re: HP-41 draws sine curve
Message #19 Posted by Garth Wilson on 25 Mar 2010, 4:46 p.m.,
in response to message #18 by Egan Ford

The 41 is not very quick at any of the major factors here: calculating the SIN, probably doing some division and multiplication to scale it to the drawing size and maybe addition or subtraction for the drawing's offset, putting the text commands out, converting the number result to text, and then operating the IL which it only does at about 150 bytes per second (compared to the 71's 5,000 bytes per second). When I used the 41 for controlling equipment and printing out long lines of test results, synthetic programming sped up some of the printing operations because I could do things like embed escape sequences in quoted text. The 41 might also be inputting status from the plotter before every command, although there apparently is no danger of overrunning the plotter's input buffer!

Edited: 25 Mar 2010, 4:47 p.m.


[ Return to Index | Top of Index ]

Go back to the main exhibit hall