Cbl 2/cbl program for the ti-89 / ti-92 plus – Texas Instruments PLUS TI-89 User Manual
Page 416
Chapter 23: Activities 399
23ACTS.DOC TI-89/TI-92 Plus: Activities (English) Susan Gullord Revised: 02/23/01 1:24 PM Printed: 02/23/01 2:20 PM Page 399 of 26
Program Instruction
Description
:cooltemp()
:Prgm
:Local i
:setMode("Graph","FUNCTION")
:PlotsOff
:FnOff
:ClrDraw
:ClrGraph
:ClrIO
:-10
!
xmin:99
!
xmax:10
!
xscl
:-20
!
ymin:100
!
ymax:10
!
yscl
:{0}
!
data
:{0}
!
time
:Send{1,0}
:Send{1,2,1}
:Disp "Press ENTER to start"
:Disp "graphingTemperature."
:Pause
:PtText "TEMP(C)",2,99
:PtText "T(S)",80,-5
:Send{3,1,-1,0}
:
:For i,1,99
:Get data[i]
:PtOn i,data[i]
:EndFor
:seq(i,i,1,99,1)
!
time
:NewPlot 1,1,time,data,,,,4
:DispG
:PtText "TEMP(C)",2,99
:PtText "T(S)",80,-5
:EndPrgm
Program name
Declare local variable; exists only at run time.
Set up the
TI
-89 / TI-92 Plus
for function graphing.
Turn off any previous plots.
Turn off any previous functions.
Clear any items previously drawn on graph screens.
Clear any previous graphs.
Clear the
TI
-89 / TI-92 Plus
Program IO (input/output) screen.
Set up the Window variables.
Create and/or clear a list named
data
.
Create and/or clear a list named
time
.
Send a command to clear the CBL 2/CBL unit.
Set up Chan. 2 of the CBL 2/CBL to AutoID to record temp.
Prompt the user to press ¸.
Wait until the user is ready to start.
Label the y axis of the graph.
Label the x axis of the graph.
Send the
Trigger
command to the CBL 2/CBL; collect data in
real-time.
Repeat next two instructions for 99 temperature readings.
Get a temperature from the CBL 2/CBL and store it in a list.
Plot the temperature data on a graph.
Create a list to represent
time
or
data
sample number.
Plot
time
and
data
using
NewPlot
and the
Trace
tool.
Display the graph.
Re-label the axes.
Stop the program.
You can also use the Calculator-Based Ranger™ (CBR™) to explore the mathematical and
scientific relationships between distance, velocity, acceleration, and time using data collected
from activities you perform.
CBL 2/CBL Program for the TI-89 / TI-92 Plus
This activity provides a program that can be used when the
TI
-
89 / TI
-
92 Plus
is connected
to a Calculator-Based Laboratory
é
(CBL 2
é
/CBL™) unit. This program works with the
“Newton’s Law of Cooling” experiment, and is similar to the “Coffee To Go” experiment in
the
CBL System Experiment Workbook. You can use your computer keyboard to type
lengthy text and then use
TI-GRAPH
LINK
to send it to the
TI
-
89 / TI
-
92 Plus.
More
TI
-
89 / TI
-
92 Plus
CBL 2/CBL programs are available from the TI web site at:
education.ti.com/cbl