Let's start with a simple program. Create a new program and title it HELLO. This tutorial will teach you how to write a basic program that implements the Disp and Output( commands. We'll start by using the simple Disp command. Type the following code into the new programming document:
:Disp "HELLO"
:Stop
Let's analyze this program. The Disp command uses the home screen of your calculator to display text and symbols. Text/symbols, to be displayed as text, following the Disp command must be in quotes to work. However, one may also display variables using this command (variables are not in quotes; by displaying a variable in quotes, you will only display the corresponding letter). We will go more into depth with variables later. The Stop command ends your program. However, if we only had the first line of code in this program, it would still end (because the program has fulfilled its function.)
Now that we have seen what the Disp command can do, let's move on to something more complex - the Output( command. The Output( command requires you to imput a location (Output(x,y,"text"). Look to the table below for verification:
X Axis (Increases as lines descend.) |
(1,1) | (1,2) | (1,3) | (1,4) | (1,5) | (1,6) | (1,7) | (1,8) | (1,9) | (1,10) | (1,11) | (1,12) | (1,13) | (1,14) | (1,15) | (1,16) |
(2,1) | (2,2) | (2,3) | (2,4) | (2,5) | (2,6) | (2,7) | (2,8) | (2,9) | (2,10) | (2,11) | (2,12) | (2,13) | (2,14) | (2,15) | (2,16) |
(3,1) | (3,2) | (3,3) | (3,4) | (3,5) | (3,6) | (3,7) | (3,8) | (3,9) | (3,10) | (3,11) | (3,12) | (3,13) | (3,14) | (3,15) | (3,16) |
(4,1) | (4,2) | (4,3) | (4,4) | (4,5) | (4,6) | H (4,7) | E (4,8) | L (4,9) | L (4,10) | O (4,11) | (4,12) | (4,13) | (4,14) | (4,15) | (4,16) |
(5,1) | (5,2) | (5,3) | (5,4) | (5,5) | (5,6) | (5,7) | (5,8) | (5,9) | (5,10) | (5,11) | (5,12) | (5,13) | (5,14) | (5,15) | (5,16) |
(6,1) | (6,2) | (6,3) | (6,4) | (6,5) | (6,6) | (6,7) | (6,8) | (6,9) | (6,10) | (6,11) | (6,12) | (6,13) | (6,14) | (6,15) | (6,16) |
(7,1) | (7,2) | (7,3) | (7,4) | (7,5) | (7,6) | (7,7) | (7,8) | (7,9) | (7,10) | (7,11) | (7,12) | (7,13) | (7,14) | (7,15) | (7,16) |
(8,1) | (8,2) | (8,3) | (8,4) | (8,5) | (8,6) | (8,7) | (8,8) | (8,9) | (8,10) | (8,11) | (8,12) | (8,13) | (8,14) | (8,15) | (8,16) |
Y Axis (Increases as columns move right.) |
To display "hello" where it is here, the following command was used: Output(4,7,"HELLO"). |
To make this command work, just replace the Disp with the command line in the table above. Note: The first letter of the word in quotes is displayed at the coordinates provided.
(Note: You may find the letters here by using the ALPHA button (located in the upper left-hand corner of the calculator) and the alpha entries (the ones in green to the upper right of each key on the keypad)
(Commands such as Disp and Stop may be found by pressing the PRGM button under the I/O menu while at the EDIT programming document screen.)
|