Transmitting Variables under Program Control
Overview of
Commands
The "Chat" Program
Sets up this unit to
receive and display
the variable msg.
Then lets this user
enter a message in
msg and send it.
Lets this user enter
a message in msg
and send it.
Then sets up this
unit to receive and
display msg.
You can use a program containing GetCalc and SendCalc or
SendChat to transmit a variable from one calculator to
another.
SendCalc
sends a variable to the link port, where a linked calculator
can receive the variable value. The linked calculator must be on the
Home screen or must execute
a
, however, an error occurs if the
TI-92
program. In this case, you must use
, a general alternative to
SendChat
calculator is a
(or for a generic chat program that allows a
TI-92
, or
Plus to be the receiving calculator).
TI-89, TI-92
TI-92
sends a variable only if that variable is compatible with the
which is typically true in chat programs. However,
send an archived variable, a
The following program uses
sets up two loops that let the linked calculators take turns sending
and receiving/displaying a variable named
user enter a message in the
:Chat()
:Prgm
:ClrIO
:Disp "On first unit to send,"," enter 1;","On first to receive,"
:InputStr " enter 0",msg
:If msg="0" Then
: While true
:
GetCalc msg
:
Disp msg
:
InputStr msg
:
SendChat msg
: EndWhile
:Else
: While true
:
InputStr msg
:
SendChat msg
:
GetCalc msg
:
Disp msg
: EndWhile
:EndIf
:EndPrgm
To synchronize
GetCalc
the receiving unit executes
for the user to enter a message.
from a program. If you send to
GetCalc
executes
TI-92
instead.
SendChat
, is useful if the receiving
SendCalc
or
TI-89
TI-92 Plus
and
GetCalc
SendChat
msg
variable.
msg
Loop executed by the unit that
receives the first message.
Loop executed by the unit that
sends the first message.
and
SendChat
, the loops are arranged so that
while the sending unit is waiting
GetCalc
Chapter 22: Linking and Upgrading
from a
GetCalc
SendChat
,
TI-92
SendChat
will not
graph data base, etc.
. The program
.
lets each
InputStr
371