E-30
Debugging a Program
A program might generate an error message or unexpected results when it
is executed. This indicates that there is an error in the program that needs to
be corrected.
•
Error messages appear for approximately 5 seconds, and then the
cursor blinks at the location of the error.
•
To correct an error, select
EDIT
from the program menu.
•
You also can select
TRACE
from the program menu. The program is
then checked step-by-step and a message alerts you to any errors.
Using the Graph Function in Programs
Using the graph function within programs enables you to graphically
illustrate long or complex equations and to overwrite graphs repeatedly. All
graph commands (except trace and zoom) can be included in programs.
Range values can also be specified in the program.
Note that values in some graph commands must be separated by commas
(
,
) as follows:
•
Range
( Xmin, Xmax, Xscl, Ymin, Ymax, Yscl )
•
Factor
( Xfact, Yfact )
•
Plot
( X point, Y point )
Display Result Command
You can put in a program if you want to be able to see the value of a
variable at that particular stage in program execution.
For example:
Line 1:
INPUT
A ; B = ln ( A + 100 )
Line 2:
C = 13
×
A ;
-------Stop at this point
Line 3:
D = 51 / ( A
×
B )
Line 4:
” D = ”, D ; END
1. Execution is interrupted at the point where you placed .
2. At this time, you can press [ 2nd ] [ RCL ] to view the value of the
corresponding memory variable (
C
in the above example).
3. To resume program execution, press [
].
Deleting a Program
1. Select
DEL
from the program menu and press [
].
2. To erase a single program, select
ONE
, the program area you want to
erase, and then press [
]
Summary of Contents for 9g
Page 59: ...E 59 2nd STATVAR Graph 2nd STATVAR Graph ...
Page 65: ...E 65 DATA 57 101 61 117 67 155 2nd STATVAR Graph 2 nd STATVAR 143 2nd STATVAR ...
Page 66: ...E 66 58 Example 49 31 10 1F16 11111 2 37 8 MODE 2 31 dhbo Example 50 4777 10 1001010101001 2 ...
Page 68: ...E 68 MODE 2 dhbo dhbo 1234 dhbo 1 IE IF dhbo 24 dhbo Example 53 ...
Page 71: ...E 71 5 Seconds 1 17 5 3 14 2 5 Seconds 2 ...
Page 72: ...E 72 10 13 6 17 3 5 Seconds 3 2 5 11 17 4 ...
Page 74: ...E 74 RUN 1 2 X 2 7 X 5 0 X 1 2 5 X 2 1 2 7 5 2 25 X 2 70 X 49 0 X 1 4 25 70 49 ...
Page 82: ...E 82 RUN N 1 5 I 486 A 2 CHARGE 4 5 POWER 243 VOLTAGE 2 1 5 5 Seconds ...
Page 84: ...E 84 G T Example 61 Use a FOR loop to calculate 1 6 1 5 1 4 2 6 2 5 2 4 RUN ...
Page 87: ...E 87 RUN A 10 C 130 D 2 55 10 2nd RCL CL ESC ...
Page 143: ...F 56 DATA 2 13 DATA 3 2 5 9 12 7 2nd STATVAR ...
Page 144: ...F 57 Graph 2nd STATVAR Graph 2nd STATVAR Graph ...
Page 148: ...F 61 MODE 1 DATA 15 451 17 475 21 525 28 678 2 nd STATVAR Graph 2nd STATVAR 573 2nd STATVAR ...
Page 150: ...F 63 2 nd STATVAR 143 2nd STATVAR 58 Exemple 49 31 10 1F16 11111 2 37 8 MODE 2 31 ...
Page 151: ...F 64 dhbo Exemple 50 4777 10 1001010101001 2 MODE 2 dhbo dhbo 4777 ...
Page 156: ...F 69 5 Secondes 1 17 5 3 14 2 5 Secondes 2 ...
Page 157: ...F 70 10 13 6 17 3 5 Secondes 3 2 5 11 17 4 ...
Page 159: ...F 72 RUN 1 2 X 2 7 X 5 0 X 1 2 5 X 2 1 2 7 5 2 25 X 2 70 X 49 0 X 1 4 ...
Page 170: ...F 83 A 2 Si Y 11011 8 Rép 1010 2 EDIT dhbo RUN dhbo 11011 ...
Page 172: ...F 85 CL ESC ...