Information in this document is subject to change without notice. The software
described in this document is furnished under a license agreement. The software may
be used or copied only in accordance with the terms of the agreement.
SCIENTIFIC SOFTWARE TOOLS, INC. SHALL NOT BE LIABLE FOR ANY
SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES RELATED TO
THE USE OF THIS PRODUCT. THIS PRODUCT IS NOT DESIGNED WITH
COMPONENTS OF A LEVEL OF RELIABILITY SUITABLE FOR USE IN LIFE
SUPPORT OR CRITICAL APPLICATIONS.
This document may not, in whole or in part, be copied, photocopied, reproduced,
translated or reduced to any electronic medium or machine readable form without
prior written consent from Scientific Software Tools, Inc.
Keithley KPCI-1800 Series: Using DriverLINX with Your Hardware
Copyright 1999 by Scientific Software Tools, Inc.
All rights reserved.
First Printing.
SST 23-0399-3
DriverLINX, SSTNET, and LabOBJX are registered trademarks and
DriverLINX/VB is a trademark of Scientific Software Tools, Inc.
MetraByte is a trademark of Keithley Instruments, Inc.
Microsoft and Windows are registered trademarks and Visual C++ and Visual Basic
are trademarks of Microsoft Corporation.
Borland is a registered trademark and Borland C++ and Delphi are trademarks of
Borland International, Inc.
All other brand and product names are trademarks or registered trademarks of their
respective companies.
Contents
Preface 5
Software License and Software Disclaimer of Warranty............................................................5
About DriverLINX.....................................................................................................................7
About This User’s Guide...........................................................................................................7
Conventions Used in This Manual.............................................................................................9
Generating a DriverLINX Configuration Report .....................................................................94
What is in the Report? ...............................................................................................94
How do I Generate the Report?.................................................................................94
Glossary of Terms 95
Preface
Software License and Software Disclaimer of Warranty
This is a legal document whic h is an agreement between you, the Licensee, and Scientific Software Tools, Inc. By opening this
sealed diskette package, Licensee agrees to bec ome bound by the terms of this Agreement, which include the S oftware License and
Software Disclaimer of Warranty.
This Agreement constit utes the complete Agreement between Licensee and Scient ific Software Tools, Inc. If Licensee does not
agree to the terms of this Agreement, do not open the dis kette package. Promptly return the unopened diskette package and the other
items (including written materials , binders or other containers, and hardware, if any) that are part of this product to S cientific Software
Tools, Inc. for a full refund. No ref unds will be given for products that have opened disk packages or missing components.
Licensing Agreement
Copyright. The software and doc umentation is owned by Scient ific Software Tools, Inc. and is prot ected by both United States
copyright laws and int ernational treaty provisions. Scient ific Software Tools, Inc. authoriz es the original purchaser only (Licensee) to
either (a) make one copy of t he software solely for backup or archival purposes, or (b) transf er the software to a si ngle hard disk only.
The written materials acc om panying the software may not be duplicated or copied for any reason.
Trade Secret. Licensee understands and agrees that the sof tware is the propriet ary and confident ial property of Scientifi c Software
Tools, Inc. and a valuable t rade secret. Li censee agrees to us e the software only for the intended us e under this License, and shall not
disclose the soft ware or i t s contents to any third part y.
Copy Restrictions. The Licensee may not modify or trans late the program or related documentation without the prior written
consent of Scientific Software Tools, Inc. All modifications, adapt ations, and me rged portions of the s oftware const itute the s oftware
licensed to t he Licensee, and the terms and conditions of this agreement apply to same. Licens ee may not distribut e copies, inc luding
electronic transfer of c opies, of the modif ied, adapted or m erged software or ac company ing written m aterials to others. Licensee agrees
not to reverse engineer, decompil e or di sassemble any part of the s of tware.
Unauthorized copying of the soft ware, including sof tware that has been m odified, merged, or i ncluded with other s oftware, or of t he
written materials is ex pressly forbidden. Licens ee may not rent, transfer or leas e the software to any third parties. Licens ee agrees to
take all reasonable steps to protect Scientific Software Tools’ software from theft, disclosure or use contrary to the terms of the License.
License. Scientific S oftware Tools, I nc. grants t he Licensee only a non-exclusiv e right to use the serialized copy of the software on
a single terminal connected t o a single computer. The Licens ee may not network the s oftware or use it on more t han one computer or
computer terminal at the s ame time.
Term. This Lic ense is effective until terminated. This License will terminate automatic ally without notice from Scientific Software
Tools, Inc. if Lic ensee fail s to com ply wit h any term or c ondition of this Licens e. The Licensee agrees upon such termination to ret urn or
destroy the written materi als and all copies of t he software. The Licensee may terminate the agreement by ret urning or destroying the
program and documentation and all copies thereof.
Keithley KPCI-1800 Series Preface • 5
Limited Warranty
Scientific Software Tools, I nc. warrants that the software will perform subs tantially in acc ordance with the written mat erials and that
the program disk, instructi onal manuals and reference mat erials are free from defec ts in materials and workmanship under normal us e
for 90 days from the date of receipt. All express or im pl i ed warranties of the software and related materials are limited to 90 days.
Except as specif icall y set f orth herein, t he soft ware and accompany ing writt en materials (includi ng instruc tions f or use) are provided
“as is” without warranty of any kind. Further, Sc ientific Soft ware Tools, Inc. does not warrant , guarantee, or make any represe ntations
regarding the use, or the results of t he use, of the s of tware or writ ten mat erial s in terms of correct ness , acc uracy , reliabil ity, currentness,
or otherwise. The entire risk as to the results and perform ance of the software is as sumed by Licensee and not by Scienti fic Software
Tools, Inc. or its distributors, agents or employees.
EXCEPT AS SET F ORTH HE REI N, THE RE ARE NO OTHER WARRANT IE S, EI THER EXPRESS OR IMPLIED, INCLUDING BUT
NOT LIMITED TO IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, WITH
RESPECT TO THE SOFTWARE, THE ACCOMPANYING WRITTEN MATERIALS, AND ANY ACCOMP ANYING HARDWARE.
Remedy. Scientific S oftware Tools’ ent ire liabilit y and the Licens ee’s ex clus ive remedy shall be, at Sc ientific Sof tware Tools’ opt ion,
either (a) return of the price paid or (b) repair or replac ement of the software or accompanying m aterials. In the event of a defect in
material or workmans hip, the item may be returned wit hin the warranty period to Scientific S oftware Tools for a replacement without
charge, provided the lic ensee previously s ent in the limited warrant y registration board t o Scientific Software Tools, I nc., or can furnis h
proof of the purchase of the program. This remedy is void if failure has resulted from accident, abuse, or misapplication. Any
replacement will be warranted for the remainder of the original warranty period.
NEITHER SCIENTIFIC SOFTWARE TOOLS, INC. NOR ANYONE ELSE WHO HAS BEEN INVOLVED IN THE CREATION,
PRODUCTION, SALE OR DELI VERY OF THIS PRODUCT S HALL BE LIABLE FOR ANY DIRE CT, INDIRECT, CONSEQUENTI AL,
OR INCIDENTAL DAMAGES (INCLUDING DAMAGES FOR LOSS OF BUSINESS PROFITS, BUSINESS INTERRUPTION, LOSS OF
BUSINESS INFORMATION AND THE LIKE) ARISING OUT OF T HE USE OF OR THE INABI LITY TO USE SUCH PRODUCT EVEN
IF SCIENTIFIC SOFTWARE TOOLS HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. BECAUSE SOME
JURISDICTIONS DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL
DAMAGES, OR LIMITATI ONS ON DURATION OF AN IMPLIED WARRANTY, THE ABOVE LIM ITATIONS MAY NOT APPLY TO
LICENSEE.
This agreement is governed by the laws of the Commonwealth of Pennsylvania.
6 • Preface Keithley KPCI-1800 Series
About DriverLINX
Welcome to DriverLINX for Microsoft Windows, the high-performance realtime data-acquisition device drivers for Windows application development.
DriverLINX is a language- and hardware-indepe ndent applic ation programming
interface designed to support hardware manufacturers’ high-speed analog, digital,
and counter/timer data-acquisition boards in Windows. DriverLINX is a multi-user
and multitasking data-acquisition resource manager providing more than 100 services
for foreground and background data acquisition tasks.
Included with your DriverLINX package are the following items:
•The DriverLINX API DLLs and drivers supporting your data-
acquisition hardware
•Analog I/O Panel, a DriverLINX program that verifies the installation
and configuration of DriverLINX for your analog input/output board
and demonstrates several virtual bench-top instruments
•Learn DriverLINX, an interactive learning and demonstration program
for DriverLINX that includes a Digital Storage Oscilloscope
• Source code for the sample programs
• The DriverLINX Application Programming Interface files for your
compiler
• DriverLINX On-line Help System
• DriverLINX 4.0 Installation and Configuration Guide
• DriverLINX Analog I/O Programming Guide
• DriverLINX Technical Reference Manual
• Supplemental Documentation on DriverLINX and your data-acquisition
hardware
About This User’s Guide
The purpose of this manual is to help you quickly learn how to configure and use t he
hardware features of Keithley’s KPCI-1800 Series boards with DriverLINX.
• For help installing and configuring your hardware and Dr iverLINX,
please see the manual that accompanied your hardware and the
DriverLINX 4.0 Installation and Configuration Guide for your version
of Windows.
• For more information on the DriverLINX API, please see the
DriverLINX Technical Reference Manual.
• For additional help programming your board, please examine the source
code examples on the Distribution Disks.
This manual contains the following chapters:
Configuring the KPCI-1800 Series
Shows how to configure the KPCI-1800 Series using the Configure DriverLINX
Device dialog box.
Keithley KPCI-1800 Series Preface • 7
Using the KPCI-1800 Series with DriverLINX
Shows how to set up DriverLINX with the Edit Service Request dialog box to use
KPCI-1800 Series hardware features.
Uninstalling DriverLINX
Describes how to remove DriverLINX hardware drivers and other files.
Troubleshooting
Gives troubleshooting tips for installing, configur ing, and loading D riverLINX
drivers.
8 • Preface Keithley KPCI-1800 Series
Conventions Used in This Manual
The following notational conventions are used in this manual:
• A round bullet (•) identifies itemized lists.
• Numbered lists indicate a step-by-step procedure.
• DriverLINX Application Programming Interface and Windows macro
and function names are set in bold when mentioned in the text.
• DriverLINX indicates the exported function name of the device driver
DLL while DriverLINX indicates the product as a whole.
•DriverLINX Application Programming Interface identifiers, menu
items, and Dialog Box names are italicized when mentioned in the text.
• Italics are used for emphasis.
• Source code and data structure examples are displayed in Courier
typeface and bounded by a box with a single line.
Code
• A box with a double line bound tables of information.
Concept
Tables
• Important concepts and notes are printed in the left margin.
Keithley KPCI-1800 Series Preface • 9
Configuring the KPCI-1800 Series
Introduction
The installation program provides general instructions for installing and configuring
DriverLINX. This manual explains the steps and special features that apply to
Keithley’s KPCI-1800 Series boards.
Windows NT
Installing and configuring DriverLINX for a Keithley KPCI-1800 Series board
requires three steps:
1. Install DriverLINX. Follow the instructions given by the installation
program. The Read Me First instructions explain the components and
drivers you can install.
2. Configure DriverLINX. This creates a Logical Device, which stores
configuration information for your board. See “Configure Dri verLINX
Device Dialog” on page 11 for configuration options specific to a
Keithley KPCI-1800 Series model.
3. Install your KPCI-1800 hardware, read and follow the instructions in
your hardware manual.
After configuring DriverLINX, instal l ing your board and restarting Windows, reopen
the DriverLINX Configuration Panel to make sure that DriverLINX loaded the
Logical Device for your board. If the Logical Device is not loaded, the Event Log
may have a message from the driver that explains why. You can check the Event Log
using the DriverLINX Event Viewer on the Windows Start Menu.
Under Windows NT 4.0, a Logical Device may not load because the operating
system does not always configure Plug-and-Play PCI devices properly. To work
around this, set your computer’s BIOS to configure Plug-and-Play devi ces before it
starts the operating system. On various computers the BIOS setting is called “Plugand-Play Aware OS – Disabled” or “Plug & Play OS – No”.
Configure DriverLINX Device Dialog
DriverLINX uses a standardized configuration protocol for all data-acquisition
hardware. Configur ation assigns an identi fying device number to a specific KPCI1800 Series board in your computer and allows you to enable or disable bus
mastering.
Keithley KPCI-1800 Series Configuring the KPCI-1800 Series • 11
The installation program automatically starts the DriverLINX Configuration Panel.
To start it now, use the shortcut on the Windows Start Menu or click here
.
When you click the Configure… button on the DriverLINX Configuration Panel,
DriverLINX displays the Configure DriverLINX Device dialog. The dialog has a
page for each subsystem on the Keithley KPCI-1800 Series. The following sections
describe your choices in configuring DriverLINX to work with your board.
12 • Configuring the KPCI-1800 Series Keithley KPCI-1800 Series
Device Subsystem Page
Use the Device subsystem page to tell DriverLINX the model name of your KPCI1800 Series board.
Vendor
Windows NT
Windows 95/98
The Vendor property displays “Keithley Instruments, Inc.” It is a read-only property.
Device
The Device property designates the Logical Device you are configuring. It is a readonly property. To change it, first save (OK) or quit (Cancel) the current
configuration. Then select or create a new Logical Device using the DriverLINX Configuration Panel.
Model
The Model property selects or indicates the hardware model of the board you’re
configuring.
Select one of the following models:
KPCI-1801HC
KPCI-1802HC
Windows 95 automatically determines the model of your board so DriverLINX
disables Model selection.
Board Id
The Board Id property associates this Logical Device with a specific board.
DriverLINX automatically enters the KPCI-1800’s serial number in this field.
DriverLINX use s the board’s ser ial number to uniquely recognize boards if you have
installed multiple boards of the same model into your computer.
Windows NT
Keithley KPCI-1800 Series Configuring the KPCI-1800 Series • 13
Under Windows NT, Board Id is initially blank. DriverLINX will use the Model
setting to match this Logical Device to the first available board and then enter that
board’s serial number.
Windows 95/98
Windows 95/98 automatically determines which board to associate with this Logical
Device. DriverLINX enters the serial number of the board when it starts the
configuration.
Detect
The Detect property enables and disables DriverLINX’s hardware detection and
testing algorithms. For maximum system reliability, always leave this check-box
marked.
Calibrate
The Calibrate property enables and disables hardware auto-calibration. This option is
grayed-out for the KPCI-1800 Series because it does not support automatic
calibration.
Special…
The Special… button displays the following dialog box of KPCI-1800 Series-specific
configuration options:
Bus Mastering
Bus Mastering is a mode that PCI devices use to perform DMA data transfers. The
KPCI-1800 Series can use bus mastering on motherboards that support it. With bus
mastering disabled, the board will operate in interrupt mode when the Service
Request asks for DMA mode. For maximum throughput, enable bus mastering if your
motherboard supports it.
Motherboards compliant with revision 2.1 of the PCI specification support bus
mastering. Almost all newer motherboards support bus mastering but some require
BIOS settings to enable it for a particular PCI slot. Older motherboards may not
support bus mastering at all and may cause the system to hang, risking loss of unwritten disk data and requiring you to reboot. Consult your computer
manufacturer’s documentation to determine if your motherboard supports bus
mastering.
To test bus-mastering, check the Enable Bus Mastering box, click OK as necessary to
exit the DriverLINX Configuration Panel and restart Windows. Close all other
applications, wait until all disk activity stops, then run the DriverLINX AIO Panel. If
the AIO Panel can display an input signal then your motherboard is compatible with
your KPCI-1800 board. As long as your BIOS has enabled bus-mastering for the PCI
slot your board is in, DriverLINX can use DMA mode.
14 • Configuring the KPCI-1800 Series Keithley KPCI-1800 Series
Analog Input Subsystem Page
Use the Analog Input subsystem page to choose between 64 single-ended or 32
differential analog input channels as a default configuration.
Channels
On the KPCI-1800 Series, each Analog Input channel can use single-ended or
differential connections. When configuring the Analog Input Subsystem, you choose
a default configuration for all channels. Applications can use the default
configuration or specify the connection type for each channel it uses. This scheme
supports applications that use KPCI-1800-specific features as well as those that use
only generic features. For programming information, see “Anal og Input Channels” on
page 45.
Range
The analog input ranges for the KPCI-1800 Series are fully software programmable.
DriverLINX grays out this property in the configuration dialog.
Interrupt
Windows automatically determines the interrupt level for the KPCI-1800 board.
DriverLINX disables this property.
DMA
The KPCI-1800 Series does not use DMA channels for direct memory transfers. PCI
devices use bus mastering for DMA. DriverLINX initially disables bus mastering for
your KPCI-1800 board. See “Special…” on page 14 for more information.
Keithley KPCI-1800 Series Configuring the KPCI-1800 Series • 15
Analog Output Subsystem Page
Use the Analog Output subsystem page to set or view the initial output voltages.
Channels
Lists the analog output channels on the board and selects a channel for the Volts and
Initialize properties.
Range
The analog output ranges for the KPCI-1800 Series are fully software programmable.
DriverLINX grays out this property in the configuration dialog.
Volts
The Initialization Value property specifies the analog output value DriverLINX will
write to the selected Logical Channel upon hardware initialization. DriverLINX only
writes this value if you enable the In
itialize check box.
Interrupt
Windows automatically determines the interrupt level for the KPIC-1800 board.
DriverLINX disables this property.
DMA
The KPCI-1800 Series does not use DMA channels for direct memory transfers.
DriverLINX disables this property.
Initialize
Checking the Initialize check box instructs DriverLINX to use the Volts property for
analog output initialization.
16 • Configuring the KPCI-1800 Series Keithley KPCI-1800 Series
For the KPCI-1800 Series,
there are no configurable
options on the Digital Input
subsystem page.
Digital Input Subsystem Page
Channels
The Channels property allows you to select a Logical Channel for configuration or
viewing the channel’s range. The KPCI-1800 Series digital channels have fixed
configurations.
DriverLINX defines the following Logical Channels for the KPCI-1800 Series digital
inputs:
Logical
Channel
0 Standard Digital Input DI 0 … DI 3
1 External Clock XPCLK
2 External Trigger TGIN
DriverLINX Function KPCI-1800 Series
External Connector
Range
The Range property specifies the supported digital input range for the selected
Logical Channel. This is a read-only property.
Interrupt
The KPCI-1800 Series does not use interrupts for the digital input subsystem.
DriverLINX disables this property and displays it as blank.
DMA
The KPCI-1800 Series does not use DMA channels for direct memory transfers.
DriverLINX disables this property.
Configuration Setup
The Configuration Setup property specifies the hardware configuration of the digital
I/O ports. The KPCI-1800 Series has a fixed digital I/O configuration. Therefore,
DriverLINX disables this field.
Keithley KPCI-1800 Series Configuring the KPCI-1800 Series • 17
Initialize
Checking the Initialize check box instructs DriverLINX to use the Configuration
S
etup property to configure the digital I/O ports. The KPCI-1800 Series has a fixed
digital I/O configuration. Therefore, DriverLINX disables this field.
18 • Configuring the KPCI-1800 Series Keithley KPCI-1800 Series
Digital Output Subsystem Page
Use the Digital Output subsystem page to change the default digital output port
initialization values.
Channels
The Channels property allows you to select a Logical Channel for initialization or
viewing the channel’s range . DriverLINX defines the follo wing Logical Channels for
the KPCI-1800 Series digital outputs:
Logical
Channel
0 Standard Digital Output DO 0 … DO 7
DriverLINX Function KPCI-1800 Series
External Connector
Range
The Range property specifies the supported digital output range for the selected
Logical Channel. This is a read-only property.
Interrupt
The KPCI-1800 Series does not use interrupts for the digital output subsystem.
DriverLINX disables this property and displays it as blank.
DMA
The KPCI-1800 Series does not use DMA channels for direct memory transfers.
DriverLINX disables this property.
Initialization Value
The Initialization Value property specifies the digital output value DriverLINX will
write to the selected Logical Channel upon hardware initialization. DriverLINX only
writes this value if you enable the In
Keithley KPCI-1800 Series Configuring the KPCI-1800 Series • 19
itialize check box.
Initialize
Checking the Initialize check box instructs DriverLINX to use the Initialization
V
alue property for digital output port initialization.
Dec
This check box converts the Initialization Value property to decimal.
Hex
This check box converts the Initialization Value property to hexadecimal.
20 • Configuring the KPCI-1800 Series Keithley KPCI-1800 Series
Counter/Timer Subsystem Page
Resolution
The Resolution property specifies the default clock frequency of the master
oscillator. All models have a programmable 10 MHz, 5 MHz, 1 MHz or 100 kHz
clock source for pacing input/output tasks. This setting selects the default frequency.
Applications can use the default or specify a frequency for each task.
Interrupt
Windows automatically determines the interrupt level for the KPCI-1800 board.
DriverLINX disables this property.
Keithley KPCI-1800 Series Configuring the KPCI-1800 Series • 21
Using the KPCI-1800 Series with
DriverLINX
Introduction
See the Analog I /O
Programming Guide for an
overview of DriverLINX
programming.
This chapter shows you how to set up and use KPCI-1800 Series hardware features
with DriverLINX.
The descriptions here use the Edit Service Request dialog for language and API
independence. For the corr ect syntax with the language you’re using, p lease see the
DriverLINX Technical Reference Manuals. For DriverLINX examples in your
programming language, p lease see the sourc e code examples in the subdirectories of
your DriverLINX installation directory or on the original distribution media.
DriverLINX Hardware Model for KPCI-1800 Series
DriverLINX provides a portable, hardware-independent API for data-acquisition
boards while still allowing applications to access unique or proprietary hardware
features of specific products. To achieve this goal, DriverLINX maps a hardwareindependent, or abstract, data-acquisition model onto KPCI-1800 Series hardware
capabilities.
The following sections describe how DriverLINX implements KPCI-1800 Series
hardware features as Subsystems, Modes, Operations, Events, Logical Channels,
Buffers, and Messages.
DriverLINX Subsystems
The KPCI-1800 Series supports the following DriverLINX subsystems:
1. Device—refers to a KPCI-1800 board as a whole.
2. AnalogInput—refers to the analog input channels, clocks, and control
signals.
3. AnalogOutput—refers to the analog output channels, clocks, and
control signals.
4. DigitalInput—refers to the digital input port as well as 1-bit digital
input (TTL) control signals, such as TGIN.
Keithley KPCI-1800 Series Using the KPCI-1800 Series with DriverLINX • 23
5. DigitalOutput—refers to the digital output port.
6. Counter/Timer—refers to the input/output subsystem-specific internal
clock channels for pacing analog input/output.
DriverLINX Modes
Applications use modes in Service Requests to advise DriverLINX on their preferred
hardware data transfer technique. The DriverLINX modes fall into two general
classes:
• Foreground or synchronous modes. The calling application doesn’t
regain control until DriverLINX completes the Service Request.
DriverLINX supports this mode for simple, single value I/O operations
or software housekeeping functions that DriverLINX can complete
without a significant delay.
• Background or asynchronous modes. The calling application regains
control as soon as DriverLINX initiates the task. The calling application
must synchronize with the data-acquisition task using status polling or
DriverLINX’s messages (preferred). DriverLINX supports this mode
for buffered data transfers or for commands that require a significant
time to complete.
DriverLINX supports four modes with the KPCI-1800 Series for its commands
(Service Requests).
• Polled Mode—This is a foreground or synchronous op eration.
DriverLINX supports this mode for simple, single-value I/O operations
that the data-acquisition board can complete without significant delay.
• Interrupt Mode—T his is a background or asynchronous op eration.
DriverLINX transfers data between the computer’s memory and the
data-acquisition board using hardware interrupts and programmed I/O
transfers.
• DMA Mode—This is a backgro und or asynchronous o peration.
DriverLINX programs the data-acquisition board to transfer data
between the computer’s memory and the board.
• Other Mode—This i s a foreground or synchronous operation.
DriverLINX supports this mode for initialization, configuration,
calibration, data conversion, and timebase operations.
24 • Using the KPCI-1800 Series with DriverLINX Keithley KPCI-1800 Series
The following table summarizes the data acquisition modes that DriverLINX
supports for each subsystem with the Keithley KPCI-1800 Series.
Subsystem Polled Interrupt DMA Other
Analog Input
Analog Ou tput
Digital Input
Digital Output
Counter/Timer
Device
√ √ √ √
√ √ √ √
√ √
√ √
KPCI-1800 Series Supported DriverLINX Modes.
√
√
√
√
DriverLINX Operations and Events
Applications construct DriverLINX data-acquisition tasks by combining a small
number of DriverLINX operations and events in many possible ways. The following
table summarizes the operations and events that DriverLINX supports for the
Keithley KPCI-1800 Series. Later sections for each DriverLINX subsystem will
describe the operations and events in more detail.
Keithley KPCI-1800 Series Using the KPCI-1800 Series with DriverLINX • 25
Note: All subsystems allow the MESSAGE operation and the Analog Input
subsystem allows the CONVERT operation, which are not shown in the table.
DriverLINX allows any Mode setting for these operations.
Allowed Operations and Events for KPCI-1800 Series Subsystems and Modes.
26 • Using the KPCI-1800 Series with DriverLINX Keithley KPCI-1800 Series
The following list explains the Event abbreviations in the preceding table:
• null—Null or None Event when a Service Request doesn’t require an
event
• cmd—Command Event when DriverLINX starts or stops a task on
software command
• TC—Terminal Count Event when DriverLINX processes all data
buffers once
• rate—Rate Event specifies how DriverLINX paces or clocks data
transfer
• dig—Digital Event specifies a trigger, clock, or other control signal to
pace, start, or stop a task
Logical Channels
DriverLINX designates the individually addressable hardware channels for each
subsystem as “Logical Channels.” Generally, the zero-based Logical Channel
numbering sequence closely follows the hardware manufacturer’s cha nnel numbering
scheme.
In some cases, however, DriverLINX assigns Logical Channel numbers to hardware
features that users don’t commonly think of as “channels.” For instance, DriverLINX
commonly models external hardware clock input lines, external hardware trigger
input lines, and external interrupt inputs as 1-bit digital Logical Channels. In other
cases, DriverLINX models subsystem-specific features, such as internal pacer clocks,
as members of a more general-purpose set of counter/timer channels.
For a list of DriverLINX assigned Logical Channel numbers, see the notes on each
supported subsystem.
Buffers
Applications usually use data buffers to exchange data between the application and
the data-acquisition hardware. When using data buffers, please note the following
points about DriverLINX’s data buffers:
• DriverLINX supports data-acquisition tasks with 1 to 255 data buffers
per task.
• DriverLINX imposes no size limits on a single buffer, although the
operating system or some hardware products may have size restrictions.
• User applications must allow DriverLINX to allocate all data buffers to
guarantee application portability to different hardware and operating
systems and to insure that the hardware can physically access the buffer
memory.
• User applications usually don’t have concurrent or immediate access to
the in-use data buffer while DriverLINX is executing a data-acquisition
task.
Keithley KPCI-1800 Series Using the KPCI-1800 Series with DriverLINX • 27
Connecting Signals to the KPCI-1800 Series
The Keithley hardware manual describes the data and control signals for the KPCI1800 Series and the connector pinouts for these signals. This section summarizes how
DriverLINX numbers the I/O data signals and how DriverLINX uses the control
connections for external clock, trigger, a nd gating inputs.
Analog Input Subsystem Signals
The Analog Input subsystem has 64 analog inputs and an analog ground. You set the
default subsystem configuration as 32 differential or 64 single-ended channels.
Applications can then use the default configuration or request a specific configuration
for each channel. See “Analog Input Channels” on page 45 for programming
information.
DriverLINX maps these connections to Logical Channels as shown in the following
table:
How DriverLINX uses analog i nput control signals.
28 • Using the KPCI-1800 Series with DriverLINX Keithley KPCI-1800 Series
Analog Output Subsystem Signals
The Analog Output subsystem has 2 analog differential output connections.
DriverLINX maps these connections to Logical Channels as shown in the following
table:
Physical
Channel
0 DAC0IN,DAC0OUT 0
1 DAC1IN, DAC1OUT 1
How DriverLINX maps analog output hardware channels to Logical Channels.
Connector Name Logical
Channel
Digital Input Subsystem Signals
The Digital Input subsystem has one 4-bit digital input port and two control inputs
which DriverLINX models as 1-bit logical digital input ports. DriverLINX maps
these signals to Logical Channels as shown in the following table:
Port Connector Name Logical Channel
4-bit digital input DI 0 … DI 3 0
External clock alias XPCLK 1
External trigger alias TGIN 2
How DriverLINX maps digital input hardware channels to Logical Channel s.
Digital Output Subsystem Signals
The Digital Output subsystem has an 8-bit digital output port. DriverLINX maps
these signals to Logical Channels as shown in the following tables:
Port Connector Name Logical Channel
8-bit digital output DO 0 … DO 7 0
How DriverLINX maps digital output hardware channels to Logical Channel s.
Keithley KPCI-1800 Series Using the KPCI-1800 Series with DriverLINX • 29
Counter/Timer Subsystem Signals
The Counter/Timer subsystem has an external clock source and a gate input that the
board can use with any Logical Channel. DriverLINX maps these signals as shown in
the following table: