50g group photo

Yahoo Groups archive

50g

Archive for 50g.

Index last updated: 2026-03-30 00:59 UTC

Thread

Programming problem

Programming problem

2008-08-17 by Charles Chindenga

Can anyone tell me how to preview calculation stages during program execution. On my HP 42S i used the PAUSE command in my programs. Example of stages:
R=A/P
V=1/n*R^(2/3)*S^.5
Q=A*V
i need to view tagged stage calculation results.
I tried to use the WAIT command but i think i am not using it correctly as it will result in an Error message Bad Argument

Re: [50g] Programming problem

2008-08-18 by Don Hart

Try using the HALT (PRG -> NXT -> NXT -> RUN -> HALT) command. To continue execution, press the CONT (leftshift ON). If you're trying to debug a usr rpl program, you might like to know the RUN directory is devoted to debugging and it would be useful to read up on it.


--- On Sun, 8/17/08, Charles Chindenga <cfortuh@...> wrote:

> From: Charles Chindenga <cfortuh@...>
> Subject: [50g] Programming problem
> To: 50g@yahoogroups.com
> Date: Sunday, August 17, 2008, 7:27 AM
> Can anyone tell me how to preview calculation stages during
> program execution. On my HP 42S i used the PAUSE command in
> my programs. Example of stages:
> R=A/P
> V=1/n*R^(2/3)*S^.5
> Q=A*V
> i need to view tagged stage calculation results.
> I tried to use the WAIT command but i think i am not using
> it correctly as it will result in an Error message Bad
> Argument
>
>
>
>
>
> ------------------------------------
>
> Yahoo! Groups Links
>
>
>

Re: Programming problem

2008-08-18 by Juan C.

Please remember that the command WAIT takes an argument from the stack
(level 1:) if the number is zero the calculator stops the program until
any key is pressed, if it is different of zero, let's say 2, the
calculator will stop for two seconds and then continue the execution of
the program.

Re: [50g] Programming problem

2008-08-18 by Charles Chindenga

Thanks guys that helped. I did use both the WAIT and HALT commands and it worked. I also discovered that
(1) i can do my computation then
(2) write the text i want to use as a tag then
(3) SWAP
(4) put '+' sign
(5) MSGBOX
this will tag the result as well as halt program execution at the same time, until i press OK to continue.

My next question with this procedure is
How do i use the Carriage Return so that my result goes to the next line just like the ENTER key does on Microsoft Applications.

- original message -
Subject: Re: [50g] Programming problem
From: Don Hart <ddhart1@...>
Date: 18/08/2008 02:55

Try using the HALT (PRG -> NXT -> NXT -> RUN -> HALT) command. To continue execution, press the CONT (leftshift ON). If you're trying to debug a usr rpl program, you might like to know the RUN directory is devoted to debugging and it would be useful to read up on it.


--- On Sun, 8/17/08, Charles Chindenga <cfortuh@...> wrote:

> From: Charles Chindenga <cfortuh@...>
> Subject: [50g] Programming problem
> To: 50g@yahoogroups.com
> Date: Sunday, August 17, 2008, 7:27 AM
> Can anyone tell me how to preview calculation stages during
> program execution. On my HP 42S i used the PAUSE command in
> my programs. Example of stages:
> R=A/P
> V=1/n*R^(2/3)*S^.5
> Q=A*V
> i need to view tagged stage calculation results.
> I tried to use the WAIT command but i think i am not using
> it correctly as it will result in an Error message Bad
> Argument
>
>
>
>
>
> ------------------------------------
>
> Yahoo! Groups Links
>
>
>

Re: [50g] Programming problem

2008-08-18 by Don Hart

The carriage return is the symbol that looks like a bent arrow first going down and then to the left. On the 49g it's the rightshift 'decimal point'; might be the same on the 50g.



--- On Mon, 8/18/08, Charles Chindenga <cfortuh@...> wrote:

> From: Charles Chindenga <cfortuh@...>
> Subject: Re: [50g] Programming problem
> To: 50g@yahoogroups.com
> Date: Monday, August 18, 2008, 11:14 AM
> Thanks guys that helped. I did use both the WAIT and HALT
> commands and it worked. I also discovered that
> (1) i can do my computation then
> (2) write the text i want to use as a tag then
> (3) SWAP
> (4) put '+' sign
> (5) MSGBOX
> this will tag the result as well as halt program execution
> at the same time, until i press OK to continue.
>
> My next question with this procedure is
> How do i use the Carriage Return so that my result goes to
> the next line just like the ENTER key does on Microsoft
> Applications.
>
> - original message -
> Subject: Re: [50g] Programming problem
> From: Don Hart <ddhart1@...>
> Date: 18/08/2008 02:55
>
> Try using the HALT (PRG -> NXT -> NXT -> RUN ->
> HALT) command. To continue execution, press the CONT
> (leftshift ON). If you're trying to debug a usr rpl
> program, you might like to know the RUN directory is devoted
> to debugging and it would be useful to read up on it.
>
>
> --- On Sun, 8/17/08, Charles Chindenga
> <cfortuh@...> wrote:
>
> > From: Charles Chindenga <cfortuh@...>
> > Subject: [50g] Programming problem
> > To: 50g@yahoogroups.com
> > Date: Sunday, August 17, 2008, 7:27 AM
> > Can anyone tell me how to preview calculation stages
> during
> > program execution. On my HP 42S i used the PAUSE
> command in
> > my programs. Example of stages:
> > R=A/P
> > V=1/n*R^(2/3)*S^.5
> > Q=A*V
> > i need to view tagged stage calculation results.
> > I tried to use the WAIT command but i think i am not
> using
> > it correctly as it will result in an Error message Bad
> > Argument
> >
> >
> >
> >
> >
> > ------------------------------------
> >
> > Yahoo! Groups Links
> >
> >
> >
>
>
>
>
>
>
> ------------------------------------
>
> Yahoo! Groups Links
>
>
>

Re: [50g] Programming problem

2008-08-19 by Charles Chindenga

I guess i did not explain myself clearly. I know what the Carriage sign is and where to find it on the calculator. I can also use it when programming to format my entries nicely. The question is HOW do i incorporate it in my message output when programming so that my screen will show my output text (tag) and computed result on two different lines or even if the tag is longer than the screen instead of having just a single line output and having to use view then scrolling to the right or left.

i guess the bottom line is: IS IT A PROGRAMMABLE FUNCTION? Can it be executed as a command during the execution (running) of a program: if so how?
Once again thanks for your time and effort in sharing your knowledge i really appreciate it.
- original message -
Subject: Re: [50g] Programming problem
From: Don Hart <ddhart1@...>
Date: 18/08/2008 23:48

The carriage return is the symbol that looks like a bent arrow first going down and then to the left. On the 49g it's the rightshift 'decimal point'; might be the same on the 50g.



--- On Mon, 8/18/08, Charles Chindenga <cfortuh@...> wrote:

> From: Charles Chindenga <cfortuh@...>
> Subject: Re: [50g] Programming problem
> To: 50g@yahoogroups.com
> Date: Monday, August 18, 2008, 11:14 AM
> Thanks guys that helped. I did use both the WAIT and HALT
> commands and it worked. I also discovered that
> (1) i can do my computation then
> (2) write the text i want to use as a tag then
> (3) SWAP
> (4) put '+' sign
> (5) MSGBOX
> this will tag the result as well as halt program execution
> at the same time, until i press OK to continue.
>
> My next question with this procedure is
> How do i use the Carriage Return so that my result goes to
> the next line just like the ENTER key does on Microsoft
> Applications.
>
> - original message -
> Subject: Re: [50g] Programming problem
> From: Don Hart <ddhart1@...>
> Date: 18/08/2008 02:55
>
> Try using the HALT (PRG -> NXT -> NXT -> RUN ->
> HALT) command. To continue execution, press the CONT
> (leftshift ON). If you're trying to debug a usr rpl
> program, you might like to know the RUN directory is devoted
> to debugging and it would be useful to read up on it.
>
>
> --- On Sun, 8/17/08, Charles Chindenga
> <cfortuh@...> wrote:
>
> > From: Charles Chindenga <cfortuh@...>
> > Subject: [50g] Programming problem
> > To: 50g@yahoogroups.com
> > Date: Sunday, August 17, 2008, 7:27 AM
> > Can anyone tell me how to preview calculation stages
> during
> > program execution. On my HP 42S i used the PAUSE
> command in
> > my programs. Example of stages:
> > R=A/P
> > V=1/n*R^(2/3)*S^.5
> > Q=A*V
> > i need to view tagged stage calculation results.
> > I tried to use the WAIT command but i think i am not
> using
> > it correctly as it will result in an Error message Bad
> > Argument
> >
> >
> >
> >
> >
> > ------------------------------------
> >
> > Yahoo! Groups Links
> >
> >
> >
>
>
>
>
>
>
> ------------------------------------
>
> Yahoo! Groups Links
>
>
>

Re: [50g] Programming problem

2008-08-20 by Don Hart

If string where you want the c/r to occur exists explicitly in the program, you can just type in the c/r while writing the program. Just type rightshift decimal at the end of the string.

If the string is constructed dynamically while the program is running, you can create the program with 10 chr + after the point where the string is constructed. That will "add" the c/r to the end of the string. That will happen at the end of step 2) in your example. Then continue with steps 3) & 4) & 5).




--- On Tue, 8/19/08, Charles Chindenga <cfortuh@...> wrote:

> From: Charles Chindenga <cfortuh@...>
> Subject: Re: [50g] Programming problem
> To: 50g@yahoogroups.com
> Date: Tuesday, August 19, 2008, 9:41 AM
> I guess i did not explain myself clearly. I know what the
> Carriage sign is and where to find it on the calculator. I
> can also use it when programming to format my entries
> nicely. The question is HOW do i incorporate it in my
> message output when programming so that my screen will show
> my output text (tag) and computed result on two different
> lines or even if the tag is longer than the screen instead
> of having just a single line output and having to use view
> then scrolling to the right or left.
>
> i guess the bottom line is: IS IT A PROGRAMMABLE FUNCTION?
> Can it be executed as a command during the execution
> (running) of a program: if so how?
> Once again thanks for your time and effort in sharing your
> knowledge i really appreciate it.
> - original message -
> Subject: Re: [50g] Programming problem
> From: Don Hart <ddhart1@...>
> Date: 18/08/2008 23:48
>
> The carriage return is the symbol that looks like a bent
> arrow first going down and then to the left. On the 49g
> it's the rightshift 'decimal point'; might be
> the same on the 50g.
>
>
>
> --- On Mon, 8/18/08, Charles Chindenga
> <cfortuh@...> wrote:
>
> > From: Charles Chindenga <cfortuh@...>
> > Subject: Re: [50g] Programming problem
> > To: 50g@yahoogroups.com
> > Date: Monday, August 18, 2008, 11:14 AM
> > Thanks guys that helped. I did use both the WAIT and
> HALT
> > commands and it worked. I also discovered that
> > (1) i can do my computation then
> > (2) write the text i want to use as a tag then
> > (3) SWAP
> > (4) put '+' sign
> > (5) MSGBOX
> > this will tag the result as well as halt program
> execution
> > at the same time, until i press OK to continue.
> >
> > My next question with this procedure is
> > How do i use the Carriage Return so that my result
> goes to
> > the next line just like the ENTER key does on
> Microsoft
> > Applications.
> >
> > - original message -
> > Subject: Re: [50g] Programming problem
> > From: Don Hart <ddhart1@...>
> > Date: 18/08/2008 02:55
> >
> > Try using the HALT (PRG -> NXT -> NXT -> RUN
> ->
> > HALT) command. To continue execution, press the CONT
> > (leftshift ON). If you're trying to debug a usr
> rpl
> > program, you might like to know the RUN directory is
> devoted
> > to debugging and it would be useful to read up on it.
> >
> >
> > --- On Sun, 8/17/08, Charles Chindenga
> > <cfortuh@...> wrote:
> >
> > > From: Charles Chindenga <cfortuh@...>
> > > Subject: [50g] Programming problem
> > > To: 50g@yahoogroups.com
> > > Date: Sunday, August 17, 2008, 7:27 AM
> > > Can anyone tell me how to preview calculation
> stages
> > during
> > > program execution. On my HP 42S i used the PAUSE
> > command in
> > > my programs. Example of stages:
> > > R=A/P
> > > V=1/n*R^(2/3)*S^.5
> > > Q=A*V
> > > i need to view tagged stage calculation results.
> > > I tried to use the WAIT command but i think i am
> not
> > using
> > > it correctly as it will result in an Error
> message Bad
> > > Argument
> > >
> > >
> > >
> > >
> > >
> > > ------------------------------------
> > >
> > > Yahoo! Groups Links
> > >
> > >
> > >
> >
> >
> >
> >
> >
> >
> > ------------------------------------
> >
> > Yahoo! Groups Links
> >
> >
> >
>
>
>
>
>
>
> ------------------------------------
>
> Yahoo! Groups Links
>
>
>

Re: [50g] Programming problem

2008-08-20 by Charles Chindenga

Just like you said, i added characters inside the square brackets ["c/r" +] just after step 2 but before step 3 and it worked. Thanks so much.

- original message -
Subject: Re: [50g] Programming problem
From: Don Hart <ddhart1@...>
Date: 20/08/2008 01:35

If string where you want the c/r to occur exists explicitly in the program, you can just type in the c/r while writing the program. Just type rightshift decimal at the end of the string.

If the string is constructed dynamically while the program is running, you can create the program with 10 chr + after the point where the string is constructed. That will "add" the c/r to the end of the string. That will happen at the end of step 2) in your example. Then continue with steps 3) & 4) & 5).




--- On Tue, 8/19/08, Charles Chindenga <cfortuh@...> wrote:

> From: Charles Chindenga <cfortuh@...>
> Subject: Re: [50g] Programming problem
> To: 50g@yahoogroups.com
> Date: Tuesday, August 19, 2008, 9:41 AM
> I guess i did not explain myself clearly. I know what the
> Carriage sign is and where to find it on the calculator. I
> can also use it when programming to format my entries
> nicely. The question is HOW do i incorporate it in my
> message output when programming so that my screen will show
> my output text (tag) and computed result on two different
> lines or even if the tag is longer than the screen instead
> of having just a single line output and having to use view
> then scrolling to the right or left.
>
> i guess the bottom line is: IS IT A PROGRAMMABLE FUNCTION?
> Can it be executed as a command during the execution
> (running) of a program: if so how?
> Once again thanks for your time and effort in sharing your
> knowledge i really appreciate it.
> - original message -
> Subject: Re: [50g] Programming problem
> From: Don Hart <ddhart1@...>
> Date: 18/08/2008 23:48
>
> The carriage return is the symbol that looks like a bent
> arrow first going down and then to the left. On the 49g
> it's the rightshift 'decimal point'; might be
> the same on the 50g.
>
>
>
> --- On Mon, 8/18/08, Charles Chindenga
> <cfortuh@...> wrote:
>
> > From: Charles Chindenga <cfortuh@...>
> > Subject: Re: [50g] Programming problem
> > To: 50g@yahoogroups.com
> > Date: Monday, August 18, 2008, 11:14 AM
> > Thanks guys that helped. I did use both the WAIT and
> HALT
> > commands and it worked. I also discovered that
> > (1) i can do my computation then
> > (2) write the text i want to use as a tag then
> > (3) SWAP
> > (4) put '+' sign
> > (5) MSGBOX
> > this will tag the result as well as halt program
> execution
> > at the same time, until i press OK to continue.
> >
> > My next question with this procedure is
> > How do i use the Carriage Return so that my result
> goes to
> > the next line just like the ENTER key does on
> Microsoft
> > Applications.
> >
> > - original message -
> > Subject: Re: [50g] Programming problem
> > From: Don Hart <ddhart1@...>
> > Date: 18/08/2008 02:55
> >
> > Try using the HALT (PRG -> NXT -> NXT -> RUN
> ->
> > HALT) command. To continue execution, press the CONT
> > (leftshift ON). If you're trying to debug a usr
> rpl
> > program, you might like to know the RUN directory is
> devoted
> > to debugging and it would be useful to read up on it.
> >
> >
> > --- On Sun, 8/17/08, Charles Chindenga
> > <cfortuh@...> wrote:
> >
> > > From: Charles Chindenga <cfortuh@...>
> > > Subject: [50g] Programming problem
> > > To: 50g@yahoogroups.com
> > > Date: Sunday, August 17, 2008, 7:27 AM
> > > Can anyone tell me how to preview calculation
> stages
> > during
> > > program execution. On my HP 42S i used the PAUSE
> > command in
> > > my programs. Example of stages:
> > > R=A/P
> > > V=1/n*R^(2/3)*S^.5
> > > Q=A*V
> > > i need to view tagged stage calculation results.
> > > I tried to use the WAIT command but i think i am
> not
> > using
> > > it correctly as it will result in an Error
> message Bad
> > > Argument
> > >
> > >
> > >
> > >
> > >
> > > ------------------------------------
> > >
> > > Yahoo! Groups Links
> > >
> > >
> > >
> >
> >
> >
> >
> >
> >
> > ------------------------------------
> >
> > Yahoo! Groups Links
> >
> >
> >
>
>
>
>
>
>
> ------------------------------------
>
> Yahoo! Groups Links
>
>
>