The text of a manual · part 2 of 9
CBL 2 Technical Reference: Introduction
Pages 5 to 9 of 63, from CBL 2 Technical Reference
The original document is the PDF (424 KB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the Texas Instruments CBL2 System
Page 5
Introduction This technical reference is intended for CBL 2 users who want to write their own programs for CBL 2 and Texas Instruments graphing calculators. This document includes technical data such as specifications for sensors, syntax for CBL 2 commands, sample programs, error codes, and miscellaneous other topics. Instructions for using CBL 2 with the DataMate program or app are given in Getting Started with CBL 2, which is included in the CBL 2 package. The DataMate program is not addressed in this technical reference except for Appendix C: DataMate Sensor Setup Default Settings. This table shows the default sensor settings and calibrations used by the DataMate program.
Miscellaneous Reference Information CBL 2 Software Upgrades The CBL 2 uses FLASH technology, which allows you to easily upgrade to new software without buying a new CBL 2. As new functionality becomes available, you can download the software from the TI web site to your PC and then use the TI-GRAPH LINKé (sold separately) to upgrade your CBL 2. Check the TI website (www.ti.com/calc) for upgrades, paying special attention to compatibility statements. Directions for downloading upgrades will be given on the web site.
Data Collection Modes On the CBL 2, data can be collected in one of three modes: realtime, non-realtime or FastMode. ♦
In realtime data collection, the CBL 2 collects data and sends it to the calculator after each point is taken.
♦
In non-realtime data collection, the CBL 2 collects data and stores it internally until all of the data points are taken and then sends it to the calculator.
♦
In FastMode data collection, the CBL 2 collects data on a single analog channel at a very fast sample rate, stores it internally until all of the data points are taken, and then sends it to the calculator.
It is the default to return the time with the data collected.
CBL 2 Technical Reference
5
Page 6
Realtime Sampling In realtime data collection, the CBL 2 sends each data point to the calculator as it is taken, so some data can be lost if the calculator is not ready to accept the data. In addition, the quantity of data that can be collected is limited by the size of the calculator memory. Realtime data collection is used for: ♦
Slower sampling where the user wants to see the data as it is being collected.
♦
Very long data collection times where the CBL 2 may run out of memory during data collection.
♦
Situations where the host calculator must process the data as soon as it becomes available (such as to control an output in response to a temperature input).
This data collection mode should not be used for data collection of more than a few points each second because the host calculator will not be able to keep up. In addition, because of the nature of realtime data collection, the period/frequency and Command 12 channels cannot be sampled in this mode. Since the number of points to be collected may not be known at the start of sampling, set the “number of samples” to M1 when sending Command 3. This tells the CBL 2 to take data but not send it to the host calculator until the calculator requests data.
Non-Realtime Sampling In non-realtime data collection, the samples are taken and stored in the CBL 2 memory until all the data has been collected. Then the data is sent to the host calculator. The quantity of data collected is not limited by the size of the calculator memory, but is limited by the size of the CBL 2 memory. Up to 12,000 samples max (or less under some conditions) can be collected in non-realtime. Non-realtime data collection is used for fast sampling of multiple channels and when triggering is required. All of the channels can be used in this mode, and the Command 12 functions can be used. The sample time is limited by the number and types of channels enabled. For a single channel, the sampling can be as fast as 1E-4 second. In addition, normal calculator communication is maintained during the sampling. This allows the host calculator to issue a Command 7 or Command 8 to ascertain the progress of the sampling without disturbing the sampling process.
FastMode Sampling FastMode sampling is designed to be used where a single channel must be sampled at very fast sample times. This mode is used primarily when sampling sound using the microphone.
6
CBL 2 Technical Reference
Page 7
In general, FastMode is identical to non-realtime sampling with the following exceptions: ♦
The sampling is limited to a single analog channel when doing FastMode sampling.
♦
The selected channel must not be in operation mode 5, 6, or 7.
♦
The communications with the host calculator are turned off during FastMode sampling.
Note: In FastMode sampling, it is very important that the program not issue a GET command until after sampling has been completed. If the CBL 2 receives a GET command it will abort FastMode sampling with an error in order to respond to the GET command.
In FastMode, the sample times can be as fast as 20 msec (a sample frequency of 50KHz).
Mode Comparison Table The table below shows some of the differences between the data collection modes.
Realtime Mode Order of data returned when doing the GETs from the host calculator
Non-Realtime Mode
{ch1_1, ch2_1, … deltatime_1}
{ch1_1, ch1_2, … ch1_n}
{ch1_2, ch2_2, … deltatime_2}
{ch2_1, ch2_2, … ch2_n}
:
{ch3_1, ch3_2, … ch3_n}
: {ch1_n, ch2_n, … deltatime_n}
FastMode Same as NonRealtime
{time_1, time_2, … time_n}
Number of samples limited?
Not by CBL 2, but may be limited by the host calculator
Yes, limited by available memory in CBL2
Same as NonRealtime
Sample time limits (approximate)
Sample Time > .25 second to 16000 seconds
Sample Time ‚ 1e-4 seconds to 16000 seconds
Sample Time ‚ 2e-5 seconds to 1e-4 seconds
Number of channels limited?
Yes, only CH1-3 and 11
No
Yes, only a single channel from CH1 to CH3
Can use Triggering?
No
Yes
Yes
Communication maintained during sampling?
Yes
Yes
No
CBL 2 Technical Reference
7
Page 8
Beep Sequences The CBL 2 makes four kinds of sounds: ♦
A low tone followed by a high tone (low-to-high beep).
♦
A medium tone followed by another medium tone (medium-medium beep).
♦
A high tone followed by another high tone (high-high beep).
♦
A “tick” sound when a key is pressed.
The following bullets explain when beep sequences normally occur and what the beep sequences mean. ♦
When the CBL 2 completes initialization, you will hear the startup sequence: highhigh beep, medium-medium beep, low-to-high beep (6 total beeps, plus LEDs light up in this order: red LED, yellow LED, and green LED)
♦
When you press the QUICK SETUP button:
♦
− the medium-medium beep sounds if a sensor is attached to the CBL 2.
− the high-high beep sounds if no sensors are attached to the CBL 2.
When the CBL 2 is connected to a calculator during sampling commands: − the medium-medium beep sounds when initializing data collection.
− the medium-medium beep sounds when starting data collection (transition from pre-store to store).
− the medium-medium beep sounds when completing data collection.
Note: If the sampling timing causes the beeps to run together, the CBL 2 software may not sound all the beeps. Note 2: You will not get all the beeps when Fast Sampling is enabled. Note 3: You will not get all the beeps when using triggering. ♦
When you set the CBL 2 for manual trigger and press the START button, a mediummedium beep sounds.
♦
When you press the TRANSFER BUTTON: − the low-to-high beep sounds when the transfer succeeds.
− the high-high beep sounds if the transfer fails for any reason.
♦
When an overcurrent condition is detected, five high-high beeps sound. (This causes an error, which causes even more beeps to sound.)
♦
When the CBL 2 begins a full self-test, three low-to-high beeps sound.
♦
When self-test completes:
8
− the low-to-high beep sounds if self-test passes.
− the high-high beep sounds if self-test fails.
CBL 2 Technical Reference
Page 9
♦
When the CBL 2’s base code detects an error in the commands sent from the host, a high-high beep sounds twice.
♦
When the CBL 2 powers up:
♦
− two high-high beeps sound if the base code is not loaded.
− three high-high beeps sound if the power-up self-test fails.
During base code download, three high-high beeps sound when any errors occur. (The unit resets and then the two high-high beeps mentioned in the previous bullet sound.)
Archiving in CBL 2’s FLASH Memory The FLASH memory in the CBL 2 can be used for several purposes. In addition to allowing updates to the operating system and storing the DataMate programs, the FLASH memory serves as an archive space for other programs and data. To preserve collected data so that it can be retrieved at a later time, data sets can be stored in the FLASH archive. To distinguish between different stored data sets, each data set can be given a name. ♦
You can write a program on the calculator to review the list of stored data sets and retrieve the desired one for further analysis. (See the sample archive program on page 56.)
♦
You can use the DATADIR program (available on the TI Resource CD or on the TI web site at www.ti.com/calc) to manage FLASH memory. Directions for using the DATADIR program are given in Getting Started with CBL 2.
The FLASH archive can also store calculator programs and applications. This provides a convenient location for storing frequently used programs or as a temporary storage to create more available memory on the calculator. Command 201, in conjunction with the Link menu on the calculator, provides access to these FLASH archive operations. For details about Command 201, see page 44.
CBL 2 Technical Reference
9