The Museum of HP Calculators

HP Forum Archive 16

[ Return to Index | Top of Index ]

programing issues.... (33s)
Message #1 Posted by Jack on 6 Oct 2006, 6:31 p.m.

Greetings, wise people.

I attempted to get a program to do math formula. I got 'invalid eqn'. Next I tryed a shorter program to see if I could get text displayed. Same response.

So:

How do get word propmts to be on screen?

How do I adjust the speed so it stays on until I enter the prompted data?

For the calculator, can r/s act like the enter does when inputing data on a computer?

Thanks for your help. Jack

      
Re: programing issues.... (33s)
Message #2 Posted by Hal Bitton on 7 Oct 2006, 1:46 a.m.,
in response to message #1 by Jack

Hi Jack. As far as the "invalid equation" goes, keep in mind that the 33s assumes absolutely no implied operators...ie, to enter 2(3Y+4), you must key it in as 2x(3xY+4), or else it will flag an "invalid equation" fault when you try to evaluate or solve it.



As for the text prompts you are trying to display, perhaps if you could post the code you are using, someone could help you with it.
Best regards, Hal

            
Re: programing issues.... (33s)
Message #3 Posted by Jack on 7 Oct 2006, 3:10 a.m.,
in response to message #2 by Hal Bitton

the code is as follows:

B0001 LBL B B0002 TEST B0003 STOP B0004 END

This sas a simple program to see if I could get word prompts on the screen. If they showed, they showed way too fast for me to catch them. It was supposed to show the word test until I hit the r/s key.

Instead, I get the invalid eqn error.

I used the eqn, then rcl, then the needed letter as the book suggested. Did I miss something? What happened to the Alpha key?

thanks, Jack

                  
Re: programing issues.... (33s)
Message #4 Posted by Hal Bitton on 7 Oct 2006, 4:45 a.m.,
in response to message #3 by Jack

Well, even if you could do it, putting an alpha string in the display during a program serves no purpose, as the 33s uses only single letter variables, and single letter program labels. The only way I know of to get a string of alpha characters to show in the display is to go to equation mode and key them in as an "equation". I use this technique to create a label or divider in my equation list. The 33s doesn't compile the "fake" alpha string equation unless you try to do something with it, at which time it flags it as an invalid equation.
Hope this helps, Hal

      
Re: programing issues.... (33s)
Message #5 Posted by Vieira, L. C. (Brazil) on 7 Oct 2006, 9:43 a.m.,
in response to message #1 by Jack

Hi, Jack;

there is a way to show some limited ALPHA messages, as Hal Bitton mentions in his mail. If you have the HP33S UserŽs Manual, page 12-14, under 'Using Equations to Display Messages', youŽll see that first you need to have a program line to set flag 10, then you should add an 'equation' as a program line (in this case, whatever you want, with no necessary math coherence). If flag 10 is set, program line with an equation causes the program to stop and the equation to be shown without being evaluated. Please, see the example at page 12-15. After that, to restore the condition of the equations being evaluated, flag 10 should be cleared after the message(s) is(are) shown. Otherwise, all other equations in the program would not be evaluated, instead treated as messages.

Hope this helps.

Cheers.

Luiz (Brazil)

Edited: 7 Oct 2006, 10:08 a.m.

            
Re: programing issues.... (33s)
Message #6 Posted by Jack on 7 Oct 2006, 7:54 p.m.,
in response to message #5 by Vieira, L. C. (Brazil)

<Dances for joy>

Thanks a lot. That worked Perfectly. Hopefully the rest of my plans will work now that I understand the value of flagging.

Jack


[ Return to Index | Top of Index ]

Go back to the main exhibit hall