The Museum of HP Calculators

HP Forum Archive 14

[ Return to Index | Top of Index ]

HP 33s - VIEW
Message #1 Posted by Wayne Stephens on 1 Mar 2004, 1:24 p.m.

In "converting" my road vertical curve program from the 32sii to the 33S, I had hoped to take advantage of the 2 line display on the 33S to VIEW both the Station (S) and Elevation (E) for entered data points. However, when I use the VIEW command, the calculator returns something like:



It uses both display lines for one variable. I want it to return:



for instance.

The only workaround I have found so far is to dispense with the VIEW command and just return the 2 values to the Y and X registers respectively:



without the labels. I can live with this if I have to because I know what my program does, but of course I would like to "jazz it up" a bit if I can.

Has anyone programmed with the 33S enough to know if there is a way to see one label and value on each diplay line? Am I on a futile quest?

Thank you.

Take care.


Re: HP 33s - LF?
Message #2 Posted by db(martinez,california) on 1 Mar 2004, 3:19 p.m.,
in response to message #1 by Wayne Stephens

Wayne; The 42 has a function called line feed that works with aview and prompt. Does the 33s have something like that?

Edited: 1 Mar 2004, 3:23 p.m.

Re: HP 33s - LF?
Message #3 Posted by Wayne Stephens on 1 Mar 2004, 3:37 p.m.,
in response to message #2 by db(martinez,california)

The 33s does not appear to have a line feed function.

The more I look at it, the more it appears the two line display is actually more of a "1-1/2 line display". You can see both the x and y registers, and if you do not use labels for your program "output" you can take advantage of the two line display. However, if you wish to label the output variables, you can only view one at a time.

Thanks for the suggestion, though.

Take care.


Re: HP 33s - LF?
Message #4 Posted by Ron Ross on 1 Mar 2004, 3:54 p.m.,
in response to message #3 by Wayne Stephens

Since memory and steps aren't a big concern, just use additional STO & RCL steps and just fill your screen at the end of the computations.

Re: HP 33s - LF?
Message #5 Posted by Wayne Stephens on 1 Mar 2004, 4:13 p.m.,
in response to message #4 by Ron Ross

Right. I've actually got that part down. I can just RCL the values into the Y and X registers respectively.

What I'm trying to do is get the "S=1050.00" displayed in the Y register, with "E=455.55" displayed below it in the X register (the Label and the Variable would ideally be on the same line of the display). Since I know what the variables mean, your suggested method will definitely work, but I now consider it a challenge to solve this little glitch if I can (I have a 42S and it is easy to take full advantage of the two line diplay on it; of course it also has multi-character variables and names...)

I just noticed a section in the 33S manual on using Equations to show "messages" on the display. Apparently if you set Flag 10, then the calculator displays the equation instead of evaluating it. I'm thinking that I may play around with that feature tonight at home and see if I can use a couple "dummy" equations at the end of the program to diplay the label and the variable on the same line.

Thanks for the input.

Take care.


Re: HP 33s - LF?
Message #6 Posted by Ben Salinas on 1 Mar 2004, 6:39 p.m.,
in response to message #5 by Wayne Stephens

This would work under one condition: If you program every possible value (you don't want to do that)

I have written several programs for the 32sii and now am drooling over the 32 kb of memory. For a while I played around with animation for the 32sii, but i was always limited to about 10 frames, and the animation had to be symmetrical. I can now (probably) include 100 frames. WOW!

That is a drawback of the 32s/ii and 33s: no "string" manipulation. One method to get around it on the 32sii was to use the flags (have flag 1 mean one output and 2 mean another), but it is less effective on the 33s.

One alternative is to use the PauSE command, after a view. It pauses the screen for about 2 seconds

Other than that, I can think of nothing

Re: HP 33s - LF?
Message #7 Posted by Art Litka on 1 Mar 2004, 11:15 p.m.,
in response to message #5 by Wayne Stephens

The message feature is quite nice and should be very utilitarian for output labels with all the memory that's available.

EQN, Flag 10 and Comments (AND Diagnostics!) in 33s Programs
Message #8 Posted by Paul Brogger on 2 Mar 2004, 1:00 p.m.,
in response to message #5 by Wayne Stephens

I've always thought the fundamental capability of most any programming language is the ability to include comments in the code. [That way, at the very least, if the language's developers don't get 'round to doing anything else, it can still be used for pseudo code! ;^) ]

With the memory limitations on early RPN programmables, I guess it made sense that no explicit commenting feature was generally made available.

As hinted to in several recent posts, however, with the 33s, real comments become possible.

By following a conditional test with an equation, one may avoid ever having the equation evaluated simply by insuring the conditional test always evaluates false. (Remember "do if true"?) And, the 32sII/33s lets you insert just about anything into a program while in "EQN" mode.

So, one might begin a dot product subroutine with something like:

   D0001 LBL  D
   D0002 CLx
   D0003 X<>0?

Using Flag 10, some refinement is possible. The default setting of Flag 10 is "clear", which causes equations to be evaluated and put on the stack. Setting Flag 10 to "set" causes equations to be displayed (rather than evaluated) during program execution.

So, the simpler

   D0001 LBL  D
   D0002 FS? 10
skips the comments with Flag 10 clear, and displays the comments as encountered when Flag 10 is set. Pretty cool!

Of course a drawback to setting Flag 10 is that (apparently) NO equations are evaluated -- even the ones you wanted to be. For flow-testing complex programs with legitimate equations included, one might supply a substitute value via a constant with:

   D0032 SQRT(SQ(A)+SQ(B)+SQ(C))
   D0033 FS? 10
   D0034 1.23

It would appear that at least some of that "excess" 33s memory may have its uses after all, eh?

Edited: 2 Mar 2004, 4:06 p.m.

[ Return to Index | Top of Index ]

Go back to the main exhibit hall