Your IOtech warranty is as stated on the product warranty card. You may contact IOtech by phone,
fax machine, or e-mail in regard to warranty-related issues.
IOtech. No part of this product may be copied, reproduced or transmitted by any mechanical,
photographic, electronic, or other method without prior written consent of IOtech, Inc. TempBook,TempView, DaqView, and related product names are trademarks of IOtech, Inc. Other product names
are trademarks of their respective holders.
FCC Statement
IOtech devices emit radio frequency energy in levels compliant with Federal Communications
Commission rules (Part 15) for Class A devices. The following booklet, prepared by the FCC, may be
helpful: How To Identify and Resolve Radio-TV Interference Problems (stock no. 044-000-00345-4).
The booklet is available from the US Government Printing Office, Washington, DC 20402
CE Notice
Many IOtech products now carry the CE marker to indicate they comply with safety and emissions
standards as regulated by the European Community. Such products are shipped with a Declaration of
Conformity stating which specifications and operating conditions apply.
Safety/Caution Notice
The TempBook contains no user-serviceable parts other than expressed in this manual; refer all service
to qualified personnel. Perform system connections and all service (but not calibration) with the power
off to the device serviced and to all connected equipment. Using this equipment in ways other than
described in this manual can present serious safety hazards or cause equipment damage.
This warning symbol is used in this manual or on the equipment to warn of possible injury or death
from electrical shock under noted conditions.
This caution symbol is used to warn of possible personal injury or equipment damage under noted
conditions. Follow all safety standards of professional practice and recommendations in the manual.
This ESD caution symbol is used to urge proper handling of equipment or components sensitive to
damage from electrostatic discharge. Handling guidelines include properly grounded mats and wrist
straps, ESD bags and cartons, and related procedures.
Calibration Notice
IOtech products are factory-calibrated to published specifications, and associated trimpots have been
sealed in the calibrated position. Re-calibration in the warranty period is the responsibility of the user
and is covered under warranty at IOtech’s discretion.
Quality Notice
Certified to ISO 9001 standards since 1996, IOtech applies tests and procedures to assure the highest
quality in all aspects of our products. Prior to shipment, we thoroughly test the products and review the
documentation. In a spirit of continuous improvement, IOtech welcomes your suggestions.
This manual explains the setup and operation of the TempBook data acquisition system. This manual
is divided into a table of contents, 11 chapters, and 1 appendix as follows:
Chapter 1 - Introduction and Quick Start begins with an overview description and a listing of system
specifications. If you are generally familiar with this type of equipment, the Quick Start section
shows how to hook up a simple system; however, most users will prefer the more detailed startup
procedures in chapter 2.
connectors, hardware hookups, software installation, configuration, and calibration.
Chapter 3 - Using TempView (16-bit) explains the use and features of TempView. Screen prints
show you the pull-down menus, toolbars, charts, and parameter fields discussed in the text.
Chapter 4 - Using PostView discusses the independent PostView program. PostView allows you to
view waveforms recorded by TempView, after the acquisition.
Chapter 5 - Programmer’s Guide explains how to custom-program for your application. Various
concerns are discussed; e.g., a comparison of standard and enhanced APIs and language support.
Chapter 6 - Standard API Programming of the TempBook With C describes several example
programs using the standard API with the C language.
Chapter 7 - Software Calibration and Zero Compensation describes the commands and parameters
related to calibration and zero compensation. This chapter organizes and supplements related
sections of the tbkCommand Reference chapter.
Chapter 8 - Thermocouple Measurement describes the commands and parameters related to
thermocouple measurement. This chapter organizes and supplements related sections of the
tbkCommand Reference chapter.
Chapter 9 - tbkCommand Reference (Standard API) describes the commands and parameters of the
“standard” API including useful reference tables.
Chapter 10 - Programming Models for Enhanced API describes the fundamental building blocks for
TempBook data acquisition software. These programming blocks can then be arranged and
filled with your parameters to make your system do as you please. Program excerpts illustrate
the basic concepts and can often (with modifications) be used in your code.
Chapter 11 - daqCommand Reference (Enhanced API) describes the commands and parameters of
the “enhanced” API including useful reference tables.
Appendix A- Differential Measurement Configurations describes setups for “floating” and
“referenced” differential signal input connections.
CAUTION
CAUTION
CAUTIONCAUTION
Using this equipment in ways other than described in this manual can cause
personal injury or equipment damage. Before setting up and using your
equipment, you should read all documentation that covers your system. Pay
special attention to cautions and warnings formatted like this one.
Software Reference Note:
16-bit PC users can use TempView out-of-the-box (see chapter 3) or program their
own application. Programmers using 16-bit API should refer to chapters 5 through 9.
Chapters 6, 7, and 8 provide examples and explain how to perform common tasks with
the standard API (16-bit) detailed in chapter 9.
32-bit PC users can program their own application. Programmers using 32-bit API
should refer to chapters 5, 10, and 11; chapter 10 explains programming models for the
enhanced API detailed in chapter 11.
Signal Connection ----------------------------------------------------------------------------------------------- 1-3
PC Connection --------------------------------------------------------------------------------------------------- 1-3
Power Connection and Switch --------------------------------------------------------------------------------- 1-4
Software Installation -------------------------------------------------------------------------------------------- 1-4
2 Installation, Configuration, and Calibration
Inspection ------------------------------------------------------------------------------------------------------------------ 2-1
Panel Connectors and Indicators --------------------------------------------------------------------------------------- 2-1
Termination Card and I/O Connectors--------------------------------------------------------------------------------- 2-2
Internal Configuration---------------------------------------------------------------------------------------------------- 2-3
Digital I/O Window ------------------------------------------------------------------------------------------------ 3-4
Charts and the Spreadsheet's "Reading" column --------------------------------------------------------------------- 3-4
TempView Menu Items-------------------------------------------------------------------------------------------------- 3-5
A Programmer’s View of TempBook Operations -------------------------------------------------------------------- 5-1
Driver Options ------------------------------------------------------------------------------------------------------------ 5-3
Standard API (tbk…)-------------------------------------------------------------------------------------------- 5-3
Enhanced API (daq…) ------------------------------------------------------------------------------------------ 5-3
Language Support ----------------------------------------------------------------------------------------------- 5-3
6 Standard API Programming of the TempBook With C
Accessing TempBook from a Windows Program -------------------------------------------------------------------- 6-1
Accessing TempBook from a C for Windows Program ------------------------------------------------------------- 6-1
High-Level Analog Input ------------------------------------------------------------------------------------------------ 6-1
Low-Level Analog Input ------------------------------------------------------------------------------------------------ 6-2
Analog Input in the Background---------------------------------------------------------------------------------------- 6-2
General Purpose Digital I/O Functions -------------------------------------------------------------------------------- 6-4
High-Speed Digital Input ------------------------------------------------------------------------------------------------ 6-4
Counter/Timer Functions ------------------------------------------------------------------------------------------------ 6-5
High-Level Thermocouple Data Acquisition ------------------------------------------------------------------------- 6-6
Thermocouple Linearization -------------------------------------------------------------------------------------------- 6-7
Sample Programs --------------------------------------------------------------------------------------------------------- 6-8
High-Level Analog Input --------------------------------------------------------------------------------------- 6-8
Low-Level Analog Input---------------------------------------------------------------------------------------- 6-9
Analog Input in the Background------------------------------------------------------------------------------6-10
General Purpose Digital I/O----------------------------------------------------------------------------------- 6-11
High-Speed Digital Input-------------------------------------------------------------------------------------- 6-12
Counter Timer Functions -------------------------------------------------------------------------------------- 6-13
High-Level Thermocouple Measurement ------------------------------------------------------------------- 6-14
Low-Level Thermocouple Linearization -------------------------------------------------------------------- 6-15
Command Summary, C Language (Windows) ---------------------------------------------------------------------- 6-17
Initializing the Calibration Constants ------------------------------------------------------------------------- 7-1
Calibration Setup and Conversion----------------------------------------------------------------------------- 7-2
Calibration Example--------------------------------------------------------------------------------------------- 7-2
Zero Compensation------------------------------------------------------------------------------------------------------- 7-3
Zero Compensation Example ---------------------------------------------------------------------------------- 7-4
Automatic Zero Compensation -------------------------------------------------------------------------------- 7-5
Single-Channel Measurement (tbkRdTemp)--------------------------------------------------------------- 8-3
Multiple Measurements from a Single Channel (tbkRdTempN) ---------------------------------------- 8-4
Multiple Channel Measurement (tbkRdTempScan) ----------------------------------------------------- 8-4
Multiple Measurements from Multiple Channels (tbkRdTempScanN) ------------------------------- 8-4
9 tbkCommand Reference (Standard API)
Overview------------------------------------------------------------------------------------------------------------------- 9-1
Commands in Alphabetical Order -------------------------------------------------------------------------------------- 9-2
API Reference Tables ---------------------------------------------------------------------------------------------------9-32
A/D Channel Descriptions------------------------------------------------------------------------------------- 9-32
A/D Gain Definitions------------------------------------------------------------------------------------------- 9-32
A/D Trigger Source Definitions ------------------------------------------------------------------------------ 9-32
Pretrigger Functions Trigger Source Definitions----------------------------------------------------------- 9-33
Thermocouple Types------------------------------------------------------------------------------------------- 9-33
API Error Codes - C Languages ------------------------------------------------------------------------------ 9-33
API Error Codes - QuickBASIC------------------------------------------------------------------------------ 9-34
API Error Codes - Turbo Pascal ------------------------------------------------------------------------------9-35
API Error Codes - Visual Basic ------------------------------------------------------------------------------9-36
TempBook User’s Manual,
11-14-00
iii
10 Enhanced API Programming Models (TempBook)
Overview------------------------------------------------------------------------------------------------------------------ 10-1
Data Acquisition Environment----------------------------------------------------------------------------------------- 10-1
Application Programming Interface (API) ------------------------------------------------------------------10-1
Enhanced vs Standard API ------------------------------------------------------------------------------------ 10-1
Hardware Capabilities and Constraints ---------------------------------------------------------------------- 10-1
Signal Environment -------------------------------------------------------------------------------------------- 10-2
Initialization and Error Handling ----------------------------------------------------------------------------- 10-3
Foreground Acquisition with One-Step Commands ------------------------------------------------------- 10-5
Temperature Acquisition Using One-Step Commands ---------------------------------------------------- 10-7
Counted Acquisition Using Linear Buffers ----------------------------------------------------------------- 10-9
Indefinite Acquisition, Direct-To-Disk Using Circular Buffers---------------------------------------- 10-11
Multiple Hardware Scans, Software Triggering ---------------------------------------------------------- 10-14
Background Acquisition ------------------------------------------------------------------------------------- 10-16
Temperature Acquisition Using TC Conversion Functions--------------------------------------------- 10-18
Double Buffering --------------------------------------------------------------------------------------------- 10-21
Direct-To-Disk Transfers ------------------------------------------------------------------------------------ 10-23
Transfers With Driver-Allocated Buffers------------------------------------------------------------------ 10-26
Summary Guide of Selected Enhanced API Functions----------------------------------------------------------- 10-28
11 daqCommand Reference (Enhanced API)
Overview------------------------------------------------------------------------------------------------------------------ 11-1
Commands in Alphabetical Order ------------------------------------------------------------------------------------- 11-2
API Reference Tables ------------------------------------------------------------------------------------------------- 11-35
This chapter describes the TempBook in general terms including specifications. Also, a Quick Start can
help you get a simple system up and running (chapter 2 has more detailed installation inst ructions).
Description
1
TempBook/66 Block Diagram
The TempBook/66 adds voltage and thermocouple measurement capability to notebook PCs for portable
test applications. The TempBook also provides an effective alternative to plug-in boards for desktop PCs.
The TempBook provides 12-bit, 100 kHz data acquisition and can support up to 800 Kbyte/s data transfer
to a PC via an enhanced parallel port interface or PCMCIA link. The unit can also connect to a standard
parallel port and transfer readings directly to disk at up to 100K readings/s. As an external module with the
same footprint as a typical notebook PC, the TempBook can be attached directly under a notebook PC for
portability.
The TempBook has a built-in analog capability that permits it to measure 8 channels in a differential mode
or 16 channels in single-ended mode. Its on-board programmable-gain instrumentation amplifier can be set
to gains of ×1, 2, 5, 10, 20, 50, 100 or 200 on a per channel basis. Its A/D converter scans selected
channels at a constant 10 us/channel rate, minimizing the time skew between consecutive channels. The
time between the start of each scan sequence can be programmed to start immediately or at intervals of up
to 10 hours. The TempBook features a hardware-based digital/TTL trigger that minimizes trigger latency to
less than 10 us. The TempBook can also be triggered from a command from the PC.
The TempBook/66 can be powered by an included AC adapter, a standard 12V car battery, any +9 to 20
VDC source, or an optional rechargeable nickel-cadmium battery module (DBK30A). This makes it ideal
for field and remote data acquisition applications.
Software included with the TempBook includes TempView and PostView. TempView is a 16-bit
Windows-based program that allows you to set up your acquisition and save acquired data directly to disk.
The package also includes thermocouple linearization for direct readout of temperatures. PostView is a
Windows-based post application waveform display application that permits you to display previously
acquired data.
TempBook User’s Manual,
11-14-00
Introduction and Quick Start 1-1
In addition, the TempBook/66 includes DOS drivers for Quick Basic, C, and Pascal; Windows drivers for
Visual Basic and C for Windows. Several graphically analysis and control software packages also support
the TempBook/66. These include DASYLab, Snap-Master, LABTECH NOTEBOOK and LabVIEW.
Available Accessories
Additional accessories that can be ordered for the TempBook/66 include:
•
DBK35 PCMCIA interface card and cable
•
DBK30A Rechargeable battery module
Specifications
General
Connector
user signals are connected vi a screw terminals on a removabl e
screw-terminal card.
Thermocouple Types
Input Ranges
Unipolar
Bipolar
Analog Inputs
differential thermocouple inputs
Analog-to-Digital Converter
unsigned binary output format .
Cold Junction Sensor Output
Input Impedance
channel basis in parallel with 100 pF
Input RC Filter -3dB Frequency
per channel basis
Gain Accuracy
Maximum Input Voltage
CMRR (Input Stage)
Offset
Offset Drift
Channel Sequencer
Depth
Speed
Interval Between Scans
: Connects to a PC via an inc l uded paral l el port cable;
: J, K, S, T, E, B, R & N
:
: .05, 0.1, 0.2, 0.5, 1, 2, 5 V
: ±0.25, .05, 0.1, 0.25, 0.5, 1, 2.5, 5 V
: 8 differential or 16 single-ended vol tage or 8
: 12-bit with no missing codes,
: 100 mV/°C
: 100K/100M Ohm, Switch-sel ectable on a per-
: 15.9 kHz switch-selectable on a
: 0.1%
: ±15 V
: 90 dB typ, DC to 60 Hz
: Software-compensated
: Software-compensated
: 512 locations
: 10 µs per channel, f i xed
: 10 µs to 10 hours, software-
: Sequencer programmable on a per-channel basis.
: Sequencer programmable on a per channel
: Software programmable for al l
(°C )(°C )(<°C )(>°C )Type<0°C>0°C
Digital I/O
Inputs
Number
Outputs
Trigger Input
Counter/Timer Port
Device
Number
Clock
Usage
Type
Input High Voltage
Input Low Voltage
Output High Voltage
Output Low Voltage
Thermocouple
Resolution (°C)
: 8 fixed as inputs
Usage
: General-purpose register addressable or hi gh-speed
scanned via channel sequencer
Type
: TTL-compatible
High Voltage
Low Voltage
Number
Usage
Type
: TTL-compatible
High Voltage
Low
Voltage: 0.4V @ 2.5 mA sink
Type
: TTL-compatible
High Voltage
Low Voltage
: 8254 (P0 only)
: Internal 100 kHz or external up to 10 MHz
: Register addressable
: TTL compatible
: 2.0 V min
: 0.8 V max
: 8 fixed as outputs
: General-purpose register addressable
: 3.0 V @ 2.5 mA sourc e
: 2.0 V min
: 0.8 V max
: 1 gate input, 1 clock input & 1 output
: 2.0 V min
: 0.8 V max
: 3.0 V @ 2.5 mA sourc e
: 0.4 V @ 2.5 mA sink
1-2 Introduction and Quick Start,
11-14-00
TempBook User’s Manual
Quick Start
For those users who wish to get their TempBook up and running as quickly as possible, this section
provides a brief explanation of the steps required. Note: unless already familiar with this type of system,
most users will need to read chapter 2, Installation and Configuration.
Signal Connection
The thermocouple and volt age input signals are fed to the TempBook through a removable termination
card. To remove this card, rotate the ejector handle with your thumb or finger. Once removed, the
thermocouple or voltage connections should be made as shown in the figure.
PC Connection
Signal Connections, Differential and Single-Ended
Note: When connecting thermocouple or other low-level signals in addition to high-level signals, connect
the low-level signals to the lowest numbered channels with connections in ascending order of signal
magnitude.
The DIP switches located on the termination card connect optional biasing resistors as well as input filters.
•
For thermocouple or other differential inputs, these switches should be closed to provide the required
bias current path.
•
For single-ended inputs these switches can be optionally opened or closed.
For further details, refer to section Termination Card and I/O Connectors in chapter 2.
The TempB ook communicates with a lap t op or desktop computer through the paral lel printer port. Connec t
the supplied cable to the computer’s parallel port and the TempBook's parallel port.
TempBook User’s Manual,
11-14-00
PC-to-TempBook Connection
Introduction and Quick Start 1-3
Power Connection
The TempBook is typically powered from the supplied wall-mount converter or from an optional DBK30A
battery module. The wall-mount converter plugs into any standard 110 VAC wall outlet and its other end
plugs into the circular DIN5 receptacle on the TempBook's rear panel. If using the battery module, please
refer to the section Rechargeable Battery Module in chapter 2.
Software Installation
The TempBook/66 comes with a Microsoft Windows application (16-bit TempView) that provides the
easiest means to collect data from the TempBook. To install the software insert the installation CD into
your PC’s CD drive. After agreeing with the legal statement a master setup screen will appear (see
following figure).
TempBook Power Connection
Selecting TempBook Support from the Master Setup Screen
After selecting TempBook Support, click Start Install and follow the on-screen prompts.
Once the setup program has installed the software, a TempBook program group will appear within
Windows. To start TempView, click on its program icon. The main window will soon display a
spreadsheet of channels in rows and channel parameters in columns.
For information regarding the use of TempView, refer to chapter 3.
1-4 Introduction and Quick Start,
11-14-00
TempBook User’s Manual
Installation, Configuration, and Calibration
Inspection
The TempBook components were carefully inspected prior to shipment. When you receive your data
acquisition system, carefully unpack all items from the shipping carton and check for any obvious signs of
physical damage that may have occurred during shipment. Immediately report any damage to the shipping
agent. Retain all shipping materials in case you must return the unit to the factory.
Every TempBook is shipped with the following items:
•
TempBook Data Acquisition System
•
User's Manual
•
Installation CD
•
Calibration Constants Disk
•
Accessory Kit, including: CA-35-2 (2 ft parallel port cable) and an AC Adapter
Panel Connectors and Indicators
The TempBook front panel consists of 3 status-indicator LEDs. The rear panel consists of the power
switch, power input, two DB25s for parallel port connection and pass-thru, and a slot to accept the input
termination card. The function of each of these components is described below.
TempBook Panel Connectors and Indicators
POWER SWITCHThis rocker arm switc h t u rns on the DC power to the TempBook when the "1" si de
POWER INPUTThis input connector ac cepts +7 VDC to +20 VDC.
TO PARALLEL PRINTERThis parallel port can connect to any standard parallel pri nter. This allows the
FROM PC PARALLEL PORTThis parallel port connects directly to the PC's parallel printer port. This all ows
POWERThis LED is ON when power is applied to the TempB ook (and the power switch is
ON-LINEThis LED is ON when the TempBook is in an Active state. OFF, when the
A/D ACTIVEON during an A/D scan sequence. I f the sequence has a smal l number of steps
of the switch is depressed.
user to attach both the TempBook and a parallel printer to the s ystem
simultaneously.
the host system t o communicate with the TempBook.
in the ON position). OFF, if power is not pres ent.
TempBook is not enabled or in t he pri nter pass through mode.
and occurs infrequently, this indicator will only flash briefly.
2
TempBook User’s Manual,
11-16-00
TempBook Front and Rear Panels
Installation, Confi gurat i on, and Calibration 2-1
Termination Card and I/O Connectors
The TempBook/66 accepts all analog and digital I/O signals via a removable termination card (see figure).
This termination card has six screw terminal strips, a CJC temperature sensor, and input R/C filters which
also provide a bias current return path for the TempBook's instrumentation amplifier. The filters/bias
resistors are switch-selectable on a per channel basis.
TempBook Termination Card
Terminal strips J2 and J3 provide analog input signal connection. Note that the terminals are arranged in
differential pairs for easy thermocouple connection. These terminal strips also provide analog signal
common connections for convenient r eferencing of single -ended input signa ls.
Terminal strips J4 and J5 provide connections for the eight digital outputs and the TTL trigger input. These
terminal strips also provide ground connections for referencing digital signals. Terminal strips J6 and J7
provide connections for the eight digital inputs, the pacer clock output (OUT2), and the three counter/timer
(8254 P0) I/O signals.
The thermocouple or voltage connections should be made as shown in the following figure.
Analog Signal Connection
Note: When connecting thermocouple and other low-level signals in addition to high-level signals, the lowlevel signals should be connected to the lowest numbered channels with connections following in ascending
order of signal magnitude.
2-2 Installation, Confi gurat i on, and Calibration
11-16-00
TempBook User’s Manual
Each of the 16 analog input channels is configured as shown in the figure (also, refer to the appendix for
more information on wiring differential inputs).
The series resistance and shunt capacitance for m a singl e-pole
low-pass filter with a corner freque ncy of 15.9 kHz. The shunt
resistance provides the bias current path for the instrumentation
amplifier.
When reading thermocouples, these filters should be switched in.
If the filters are not used with thermocouples or any other
differential input, then the user must provide a bias current return
path to signal common. Note that for each differential
channel, two DIP switches need to be set.
Internal Configuration
To open the unit, place the TempBook on a flat surface. Remove
the screw on the top rear of the case, and slide out the top cover.
Reverse this procedure to assemble the unit.
The internal configuration of a TempBook/66 consists of setting
the following jumpers to reflect the desired mode of operation:
•
Time Base (JP9)
•
Watchdog Timer Enable (JP8)
The location of each jumper is shown in the figure.
Watchdog Timer Enable/Disable (JP8)
This 3-pin header allows the elective use of the TempBook watchdog timer
function. If using a printer with the TempBook, the watchdog timer should be
enabled to allow the TempBook to be most reliably reset by the host computer.
Note that enabling the watchdog timer might impede background
measurements. If the user is not going to attach a printer, the timer is optional.
The default setting is Watchdog Timer Disabled. To enable, place the shunt
jumper in the enabled position as shown in the figure. To disable, place the
jumper in the disabled position, as shown.
Time Base Selection (JP9)
This 2×2 header allows the user to select one of two oscillator derived
frequencies to be applied to the pacer clock (8254 P1 & P2). The pacer clock
sets the interval between scans in continuous trigger mode. The two frequencies
are 1 MHz and 100 kHz. The most useful range of clock output frequencies for
the average user would be provided by the 1 MHz setting (the default setting).
Hardware Installation
Connect the TempBook to any P C parallel p rinter por t (female DB25 ) by unplugging the pri nt er cable and
plugging the male end of the supplied cable (CA-35) into the computer and the fe male end into the mating
connector on the TempBook. Any printer port (LPT1, LPT2, or LPT3) may be used but should be noted
for use in software installation.
TempBook allows for LP T pass-through for simultaneous data acquisition and printer operation. When
using a printer in the system, attach the original printer cable male DB25 into the mating connector on the
TempBook.
The TempBook may be powered by the supplied AC adapter that plugs into any standard wall outlet or
from an isolated 7-20 VDC source of 1-2 A.
If using the power adapter, plug it into a 120 VAC outlet, and attach the low voltage end to the jack on the
TempBook. Turn ON the power switch, and the POWER LED should be on.
TempBook User’s Manual
11-16-00
Installation, Confi gurat i on, and Calibration 2-3
At power-on, the printer should behave normally and can be checked by issuing a
command (or any other convenient method of checking the printer). (Installation of the software will be
necessary before the TempBook can perform any functions.)
Rechargeable Battery Module (DBK30A)
For portable applications where external AC or DC power is not available, the DBK30A rechargeable
nickel cadmium battery module can be used with the TempBook/66. This module is housed in a r ugged
metal package that is the same size as the TempBook. It also comes with high-strength Velcro tabs that
allow convenient mounti ng underneath the TempBook/66.
The DBK30A is a revised combination of the DBK30 and DBK31 battery modules. There is an internal
slide switch which determines whether a DBK30A will act as a DBK30 or DBK31.
Note: Only the DBK30 mode should be used with the TempBook/66.
The DBK30 operating mode provides 14.4 VDC at 3.4 A-Hr. This setup can power the TempBook for 3 to
6 hours depending on the application. The battery module has built-in automatic battery-charging circuits,
which quickly and safely recharge the internal batteries when connected to the supplied AC adapters. The
only requirement for trouble-free operation is for the user to fully charge the battery module before
attempting to use it.
Charging the Battery Modules
The DBK30A package includes a charger for the intended line voltage (either 120 VAC or 230 VAC). To
charge the battery module, plug the output cable from the charger into the POWER IN connector on the
DBK30A, and plug the charger into an appropriate source of AC power (see figure). The charge cycle will
be initiated automatically, and the batteries will be fully charged after the charging cycle terminates.
Power
Source
PS-22 or PS-22E
START CHARGE
32:(5,1
729'&
32:(528772'DT%RRN
PRINT SCREEN
DBK30
Start Charge
Power In
Connecting the Charger
To initiate another charge cycle, depress the START CHARGE momentary rocker-arm switch. Subsequent
charge cycles applied to a fully charged DBK30A will have no ill effect because the DBK30A will sense
the fully-charged status of the batteries and revert to the trickle-charge state within a few minutes.
There 3 LED status indicators on the DBK30A provide information on the charge process or external load
as noted in the table.
Power In
Battery Charging
Power Out
Illuminated when the charger is connected to a source of AC power and to the bat tery
module.
Illuminated steadi l y while battery is in the high current (2-amp) charge mode.
Flashing briefly, one or two flashes at a time, when the internal batt eri es are fully charged.
Illuminated steadi l y when an external TempB ook product is connected and drawing current
from the battery modul es.
2-4 Installation, Confi gurat i on, and Calibration
11-16-00
TempBook User’s Manual
Battery Module Connection
The DBK30A package includes a short connecting cable (CA-115) to connect to the TempBook. This
cable connects the Power Out connector on the DBK30A to the Power In connector on the TempBook (see
figure).
The run time available from a DBK30A operating a TempBook will depend on what the TempBook is
doing. This time can be as little as 3 hours or as much as 6 hours.
The DBK30A must periodically be fully discharged or the cells may develop "lazy
chemistry" that may limit storage capacity. (This “memory” is characteristic for
nickel-cadmium batteries.) To manually discharge a battery pack, connect a
TempBook, and leave it turned on until the indicator lights go dark.
Connecting the TempBook to the Battery Module
&$87,21
Parallel Port Capabilities
The TempBook includes a test program which verifies your computer's parallel port, testing its standard and
enhanced capabilities.
•
Standard LPT ports on an IBM compatible computer have two modes to read data from the printer
port: 4-bit and 8-bit. The 8-bit mode is somewhat faster than the 4-bit, but not all printer ports support
this mode.
•
Enhanced parallel ports (EPP) are parallel p orts which include additional hardware that allows the
TempBook to communicate with the PC at 3 to 10 times the speed possible with standard parallel
ports. This greatly improves data acquisition performance.
Enhanced parallel ports require special hardware, and only certain computers are EPP capable. Most laptop
computers that use the Intel 386SL or 486SL chip set (which includes the 82360 I/O Controller) are EPP
capable. For those computers which have plug-in card slots, EPP adapter cards are available. You may
wish to contact your computer's manufacturer for details about your machine and possible adapter cards.
The TempBook test program, TEMPTEST.EXE (described in a later section) should be run to determine
the PC's printer port capabilities.
Note: To take a dvantage of the improved performance of EPP when using a programming language, you
must add the software command
the command description in the Command Reference section of this manual.
tbkSetProtocol
(standard API) to your program. For details, refer to
TempBook User’s Manual
11-16-00
Installation, Confi gurat i on, and Calibration 2-5
TempBook Configuration Under Windows 95/98
Note: The TempBook/66 software installation is discussed in chapter 1.
This section describes the configuration of TempBook devices under the Windows 95/98 operating systems.
A configuration utility is supplied via a control panel applet. The Daq Configuration applet allows you to
add a devic e, remove a devi ce, or change existing configurati on settings. Daq Configuration also has a
built-in test utility to test the device. The test utility provides feedback on the validity of the current
configuration se ttings as well as provi ding relevant performance summaries.
Daq Configuration can be found in the Windows 95/98 control
panels and can be executed any time that it is desirable to add,
remove or change device configur ation settings. Daq
Configuration may also be entered during driver installation.
The following description applies to either method.
The Daq Configuration/Device Inventory scre en at right will
display all currently configured devices. Displayed devices are
indicated by their name and an identifying icon which indicates
the device type. If no devices are currently configured, no
devices will appear in this field.
The 4 buttons across the bottom of the Daq Configuration
screen are used as follows:
•
Properties. Current configuration settings for a device
can be changed by bringing up the corresponding
properties screen. To do so, double-click the device icon
or single-click the device and then double-click the
Properties button.
•
Remove. The R
removed if it is no longer installed or if the device’s configuration no longer applies. Note: if a device
is removed, applications may no longer access the device. However, the device can be re-configured
at any time using the Add Device function described below.
•
Close. The C
•
Add. The A
configuration whenever a new device is added to the
system. Failure to perform this step will prevent
applications from properly accessing the device. Doubleclicking the Add Device button will display a window as
shown in the figure.
emove button is used to remove a device from the configuration. A device may be
lose button may be used at any time to exit the Daq Configuration applet.
dd Device button is used to add a device
Use the scroll bar to find the TempBook device type to be
configured. Once found, click the device t ype (the type should
then appear in the main edit box). Now double-click the OK
button.
The next screen displays the properties for the TempBook
device with the default configuration settings. Fields include:
•
The Device Name field is displayed with the default
device name. However, this field can be changed to any
descriptive name as desired. This device name is the name to be used with the
(see enhanced API chapter) to open the device.
•
The Device Type field should indicate the device type which was initially selected. However, it can
be changed here if necessary.
•
The Protocol field is used to set the parallel port protocol for communicating with the TempBook.
Depending on your system, not all protocols may be available.
Note: IRQ Setting and DMA Setting for the TempBook are currently not configurable. These fields are
reserved for future use.
2-6 Installation, Confi gurat i on, and Calibration
11-16-00
daqOpen
TempBook User’s Manual
function
When all fields have been changed to the desired settings,
you can click:
•
the Apply button to store the configuration.
•
the OK button to store the configuration and exit the
current property screen.
•
the Cancel button to exit the current device
configuration property screen without storing any
changes.
•
the Test Hardware tab to test the current stored
configuration for the device. This selection will bring
up the Test property screen. Note: the next figure
displays results from a previously run test. Initially, the
screen will show no test results.
Before testing the TempBook, make sure the device has been
properly installed and powered-on. Make sure the parallel
port cable is firmly in place on both the TempBook and the
proper LPT port in the computer.
Note: Testing the TempBook device may, in some cases, cause the system to hang. If test results are not
displayed in 30 seconds or the system does not seem to be responding, reboot the system. Upon
power-up, re-enter the Daq Configuration and change the configuration settings to those that work
properly. To test the current stored configuration for the device, click the Test button. Test results
should be displayed within a few seconds. The test results have 2 components: Resource Tests and
Performance Tests.
Resource Tests
The resource tests are intended to test system capability for the current device configuration. These tests
are pass/fail. Resource test failure may indicate a lack of availability of the resource or a possible resource
conflict.
Base Address Test
•
- This test will test the base address for the selected parallel port. Failure of this
test may indicate that the parallel port is not properly configured within the system. See relevant
operating system and computer manufacturer’s documentation to correct the problem.
Performance Tests
The performance tests are intended to test various TempBook
functions with the current device configuration. These tests
give quantitative results for each supported functional group.
The results represent maximum rates at which the various
operations can be performed. These rates depend on the
selected parallel port protocol and will vary according to port
hardware capabilities.
ADC FIFO Input Speed
•
maximum rate at which data can be transferred from the
TempBook’s internal ADC FIFO to computer memory
through the parallel port. Results are given in
samples/second (sample is 2 bytes in length
representing a single A/D count).
- This test will test the
TempBook User’s Manual
11-16-00
Installation, Confi gurat i on, and Calibration 2-7
Connection Troubleshooting
If communications cannot be established with the TempBook or if trying to connect causes the system to
hang or crash, then you should:
•
Check that TempBook’s power LED is ON. If not ON, verify power connection between the
TempBook and the power source.
•
Make sure the LPT cable is firmly attached to the computer’s proper LPT port and to the TempBook
port labeled “TO COMPUTER”.
•
Check that the desired LPT port has the proper resource configurations. The base address and IRQ
level must be properly configured and recognized by the operating system. The parallel port must be
capable of generating interrupts for proper operation. (This information may be obtained in the
Device Manager in the Control Panel of the operating system). More information on this subject can
be found in the
•
Check the BIOS settings for the LPT port. Make sure the BIOS LPT protocol settings are compatible
with the settings selected for the LPT port with the Control Panel applet.
•
Make sure the Daq Configuration Applet has been run and the proper LPT port and protocol have
been selected for the device. The Daq Configuration applet can be found in the Control Panel of the
operating system. The Test Hardware function in the control panel applet can be used to confirm
proper communication with the device.
readmew.txt
Calibration of TempBook
The TempBook/66 is factory calibrated for gain and offset. After calibration, the unit is characterized for
gain and offset errors, and software correction constants are calculated. For users who wish to use these
constants within their own programs, see the Software Calibration and Zero Compensation chapter.
file in the current software release.
Calibration Constants File Installation
Each TempBook is shipped with a disk containing a calibration constants text file. The file is named
serial_no.cal where serial_no is the serial number of the TempBook for which the constants were generated.
The default calibration constants filename assumed by TempView is tempbook.cal.
The following command can be used to copy and rename the file if executed from the floppy disk drive.
Since the TempBook is factory characterized after calibration, user recalibration is not recommended.
However, one exception to this recommendation is the calibration of the TempBook's internal 5V reference.
This 5V reference is used to level-shift the amplified analog input signal for unipolar measurements.
Reference-voltage drift is not compensated for with zero compensation; and therefore, periodic
recalibration can improve unipolar measurement accuracy.
The following char acteristics ca n be calibrated through po t entiometer adjustments on the TempBook main
board:
•
5V Reference Voltage
•
Instrumentation Amplifier Offset
•
Level Shift Amplifier Offset
•
ADC Offset
•
ADC Span
The TempBook includes a simple calibration program that can be used to perform these adjustments. If the
user is only performing the reference voltage adjustment, then only a 4-1/2 digit DMM is required. If the
user is performing the full TempBook calibration, then an adjustable voltage calibrator is also required.
A Microsoft Windows program, TEMPCAL.EXE, is provided to perform calibration of the TempBook. To
use this program, install the TempBook Windows support and launch the TEMPCAL program; follow the
on-screen instructions.
2-8 Installation, Confi gurat i on, and Calibration
11-16-00
TempBook User’s Manual
Using TempView
TempView is a 16-bit graphical Microsoft Windows application for operating TempBook hardware.
No programming knowledge is required to operate this application. TempView allows you to set up an
application to acquire data and save it directly to disk with the ability to transmit the data to other Windows
applications, such as spreadsheets and databases. TempView provides the following capabilities:
•
Set up all of the analog input parameters, then acquire and save the data to a disk file.
•
Exercise TempBook’s digital I/O section.
•
Exercise the counter/timer.
•
Launch PostView, an independent application to graphically view waveforms previously recorded by
TempView. PostView is discussed in chapter 4.
Application Startup
If you have not already installed TempView, refer to chapter 1 of this manual. To launch the application,
double-click the TempView icon. TempView holds many user-configured parameters which can be saved
to disk. The default configuration file name is “TEMPVIEW.CFG”. TempView will then proceed to
search the working directory for the TEMPVIEW.CFG configuration file. The following conditions may
apply:
•
If the default configuration file is found, all the required setup information will be extracted from it,
and the application's main window will open.
•
If the default configuration file is not found, TempView will try to connect with the TempBook
hardware with the following default parameters: Printer Port LPT1, Interrupt Level 7, and 4-bit
Standard Protocol.
•
If connection with the TempBook is established, the applications main window will open with default
setup.
•
If all of the above fails to establish communications with the TempBook, then a dialog box will appear
asking whether or not you want to open a different setup file. Answering “Yes” will open another
dialog box where you can select your file. If this is the first time you have used this application, no
saved setups will be available; select “No”.
•
If a configuration file is selected, no further dialog boxes will appear, all the required setup
information will be extracted from it, and the applications main window will open.
•
If no user configuration file is selected or found, or communications is not established, the next dialog
prompts the user to choose a real instrument or a simulated instrument. If the hardware is not
available and you just want to try out the software, select Simulated Instrument. The Simulated
Instrument mode allows you to exercise all the software functions without any hardware installed. If
the TempBook hardware is connected and switched on, select Real Instrument.
•
If Real Instrument was selected, an additional dialog box will appear, prompting you to select the LPT
port that the hardware is connected to, the interrupt level of that port, and the parallel port protocol to
use.
3
TempView will attempt to find the TempBook on the specified LPT port. If the hardware is found, the
application's main window will open. If no hardware is found, a message appears and the application will
open with the controls disabled.
To reconfigure the LPT port setting and try again, click Select LPT Port under the Select Port menu. If the
TempBook hardware still cannot be identified by the software, exit TempView and try the TEMPTEST
utility program.
TempBook User’s Manual,
11-16-00
Using TempView (16-bit) 3-1
TempView Components
The figure shows TempView’s main window that has areas for the following:
•
Analog input spreadsheet to summarize system configuration and show current readings
•
Trigger configuration, e v ent type and edge
•
Sequence repetition rate, number of scans, and averaging enable
•
Data destination (filename and data format)
•
High-speed digital input enable
•
Signal reference type
Analog Input Spreadsheet
The input spreadsheet allows the analog input channels to be configured and displayed. The spreadsheet
consists of rows and columns much like a standard accounting spreadsheet.
•
Each
•
The
The 7 columns for each row are used as follows:
CH
rows by the corresponding analog input channel to configure.
ON
corresponding input during an acquisition. An acquisition consists of reading data to disk, either to charts
or the input reading column of this spreadsheet. When a cell or block of cells in this column is selected, a
selection box will appear above the spreadsheet that allows a "Yes" or "No" choice to enable or disable the
channel. Double-clicking a cell in this column will toggle the channel status. The Make All Channels
Active and Make All Channels Inactive menu items under the Edit menu can be used to globally change all
channels to a "Yes" or "No".
Type
block of channels. Double-clicking a cell or block of cells in this column will select the next available gain
or type.
row
selected; or 8 rows if differential inputs are selected.
columns
cells to be altered simultaneously while others allow only one cell to be changed at a time. Clicking a
column header will select the entire column if possible.
- The channel-number column labeled "CH" is static and cannot be altered. This column identifies
- The column labeled "On" allows you to select whether or not data will be collected from the
- The "Type" column allows you to set the thermocouple or gain type for the selected channel or
TempView’s Main Window
configures a single analog input channel. There are 16 rows if single-ended inputs are
contain the configuration information for each channel. Some columns allow blocks of
3-2 Using TempView (16-bit)
11-16-00
TempBook User’s Manual
Pole - The "Pole" column shows the state of the channel polarity which can be either unipolar or bipolar.
The channel polarity can be programmed on a per channel basis. If a cell or block of cells in this column is
selected, a selection box will be displayed above the spreadsheet with the selections "Uni" and "Bi" when
the cell is selected. Double-clicking in one of these cells will toggle the polarity.
Label - The "Label" column contains a descriptive name for the input channel. By default it contains a
label similar to its channel number; however, you can enter a more relevant, descriptive label of 8
characters. This label will be used when selecting a specific channel in the analog trigger and chart
selection lists. This column does not have a selection list above the spreadsheet and does not allow
selecting blocks of cells.
Units - The "Units" column allows you to change the
engineering units of each channel and apply a linear equation to
the data read from the TempBook. When a cell or block of cells
in this column is selected, a selection box is displayed
containing mX+b as well as common engineering units (see
figure). Selecting mX+b will pop up a window that allows the
m and b of this equation and the engineering units label to be
defined. The engineering units will then be displayed in the
"Units" column, and the mX+b equation will be applied to the
reading from the TempBook before the reading is displayed or
written to disk. The X in this equation is the voltage or the degrees in Celsius read back from the
TempBook. For example, if a TempBook channel is configured as bipolar and unity (×1) gain, the default
voltage would be ±5 V. This corresponds to an m of 1, a b of 0 and an engineering unit of V. This could be
changed to millivolts by setting m to 1000 and units to mV. This column could also be used to perform a
software calibration of the TempBook. This is performed by reading known inputs at two different points
of the input voltage range (usually at 0 and full scale) and solving the equation y = mX+b. The full-scale
voltage, which changes according to the gain of the channel, is 5V/gain for bipolar channels and 10V/gain
for unipola r channels.
Reading - The "Reading" column can display the analog input readings of the TempBook. This column
cannot be altered by the user and is enabled by selecting Enable Input Reading Column under the
Acquisition menu. This column will update the readings as fast as the computer will allow. If data is being
written to disk while this column is enabled, it will be updated whenever possible. The spreadsheet cannot
be altered while the input reading column is enabled.
In addition to the analog inputs, there is one 8-bit digital input channel accessible on the termination card.
This high-speed digital input, which is read at the same rate as any analog inputs, can be enabled or disabled
by clicking the "ChanOn" checkbox in the lower right of the analog input spreadsheet.
Acquisition Configuration
The acquisition configuration section of TempView’s main window is just to the right of the analog input
spreadsheet. This section has 5 parts: the Trigger, Scan Frequency, Number of Scans, Signal Conditioning,
and Data Destination sections. These sections allow you to set up all of the acquisition parameters for the
analog inputs and the high-speed digital input channel. The analog acquisition configuration includes
parameters fo r setting up a tri gger source, the scanning frequenc y after the trigger i s satisfied, the numbe r of
scans to take after the trigger, and the file name for the collected data. These settings will be used when an
acquisition-to-disk is started by selecting "Go" under the acquisition menu.
Trigger - The Trigger section selects the source of the trigger. When the trigger is satisfied, the scans are
collected at the selected scan frequency and stored to disk. The sources are: Key Hit, which arms the
acquisition and waits for the user to hit a key; and External TTL, which waits for a falling or rising edge on
the 'trig' input terminal on the termination card.
Sequence Rep Rate - The scan frequency can be set in units of seconds, minute s and hours. Movi ng the
slide switch changes the rate. The cursor can also be placed in the numeric field and a number can be
entered directly. The maximum scan frequency is dependent on the number of channels that are enabled
and whether or not averaging is enabled. Enabling more channels or enabling averaging will lower the
maximum scan frequency.
Signal Cond Averaging - The Averaging checkbox enables or disables averaging of the analog input data.
Averaging can be used to increase the effective accuracy of a noisy signal. Averaging will increase the
TempBook User’s ManualUsing TempView (16-bit) 3-3
actual scan frequency and number of scans, but the perceived scan frequency and number of scans (which is
set by TempView) does not change.
No. of Scans - The number of scans can range from 1 to 100,000. A scan includes all of the channels that
are marked as "On" in the analog input configuration spreadsheet.
Data Destination - This section contains the file name and type of file(s) that exist after an acquisition-todisk is complete. A file name can be typed in directly or the Browse Files button can be pressed to open a
file-selection dialog box. The selected file will be placed directly into the filename field. During an
acquisition, a raw binary file is created and updated as data is read. After the acquisition is complete, an
ASCII text file and PostView binary file can be created if the appropriate checkbox is enabled. Both of
these files can be read by PostView (described later in this chapter). If the raw binary checkbox is not
enabled, the raw binary file will be deleted after creating the PostView or ASCII file.
After the acquisition is started, these parameters can not be altered.
Counter/Timer Window
The counter/timer window is displayed when ctr/tmr is selected under the Windows pull-down menu. This
window allows configuration of the 8254's counter 0. Counter 0 is configured by selecting its function,
clock source and initial count. When the Start Timer button is clicked, the counter configuration will take
place.
Counter/Timer Window
Digital I/O Window
The digital I/O window is displayed when digital I/O is selected
under the windows menu. This window provides interactive control
of the 8 digital input lines and 8 digital output lines on the
TempBook termination card. Select output values by clicking on the
output witches which toggle between 0 and 1—or you can enter the
hex value and <Enter>; the switch positions will update to reflect the
new setting. When the Execute button is pressed, all output lines
will be updated and all input lines will be read.
Charts and the Spreadsheet's "Reading" Column
Up to 4 charts can be displayed by selecting charts under the Window menu. Before the charts can be
enabled, at l east one chart must be assigned a channel t hrough the channel’s drop-down list. When a
channel is selected, you can change the minimum and maximum values displayed in the chart (see figure).
This can be done whether or not the charts are currently enabled.
The charts and the spreadsheet Readings column are independently enabled. The charts can be enabled
under the Charts menu of the Charts window. The Readings column can be enabled under the Acquisition
menu of the main TempView window. These windows provide instant feedback of the analog input
readings.
Data is read and displayed in the charts and Readings column as fast as the computer will allow. When an
acquisition to disk has b egun using the Go command under the Acquisition menu, the charts and the
spreadsheet Reading column take a lower priority, updating only when there is sufficient time in the
acquisition-to-disk task. Therefore, the data seen in the charts may not be an accurate reflection of the data
3-4 Using TempView (16-bit)
11-16-00
TempBook User’s Manual
that is being placed on the disk. As the scan rate is increased, the acquisition-to-disk task will take up more
processor time and the charts will be unable to keep up.
TempView Menu Items
File
The file menu provides four b asic functions:
NewSet all parameters to their startup setting.
SaveSave the existing configuration for later recall.
LoadLoad a saved configuration.
Convert Binary to ASCIIConvert a previously acquired binary file to an ASCII file that can be read by
Convert Binary to PostView BinaryConvert a previously acquired binary file to a binary file t hat can be read by
ExitLeave the TempView program.
Edit
The Edit menu includes the following functions:
Make All Channels InactiveThis command places a "No" in the On field of all of the channels. I f your channel
Make All Channels ActiveThis command places a "Yes" in the On f i el d of all of the channels.
Fill DownWhen multiple cells within a column are selected, this command takes the top-
TempView Display Charts
spreadsheets or other analysis programs.
the PostView application.
scan includes only a few channels, it may be easier to make all of the channels
inactive, then turn on only those few channels that you want.
most selected cell and copies its c ont ents in the selected cel l s below.
TempBook User’s ManualUsing TempView (16-bit) 3-5
Select Device
Window
Acquisition
The Select D evice menu includes the following functions:
Select LPT PortBrings up a dialog box prompting the user to select the LPT port on which the Tem pBook is
Simulated DeviceThis command opens a TempView session but does not attempt t o communicate with
connected. After an LPT port i s selected, TempVi ew opens a new sess i on with t he
TempBook hardware and attempts to communicat e with i t . If the hardware is found, the
main window is opened. If no hardware is found, the us er i s alerted and the application is
opened with the controls disabled. To rec onfigure the LPT port setting and t ry again, click
Select LPT Port under the Select P ort menu. If the TempBook hardware still can not be
identified by the software, exit TempView and try the TEMPTEST utility program.
TempBook hardware. Instead, the appl i cation simulates the interaction between the
software and the hardware. If TempView is presently attached to real TempBook
hardware, this command will close that session.
The Window menu includes the following functions:
PostViewThis command launches an i nstance of the PostV i ew applic at i on.
ChartsThis command displays the charts window.
Analog OutputThi s command displ ays the analog output window.
Digital I/OThis command displays the digital I/O window.
Ctr/TmrThis command displays the counter/timer window.
The Acquisition menu includes the following functions:
GoThis command arms the hardware for an acquisition to di sk. When the t ri gger i s satisfied,
Enable Input
Reading Column
the acquisition begins. All of the interactive I/O controls are disabled while the s ys tem is
armed. No acquisition parameters can be altered at t hi s time.
This command reads the analog inputs and puts the numeric values in the spreadsheet i n
the "Reading" column. I f it is already enabled, this command disables i t .
Charts
The Charts menu of the charts window includes the following function:
Enable ChartsThis command s t arts the scroll chart runni ng. If the chart is already runni ng, this command
stops it.
3-6 Using TempView (16-bit)
11-16-00
TempBook User’s Manual
Using PostView
Introduction
TempView uses a 16-bit version of PostView, an independent program that allows you to view
waveforms recorded by TempView. As the data file is being created, a descriptor file used by
PostView is also created.
4
The program can be started from a toolbar PostView icon, or from a pull-down menu.
PostView can also be started independent of TempView. Multiple sessions of PostView can be
invoked concurrently to view several data files. To view a data file from within PostView,
select Open under the File menu. When PostView is started from TempView, it automatically
opens the selected destination file. To view other files, use Open under the File menu for the
applicable program’s data files. To place channel waveforms into the window, select the
number of charts from 1 to 16 under the Number of Charts menu item. Selecting N number of
charts will automatically place the first N channels in the charts. Use the Channel Select ListBox (Upper right corner of each chart) to view the desired channel. The Channel Select List
Boxes contain labels that were assigned to the recorded channels by TempView.
The following table explains PostView toolbar items and is followed by a description of
PostView Menu items.
TempBook User’s Manual,
11-16-00
PostView Main Window
Using PostView (16-bit) 4-1
PostView Toolbar Items
OpenPrintZoom Out ><
Zoom In <>
AutoScale
Show
Grid
Show
Markers
PostView Toolbar Items
OpenAccesses the Open Data Fi l e window.
PrintSends the PostView chart(s ) to an assigned printer.
Zoom Out
(
)
><
Zoom In
(
)
<>
AutoscaleClicking the A ut o S cale button adjusts the Y-axis labels so that the visible waveform fills 90% of the
Y-axis AdjustThe Y-axis Adjust f i el ds show the chart’s minimum and maximum for visible charts i n the engineering
Show GridPlaces a grid on the chart (s), or removes t he gri d i f already present.
Show MarkersEach chart contains a cross-hair marker that shows the numerical values of t i me and magnitude at its
Trigger Event
Marker
Stop Event
Marker
The Scroll Bar at the bottom of the PostView window (see figure on previous page) al l ows t he waveforms to be scrolled
right or left in two ways:
The Zoom Out button doubles the visible timebase, s howing more of the waveform. For example, if 10
seconds of information is visible, clicking the Zoom Out button will show 20 seconds.
The Zoom In button halves the visible timebase, showing less of the waveform. For example, i f 10
seconds of information is visible, clicking the Zoom In button will show 5 seconds.
chart’s range.
units shown. Clicking the A uto Scale button automatically adjusts the Y-axis A dj ust fields. To adjust
any chart’s minimum or maximum, place the cursor in the desi red Y-axis Adjust field, and type in a
new value.
present location in the waveform . The Markers start out at t he f a r l ef t of every chart, showing the
time and magnitude of the first visible point .
•
Left mouse button allows the user to drag the marker of each chart
•
Right mouse button moves the markers from all
the charts
in unison
independently
.
.
The Options menu contains a function which allows you to turn markers on and off. W hen a check
appears in front of this it em, its associated indicator is on or visible. Selecting the menu item toggles
the indicator (and the check mark) on and off.
The Trigger Event Marker on the time axis shows the l ocation of the trigger point.
The Stop Event Marker on the time axis shows the location of the stop poi nt .
1.When clicked on, the small left and right arrow boxes scroll the waveforms approxim ately 20%.
2.The plain scroll button shows the rel ative location of the vis i bl e regi on of the waveforms and can be
dragged along the scroll bar to any locat i on desired.
4-2 Using PostView (16-bit)
11-16-00
TempBook User’s Manual
PostView Menu Items
The following tables pertain to functions allowed by the pull-down menus.
File
OpenOpens a data file that was created by TempView. PostView automat i cally detects whether the
Print WindowPrints the present PostV i ew window.
ExitExits the File menu.
Number of Charts
1-16After a data file has been opened, the number of desired charts can be selected. You can also
Go To
PercentageAutomatically scrolls to the desired percent of the data file. For example, sel ecting 50% would
Scan NumberAutomati cally scrolls the waveforms so the desired scan number is in view. This menu
TimeAutomatically scrolls the waveforms so the desired time is in view.
Trigger PointAutomatically scrolls the waveforms so the trigger point (t = 0) is in vi ew.
Options
Zoom OutAllows more of a chart(s) to be seen by decreasing the dimensi ons.
Zoom InZooms in on a chart(s), providing more detail to a smaller area of the chart(s).
AutoscaleAutomatically generates a scale, in contrast to manually assigning the scale.
Show Grid
(Ctrl+G)
Show Markers
(Ctrl+K)
Help
ContentsThe initial PostVi ew help screen provides an overview and listing of the help f i l e contents. A
SearchType a word or select one from the Show Topics l i st for quick acces s to help information.
Help on HelpProvides instructions on how to use a Windows Help system.
AboutProvi des the PostView version num ber, for example: Version 1.5.
file contains ASCI I or binary data.
use this menu selection to change the number of charts displayed.
display a waveform segment f rom the middle of the data file.
selection invokes a dial og box which displays the number of scans in the file.
Allows grids to be turned off and on for al l vi sible graphs. W hen a check appears in front of an
item, its indi cator is on or visible.
Allows markers to be turned off and on for all visible graphs. When a check appears in front of
an item, its indi cator is on or visible.
single topic can be selected for quick acces s to help information.
TempBook User’s Manual
11-16-00
Using PostView (16-bit) 4-3
The PostView Timebase
PostView automatically detects the timebase of the data file and shows the time in seconds in the X-axis
labels.
PostView can create files containing multiple timebases, pre-trigger and post-trigger data. In addition, with
TempView you can create files that include post-stop data.
The following comments apply to TempView.
•
Note that the trigger point (t = 0) is not necessarily the first point in the data file.
•
If pre-trigger scans are available, they will be shown prior to the trigger point and labeled with
negative time numbers.
•
If a dual timebase was used when collecting the data, PostView will show a discontinuity in the time
axis when the timebase changes. When a dual timebase is used, the post-trigger scans are collected at
one frequency while the pre-trigger and post-stop scans are collected at another.
•
If post-stop data is available (scans collected after the Stop Event), they are displayed after the Stop
Event marker.
Data File Accessibility
In regard to TempView applications, PostView can access the program files at any time, even during the
acquisition. If PostView reaches the end of a file while TempView is still collecting data, PostView will
automatically display the new data as it becomes available.
For the fastest display of waveforms, select binary data storage.
Note:
4-4 Using PostView (16-bit)
11-16-00
TempBook User’s Manual
Programmer's Guide
This and the following chapters are written for users who wish to write their own programs to control and
acquire data from the TempBook/66. This introductory chapter covers basic TempBook operation from a
programmer’s perspective and the options available for API drivers and language s. Further detai l i s
included through examples in the individual language support chapters, the command reference section, as
well as the chapters on thermocouple linearization and software calibration & zero compensation.
A Programmer’s View of TempBook Operations
The TempBook provides flexible, high-spe e d, multi-channel data acquisition capabilities through the use of
sophisticated analog and digital electronic circuitry. This circuitry allows up to 16 analog input channels to
be read at an aggregate 100 kHz sampling frequency. Each of these channels can be read as a unipolar (0 to
+V) or bipolar (±V) signal in one of 8 input voltage ranges. These ranges are determined by dividing the
standard 0 to 10V unipolar or ±5V bipolar input range by the available gains of ×1, 2, 5, 10, 20, 50, 100, or
200. Additionally, each input can be read as a single-ended or differential signal (selecting differential
limits the number of available channels to 8).
The conversion of these input signals to a digital code is accomplished by a high-performance 12-bit
analog-to-digital converter (ADC). (The resultant digital code can then be converted into a voltage via a
DAC). The output of the ADC is an unsigned value which is leftjustified within a 16-bit data word. In unipolar and bipolar modes,
the output code is related to the input voltage as shown in the table
(12-bit data format and standard input range shown).
The analog section of the TempBook consists of the following: channel select multiplexers, a single-ended /
differential selector, an instrumentation amplifier, programmable gain amplifiers, a unipolar / bipolar
selector, and the 12-bit ADC.
The analog electronics are controlled by a scan-sequencer and control registers. The scan sequencer is
implemented with a 16-bit × 512-location FIFO RAM. Each entry in the scan sequencer contains channel,
gain, and polarity information. The single-ended/differential selection is controlled by a static control
register entry. Once triggered, t he scan sequencer is stepped through at a constant ra te of 100 kHz until all
sequencer entries have been read. At each step, an ADC conversion is performed and the resultant output is
stored in a data buffer implemented with another 16-bit × 512-location FIFO RAM.
A scan is initiated by a trigger from a software command, a TTL input, or an internal pacer clock. In
addition to the source, a mode (one-shot or continuous-trigger) can be selected.
•
In one-shot mode, the scan sequencer is stepped through once (scanned) each time a trigger is
received.
•
In continuous mode, the scan sequencer waits for the selected trigger for the initial scan but
subsequent scans are initiated by the pacer clock.
Note: the selection of one-shot or continuous mode has no effect if the pacer clock is selected as the trigger
source.
TempBook User’s ManualProgrammer's Guide 5-1
The pacer clock is generated by dividing an internal 1 MHz or 100 kHz clock by a programmable 32-bit
counter. The pacer clock source selection is made by an internal jumper setting, and the counter is
implemented by cascading P1 and P2 of an 8254 counter/timer chip.
The scan sequencer must be loaded prior to any data acquisition. When using the high-level data
acquisition routines (as in the
adcex1
example programs), a single command can combine the scan
sequencer setup, trigger selection, pacer clock programming, and data collection. When using the low-level
data acquisition routines (as in
adcex2
and
adcex3
), these operations are broken out into separate
commands.
Note: When connecting thermocouple and other low-level signals in addition to high-level signals, the
low-level signals should be programmed first into the scan sequence with the high-level signals
following in ascending order of signal magnitude.
In addition to the 16 externally available analog input channels, two internal
channels are provided for offset correction and thermocouple cold junction
compensation. The external analog input channels are addressed as channels 0 15, the CJC channel is at address 16, and the internal shorted channel is at 18.
The CJC channel must be included in the scan group when reading
thermocouples. This channel reading is used by the thermocouple linearization
functions. The shorted channel, when read at the same gain as an analog input
channel, can be used to remove offset errors present at run time in the analog
electronics. These topics are covered in greater detail in the ThermocoupleLinearization and Zero Compensation chapters.
Besides zero compensation, software compensation can be used to improve
measurement accuracy. The offset and gain errors present after factory
calibration are characterized and recorded within a unit-specific calibrationconstants file. The calibration-constants file is read by the data acquisition
program at run time. The collected ADC data can then be corrected for offset
and gain errors. This topic is covered in greater detail in the SoftwareCalibration and Zero Compensation chapter.
In addition to analog input, the TempBook provides digital I/O and
counter/timer function. Eight bits each of digital I/O are provided which can be
accessed as register-addressable I/O ports. Additionally, the 8 bits of digital
input can be read as part of the scan group by programming the scan sequencer
with the appropriate channel definition. The digital inputs are then returned
within the ADC data buffer and are right justified within the 16-bit data words.
When the digital inputs are read in this way, the timing relationship between the
trigger event and the analog & digital data is fixed.
A user accessible counter / timer is provided through the P0 p ort of the 8254.
This port can be configured into one of several modes including one-shot and
pulse-train generation as well as event counting. The clock input to this counter
/ timer port can be taken from an external or internal 100 kHz source. These
topics are covered in greater detail in the Command Reference chapter under the
tbkConfCntr0
tbkSetTrig
and
commands.
The flowchart diagram shows the operation of a typical TempBook data
acquisition program.
Data Acquisition
Program Flowchart
5-2 Programmer's GuideTempBook User’s Manual
Loading...
+ 136 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.