The Museum of HP Calculators

HP Forum Archive 17

[ Return to Index | Top of Index ]

Need Graphics Programming Help (50G)
Message #1 Posted by Chuck on 24 Feb 2007, 7:56 p.m.

Fifteen years ago I was pretty adept at programming the 48SX. My, how time robs the memory. And it seems there are a few different commands with th 50G.

I am trying to create a program the clears the PICT (ERASE, I presume, or creating a blank 131x80 GROB and stored in PICT) then displays the graphic screen and runs through a loop displaying points (plotting a dynamical system using a 2x2 stochastic matrix).

Everything I try displays the graph AFTER it gets done plotting the points (or displays a blank graph and does nothing), but I want to see them plotted in real time. I know this is a simple matter and I did it 15 years ago, but it escapes me right now.

Thanks!!

CHUCK

      
Re: Need Graphics Programming Help (50G)
Message #2 Posted by Tim Wessman on 25 Feb 2007, 12:22 a.m.,
in response to message #1 by Chuck

You mean like this?

<< ERASE DRAW PICTURE >>

Grab the advanced users reference for complete command listing and more detailed programming info.

TW

            
Re: Need Graphics Programming Help (50G)
Message #3 Posted by Chuck on 25 Feb 2007, 1:47 a.m.,
in response to message #2 by Tim Wessman

Nope. That doesn't do it because I'm not graphing an equation, and without something stored in 'eq' it gives an error. All I need to do is activate the graphing window, and have my program provide the points to plot. I'll dig up my olde 48 manuals. Even the 800 page advanced manual for the 50G leaves out a lot of functions. I'll keep trying.

                  
Re: Need Graphics Programming Help (50G)
Message #4 Posted by Chuck on 25 Feb 2007, 2:11 a.m.,
in response to message #3 by Chuck

Nevermind. I figured it out. Instead of

ERASE {} PVIEW

which centers the PICT variable, but doesn't interactively show you PICT, one needs to use

ERASE { # 0d # 0d} PVIEW

which places PICT in the upper left corner (equivalent to centering it) but, more importantly, actually shows the points being plotted instead of waiting until the end. Strange quirk if you ask me.

CHUCK


[ Return to Index | Top of Index ]

Go back to the main exhibit hall