Keithley Instruments, Inc. warrants this product to be free from defects in material and workmanship for a period of
1 year from date of shipment.
Keithley Instruments, Inc. warrants the following items for 90 days from the date of shipment: probes, cables,
rechargeable batteries, diskettes, and documentation.
During the warranty period, we will, at our option, either repair or replace any product that proves to be defective.
To exercise this warranty, write or call your local Keithley Instruments representative, or contact
Keithley Instruments headquarters in Cleveland, Ohio. You will be given prompt assistance and return instructions.
Send the product, transportation prepaid, to the indicated service facility. Repairs will be made and the product
returned, transportation prepaid. Repaired or replaced products are warranted for the balance of the original
warranty period, or at least 90 days.
LIMITATION OF WARRANTY
This warranty does not apply to defects resulting from product modification without Keithley Instruments’ express
written consent, or misuse of any product or part. This warranty also does not apply to fuses, software,
non-rechargeable batteries, damage from battery leakage, or problems arising from normal wear or failure to follow
instructions.
THIS WARRANTY IS IN LIEU OF ALL OTHER WARRANTIES, EXPRESSED OR IMPLIED, INCLUDING ANY
IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE. THE REMEDIES
PROVIDED HEREIN ARE BUYER’S SOLE AND EXCLUSIVE REMEDIES.
NEITHER KEITHLEY INSTRUMENTS, INC. NOR ANY OF ITS EMPLOYEES SHALL BE LIABLE FOR ANY
DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OF
ITS INSTRUMENTS AND SOFTWARE EVEN IF KEITHLEY INSTRUMENTS, INC., HAS BEEN ADVISED IN
ADVANCE OF THE POSSIBILITY OF SUCH DAMAGES. SUCH EXCLUDED DAMAGES SHALL INCLUDE, BUT
ARE NOT LIMITED TO: COSTS OF REMOVAL AND INSTALLATION, LOSSES SUSTAINED AS THE RESULT
OF INJURY TO ANY PERSON, OR DAMAGE TO PROPERTY.
A G R E A T E R M E A S U R E O F C O N F I D E N C E
Manual Print HistoryKPXI High Speed Digitizer Module User’s Manual
Manual Print History
The print history shown below lists the printing dates of all Revisions and Addenda created for this
manual. The Revision Level letter increases alphabetically as the manual undergoes subsequent
updates. Addenda, which are released between Revisions, contain important change information that
the user should incorporate immediately into the manual. Addenda are numbered sequentially. When a
new Revision is created, all Addenda associated with the previous Revision of the manual are
incorporated into the new Revision of the manual. Each new Revision includes a revised copy of this
print history page.
Revision A (Document Number KPXI-AI-900-01) ............................................... January 2007
All Keithley Instruments product names are trademarks or registered trademarks of Keithley Instruments, Inc.
Other brand names are trademarks or registered trademarks of their respective holders.
KPXI-AI-900-01 Rev. A / January 2007
The following safety precautions should be observed before using this product and any associated instrumentation. Although
some instruments and accessories would normally be used with non-hazardous voltages, there are situations where hazardous
conditions may be present.
This product is intended for use by qualified personnel who recognize shock hazards and are familiar with the safety precautions
required to avoid possible injury. Read and follow all installation, operation, and maintenance information carefully before using
the product. Refer to the manual for complete product specifications.
If the product is used in a manner not specified, the protection provided by the product may be impaired.
The types of product users are:
Responsible body is the individual or group responsible for the use and maintenance of equipment, for ensuring that the
equipment is operated within its specifications and operating limits, and for ensuring that operators are adequately trained.
Operators use the product for its intended function. They must be trained in electrical safety procedures and proper use of the
instrument. They must be protected from electric shock and contact with hazardous live circuits.
Maintenance personnel perform routine procedures on the product to keep it operating properly, for example, setting the line
voltage or replacing consumable materials. Maintenance procedures are described in the manual. The procedures explicitly state
if the operator may perform them. Otherwise, they should be performed only by service personnel.
Safety Precautions
Service personnel are trained to work on live circuits, and perform safe installations and repairs of products. Only properly
trained service personnel may perform installation and service procedures.
Keithley Instruments products are designed for use with electrical signals that are rated Measurement Category I and
Measurement Category II, as described in the International Electrotechnical Commission (IEC) Standard IEC 60664. Most
measurement, control, and data I/O signals are Measurement Category I and must not be directly connected to mains voltage or
to voltage sources with high transient over-voltages. Measurement Category II connections require protection for high transient
over-voltages often associated with local AC mains connections. Assume all measurement, control, and data I/O connections are
for connection to Category I sources unless otherwise marked or described in the Manual.
Exercise extreme caution when a shock hazard is present. Lethal voltage may be present on cable connector jacks or test
fixtures. The American National Standards Institute (ANSI) states that a shock hazard exists when voltage levels greater than
30V RMS, 42.4V peak, or 60VDC are present. A good safety practice is to expect that hazardous voltage is present in any
unknown circuit before measuring.
Operators of this product must be protected from electric shock at all times. The responsible body must ensure that operators
are prevented access and/or insulated from every connection point. In some cases, connections must be exposed to potential
human contact. Product operators in these circumstances must be trained to protect themselves from the risk of electric shock.
If the circuit is capable of operating at or above 1000 volts, no conductive part of the circuit may be exposed.
Do not connect switching cards directly to unlimited power circuits. They are intended to be used with impedance limited sources.
NEVER connect switching cards directly to AC mains. When connecting sources to switching cards, install protective devices to
limit fault current and voltage to the card.
Before operating an instrument, make sure the line cord is connected to a properly grounded power receptacle. Inspect the
connecting cables, test leads, and jumpers for possible wear, cracks, or breaks before each use.
12/06
When installing equipment where access to the main power cord is restricted, such as rack mounting, a separate main input
power disconnect device must be provided, in close proximity to the equipment and within easy reach of the operator.
For maximum safety, do not touch the product, test cables, or any other instruments while power is applied to the circuit under
test. ALWAYS remove power from the entire test system and discharge any capacitors before: connecting or disconnecting
cables or jumpers, installing or removing switching cards, or making internal changes, such as installing or removing jumpers.
Do not touch any object that could provide a current path to the common side of the circuit under test or power line (earth) ground.
Always make measurements with dry hands while standing on a dry, insulated surface capable of withstanding the voltage being
measured.
The instrument and accessories must be used in accordance with its specifications and operating instructions or the safety of the
equipment may be impaired.
Do not exceed the maximum signal levels of the instruments and accessories, as defined in the specifications and operating
information, and as shown on the instrument or test fixture panels, or switching card.
When fuses are used in a product, replace with same type and rating for continued protection against fire hazard.
Chassis connections must only be used as shield connections for measuring circuits, NOT as safety earth ground connections.
If you are using a test fixture, keep the lid closed while power is applied to the device under test. Safe operation requires the use
of a lid interlock.
If a screw is present, connect it to safety earth ground using the wire recommended in the user documentation.
!
The symbol on an instrument indicates that the user should refer to the operating instructions located in the manual.
The symbol on an instrument shows that it can source or measure 1000 volts or more, including the combined effect of
normal and common mode voltages. Use standard safety precautions to avoid personal contact with these voltages.
The symbol on an instrument shows that the surface may be hot. Avoid personal contact to prevent burns.
The symbol indicates a connection terminal to the equipment frame.
The WARNING heading in a manual explains dangers that might result in personal injury or death. Always read the associated
information very carefully before performing the indicated procedure.
The CAUTION heading in a manual explains hazards that could damage the instrument. Such damage may invalidate the
warranty.
Instrumentation and accessories shall not be connected to humans.
Before performing any maintenance, disconnect the line cord and all test cables.
To maintain protection from electric shock and fire, replacement components in mains circuits, including the power transformer,
test leads, and input jacks, must be purchased from Keithley Instruments. Standard fuses, with applicable national safety
approvals, may be used if the rating and type are the same. Other components that are not safety related may be purchased
from other suppliers as long as they are equivalent to the original component. (Note that selected parts should be purchased only
through Keithley Instruments to maintain accuracy and functionality of the product.) If you are unsure about the applicability of a
replacement component, call a Keithley Instruments office for information.
To clean an instrument, use a damp cloth or mild, water based cleaner. Clean the exterior of the instrument only. Do not apply
cleaner directly to the instrument or allow liquids to enter or spill on the instrument. Products that consist of a circuit board with
no case or chassis (e.g., data acquisition board for installation into a computer) should never require cleaning if handled
according to instructions. If the board becomes contaminated and operation is affected, the board should be returned to the
factory for proper cleaning/servicing.
Section 1: IntroductionKPXI High Speed Digitizer Module User’s Manual
Introduction
The Keithley Instruments Model KPXI-AI-2-65M is a 65MS/s, PXI digitizer with 14 bit resolution
and a deep onboard memory buffer of 512 MB that features flexible input configurations, including
programmable input ranges and user-selectable input impedance. With deep onboard acquisition
memory, the Model KPXI-AI-2-65M is not limited by the PCI’s 132MB/s bandwidth, and can record
waveforms for extended periods of time. The Model KPXI-AI-2-65M is ideal for high-speed
waveform capturing such as radar, ultrasound, software radio, and other signal digitizing
applications needing large amounts of memory for data storage. Model KPXI-AI-2-65M uses the
PXI trigger bus to send and receive trigger and timebase signals to and from other devices. In
additional, the Model KPXI-AI-2-65M can phase-lock the reference clock from the PXI backplane
or from an external connector for better synchronization capabilities.
This section gives an overview of the Model KPXI-AI-2-65M high speed digitizer.
Safety symbols and terms
The following symbols and terms may be found on the KPXI-Isolated DIO series module or used in
this manual.
The symbol indicates that the user should refer to the operating instructions located in the
!
manual.
Applications
Features
The symbol shows that high voltage may be present on the terminal(s). Use standard safety
precautions to avoid personal contact with these voltages.
The symbol on an instrument shows that the surface may be hot. Avoid personal contact to
prevent burns.
The WARNING heading used in this manual explains dangers that might result in personal injury
or death. Always read the associated information very carefully before performing the indicated
procedure.
The CAUTION heading used in this manual explains hazards that could damage the unit. Such
damage may invalidate the warranty.
•Software Radio / Wireless Communication
•Radar / Sonar / Lidar
•Ultrasound
•Imaging
•Military
•Semiconductor device high speed signal verification
•Dynamic signal analysis
•PXI specifications Rev. 2.1 compliant
•3U Eurocard form factor, CompactPCI compliant (PICMG 2.0 R3.0)
•14-bit A/D resolution
•Up to 60MS/s sampling rate per channel with internal timebase
•Up to 65MS/s sampling rate per channel with external timebase
•Up to 130MS/s sampling rate using alternating mode for single-channel acquisition
•2-CH simultaneous-sampled single-ended analog inputs
1-2Return to Section TopicsKPXI-AI-900-01 Rev. A / January 2007
KPXI High Speed Digitizer Module User’s ManualSection 1: Introduction
•Programmable input ranges of ±1V and ±5V
•User-selectable (via solder point) input impedance of 50Ω or high input impedance
•>30MHz -3dB bandwidth
•512MB on-board SODIMM SDRAM
•2-CH synchronous digital inputs
•Scatter-gather DMA data transfers
•Analog and digital triggering
•Full auto-calibration
•Multiple modules synchronization through PXI trigger bus
•On-board phase-lock loop circuit
Specifications
Refer to the product data sheet for updated KPXI-AI-2-65M high-speed PXI digitizer
specifications. Check the Keithley Instruments website at www.keithley.com for the latest updates
to the specifications. See below for
General Specifications
General Specifications.
Table 1-1
General Specifications
Dimensions
Operating
temperature
Storage temperature
Humidity
PCI signaling
environment
I/O Connector
Single 3U PXI module, 100mm by 160mm
0°C to 50ºC (Operating)
-20ºC to 80ºC
5% to 95% non-condensing
Supports a 32-bit 3.3V or 5V PCI bus
- BNC x 2 for analog inputs (CH0 & CH1)
- SMB x 4 for external timebase (CLK IN),
- external digital trigger (TRG IO)
- synchronous digital input 0 & 1 (SDI0, SDI1)
Table 1-2
Typical power requirements
Power Rail Current (mA)
5V900
12V305
3.3V500
KPXI-AI-900-01 Rev. A / January 2007Return to Section Topics1-3
Section 1: IntroductionKPXI High Speed Digitizer Module User’s Manual
Unpacking and inspection
Inspection for damage
CAUTIONYour Model KPXI-AI-2-65M module contains electro-static sensitive
components that can be easily be damaged by static electricity.
Therefore, handle the card on a grounded anti-static mat. The operator should
be wearing an anti-static wristband, grounded at the same point as the
anti-static mat.
The Model KPXI-AI-2-65M high-speed PXI digitizer module was carefully inspected electrically
and mechanically before shipment.
Inspect the module carton for obvious damages. Shipping and handling may damage the module.
Make sure there are no shipping and handling damages on the module’s carton before continuing.
After opening the module carton, extract the system module and place it only on a grounded antistatic surface with component side up. Save the original packing carton for possible future
shipment.
Again, inspect the module for damages. Report any damage to the shipping agent immediately.
Shipment contents
The following items are included with every Model KPXI-AI-2-65M high-speed PXI digitizer module
order:
A CD-ROM containing this User’s Manual and required software is included with each
Model KPXI-AI-2-65M high-speed PXI digitizer module order. If a hardcopy of the User’s Manual is
required, you can order the Manual Package (Keithley Instruments Part Number
KPXI-AI-900-01). The Manual Package includes an instruction manual and any pertinent addenda.
Always check the Keithley Instruments’ website at www.keithley.com for the latest revision of the
manual. The latest manual can be downloaded (in PDF format) from the website.
Repacking for shipment
Should it become necessary to return the Model KPXI General Purpose DIO series module for
repair, carefully pack the unit in its original packing carton or the equivalent, and follow these
instructions:
•Call Keithley Instruments’ repair department at 1-888-KEITHLEY (1-888-534-8453) for a
Return Material Authorization (RMA) number.
•Let the repair department know the warranty status of the Model KPXI-AI-2-65M
high-speed PXI digitizer module.
•Write ATTENTION REPAIR DEPARTMENT and the RMA number on the shipping label.
•Complete and include the Service Form located at the back of this manual.
1-4Return to Section TopicsKPXI-AI-900-01 Rev. A / January 2007
KPXI High Speed Digitizer Module User’s ManualSection 1: Introduction
CAUTIONThe boards must be protected from static discharge and physical shock.
Never remove any of the socketed parts except at a static-free workstation.
Use the anti-static bag shipped with the product to handle the board. Wear a
grounded wrist strap when servicing.
Supporting software
Keithley Instruments provides versatile software drivers for users’ different approaches to building
a system.
Programming library
For customers who are writing their own programs, we provide function libraries for many different
operating systems, including:
KDIG-DRVR: includes device drivers and DLL’s for Windows XP® and Windows 2000®. DLL’s are
binary compatible across Windows XP/2000. Therefore, all applications developed with KDIGDRVR are compatible across Windows XP/2000. The developing environment can be VB, VC++,
BC5, or any Windows programming language that allows calls to a DLL. Documentation includes a
User's Guide (refer to
Appendix B: KDIG-DRVR Function Reference).
Appendix A: KDIG-DRVR User’s Guide), and a Function Reference (refer to
KI-DAQ LabVIEW driver
KI-DAQ contains the VI’s, which are used to interface with National Instrument's Lab-VIEW1
software package. The KI-DAQ driver supports Windows XP/2000. The LabVIEW driver is shipped
free with the board. Documentation includes an Interface Guide (refer to
LabVIEW Compatible Interface Guide), and an interface Function Reference (refer to Appendix D:
KIDAQ®-LabVIEW Compatible Function Reference).
The above software drivers are shipped with the board.
Appendix C: KIDAQ®-
1. National Instruments™, NI, and LabVIEW are trademarks of the National Instruments Corporation.
KPXI-AI-900-01 Rev. A / January 2007Return to Section Topics1-5
Section 1: IntroductionKPXI High Speed Digitizer Module User’s Manual
This page left blank intentionally.
1-6Return to Section TopicsKPXI-AI-900-01 Rev. A / January 2007
Section 2: InstallationKPXI High Speed Digitizer Module User’s Manual
Introduction
This section contains information about handling and installing Keithley Instruments’ KIDAQ®
KPXI series cards:
•Handling precautions
•PCI configuration
•Installation
Handling precautions
CAUTIONUse care when handling the KIDAQ
When handling, make sure to observe the following guidelines:
•Only handle the card on a grounded anti-static mat.
•Wear an anti-static wristband that is grounded at the same point as the anti-static mat.
PCI configuration
Plug-and-play
The Interrupt and I/O port address are the variables associated with automatic configuration; the
resource allocation is managed by the system BIOS. Upon system power-on, the internal
configuration registers on the board interact with the BIOS. As a plug-and-play component, the
board requests an interrupt number via its PCI controller. The system BIOS responds with an
interrupt assignment based on the board information and system parameters. These system
parameters are determined by the installed drivers and the hardware load recognized by the
system. If this is the first time a KIDAQ
system, a hardware driver needs to be installed. Refer to
Configuration
®
KPXI series cards. KIDAQ® KPXI series
cards contain electro-static sensitive components that can be easily damaged
by static electricity.
®
KPXI series card will be installed on your Windows®
Installation for detailed information.
Configuration is done on a board-by-board basis for all PXI boards on your system. Configuration
is controlled by the system and software. There is no jumper setting required (or available) for
base address, DMA, and interrupt IRQ.
The configuration is not static, but is subject to change with every boot of the system as new
boards are added or removed.
Troubleshooting
If your system doesn't boot or if you experience erratic operation with your PXI board in place, it's
likely caused by an interrupt conflict (perhaps the BIOS Setup is incorrectly configured). In
general, the solution, is to consult the BIOS documentation that comes with your system.
Installation
Windows will find the new Model KPXI-AI-2-65M module automatically. If this is the first time the
Model KPXI-AI-2-65M is running on your Windows system, please refer to the following step-bystep installation procedures.
2-2Return to Section TopicsKPXI-AI-900-01 Rev. A / January 2007
KPXI High Speed Digitizer Module User’s ManualSection 2: Installation
Step 1. Install driver software
Windows® will find the new module automatically. If this is the first time a KIDAQ® KPXI series
digitizer has been installed, a hardware driver needs to be installed. Use the following installation
procedure as a guide.
NOTEKeithley Instruments controllers are pre-loaded with the necessary drivers.
For Windows XP/2000:
1.Insert the CD shipped with the module. The CD should auto load. From the base menu
install the KDIG-DRVR. This is the hardware driver that recognizes the KPXI series digitizer
modules. If the CD does not auto load run, then under x:\KDIG-DRVR\DISK1\, you will find
SETUP.EXE (x is the drive letter of your CDROM). This will also run the install.
2.When you complete driver installation, turn off the system.
Step 2. Inspect the module
Keeping the “Handling precautions” information in mind, inspect the module for damage. With the
module placed on a firm flat surface, press down on all socketed IC's to make sure that they are
properly seated.
If the module does not pass the inspection, do not proceed with the installation.
CAUTIONDo not apply power to the card if it has been damaged.
Step 3. Check module’s analog input impedance setting
CH0 and CH1 input impedance can be set to 50Ω or 1.5MΩ by soldering gap switches J6 and J7
on the backside of the Model KPXI-AI-2-65M. The location of J6, J7 and the corresponding input
impedance settings are shown in
impedance.
Table 2-1
Location of solder switches
J6CH0 Input ImpedanceJ7CH1 Input Impedance
OpenHigh (1.5MΩ)OpenHigh (1.5MΩ)
Close
(Default)
Low (50Ω)Close
Table 2-1 and Figure 2-1. The default setting is 50Ω input
Low (50Ω)
(Default)
KPXI-AI-900-01 Rev. A / January 2007Return to Section Topics2-3
Section 2: InstallationKPXI High Speed Digitizer Module User’s Manual
Figure 2-1
Location of solder switches
NOTEIf the high input impedance 1.5MΩ is selected, the output impedance of the signal
sources
which is 2µA min. and 25µA max.
should be kept low to avoid the offset voltage caused by the input bias current,
The card is now ready for installation.
Step 4. Install module
Remove power from the system and install the KPXI card in an available slot.
The PXI connectors are rigid and require careful handling when inserted and removed. Improper
handling of modules can easily damage the backplane.
To insert the module into a PXI chassis, use the following procedure as a guide:
1.Turn off the system.
2.Align the module's edge with the card guide in the PXI chassis.
3.Slide the module into the chassis until resistance is felt from the PXI connector.
4.Push the ejector upwards and fully insert the module into the chassis. Once inserted, a
"click" can be heard from the ejector latch.
5.Tighten the screw on the front panel.
6.Turn on the system.
To remove a module from a PXI chassis, use the following procedure as a guide:
1.Turn off the system.
2.Loosen the screw on the front panel.
3.Push the ejector downwards and carefully remove the module from the chassis.
2-4Return to Section TopicsKPXI-AI-900-01 Rev. A / January 2007
KPXI High Speed Digitizer Module User’s ManualSection 2: Installation
Figure 2-2
Typical PXI module installation
Typical PXI
chassis
Card guide
Front panel
screw
Modules edge
Ejector latch
Step 5. Verify installation
When the system is turned on for the first time with a new module present (or a module in a new
slot), Windows Add New Hardware Wizard attempts to locate the correct driver. If it cannot find
the correct driver, even after you have loaded the driver above in Step 1, then force the Add New Hardware Wizard to look in Windows system32 directory. The driver files should be in this
location. If they are not, shutdown the system, remove the module, and restart the installation
process.
When the Add New Hardware Wizard finishes, the window will verify whether or not installation
was successful. To confirm if the module is installed correctly at a later time, use Windows Device Manager. In the Device Manager under KIDAQ Boards, look for a device name matching the
model number of the newly installed board (see
installation is complete. If the board appears with a exclamation point or warning in Device
Manager, the installation was unsuccessful. If unsuccessful, use Device Manager to update the
KPXI-AI-900-01 Rev. A / January 2007Return to Section Topics2-5
Figure 2-3 for an example). If it is found,
Section 2: InstallationKPXI High Speed Digitizer Module User’s Manual
driver or un-install the module, power down the system, remove the module, and attempt
installation again from Step 1.
Figure 2-3
Device manager
2-6Return to Section TopicsKPXI-AI-900-01 Rev. A / January 2007
Section 3: Connection and OperationKPXI High Speed Digitizer Module User’s Manual
Connection
Figure 3-1
Model KPXI-AI-2-65M connectors
Overview
Functional block diagram
The Keithley Instruments Model KPXI-AI-2-65M module is packaged in a Eurocard form factor
compliant with PXI Specifications measuring 160mm in length and 100mm in height (not including
connectors). The connector types and functions are described as follows.
CLK IN: The SMB connector is a 50Ω, AC-coupled external timebase input or external 10MHz
reference clock input.
TRG IO: The SMB connector is for external digital trigger input or output.
SDI0:The SMB connector is for synchronous digital input channel 0.
SDI1:The SMB connector is for synchronous digital input channel 1.
CH0:The BNC connector is for attaching the analog input signal to measure on channel 0.
CH1:The BNC connector is for attaching the analog input signal to measure on channel 1.
The following topics overview the Model KPXI-AI-2-65M main features as shown in the functional
block diagram below.
3-2Return to Section TopicsKPXI-AI-900-01 Rev. A / January 2007
KPXI High Speed Digitizer Module User’s ManualSection 3: Connection and Operation
Figure 3-2
Model KPXI-AI-2-65M functional block diagram
Analog input
The Model KPXI-AI-2-65M features two analog input channels. Signal bandwidth of each channel
exceeds 30MHz, satisfying the Nyquist sampling theory. The input ranges are programmable as
either ±5V or ±1V. The 14-bit A/D resolution makes the Model KPXI-AI-2-65M ideal both for timedomain and frequency-domain applications.
Acquisition system
The Model KPXI-AI-2-65M uses a pair of 65MS/s, 14-bit pipeline ADCs to digitize input signals. It
provides an internal 60MHz timebase for data acquisition. The maximum real-time sampling rate is
60MS/s with internal timebase and up to 65MS/s with external timebase. By using Alternating mode (operating as a single channel), the sampling rate is up to 120MS/s with internal timebase
or 130MS/s with external timebase.
Acquisition memory
The Model KPXI-AI-2-65M contains 512MB of SODIMM SDRAM. Digitized data is stored in the
on-board SDRAM before being transferred to host memory. The Model KPXI-AI-2-65M uses
scatter-gather bus mastering DMA to move data to the host memory. If the data throughput from
the Model KPXI-AI-2-65M is less than the available PCI bandwidth, the Model KPXI-AI-2-65M will
bypass the SDRAM and use the on-board 3k-sample FIFO to achieve real-time transfer directly to
the host memory.
Triggering
The Model KPXI-AI-2-65M features flexible triggering functions, such as analog and digital
triggering. The analog trigger features programmable trigger thresholds on rising or falling edges
of both input channels. The 5V/TTL digital trigger comes from the external SMB connector, PXI
trigger bus or PXI_STAR for synchronizing multiple devices.
Post-trigger, pre-trigger, delay-trigger and middle-trigger modes are available to acquire data
around the trigger event. The Model KPXI-AI-2-65M also features repeated trigger acquisition to
acquire data in multiple segments coming with successive trigger events at extremely short
rearming intervals.
KPXI-AI-900-01 Rev. A / January 2007Return to Section Topics3-3
Section 3: Connection and OperationKPXI High Speed Digitizer Module User’s Manual
Figure 3-3
Model KPXI-AI-2-65M trigger modes
Multiple-instrument synchronization
To achieve multiple-instrument synchronization, Model KPXI-AI-2-65M routes timing and trigger
signals between one or more Model KPXI-AI-2-65M devices by the PXI trigger bus. Users can
assign timebase or trigger signals to a specific PXI trigger bus[0:7] via software, providing better
flexibility for multiple devices synchronization. The Model KPXI-AI-2-65M also adopts PXI_STAR
signal for better synchronization performance. Both trigger signals and timebase clock can be
transferred to 13 peripheral slots through the PXI_STAR signal from a star trigger controller in slot
2 of the PXI chassis.
The reference clock is used in the Model KPXI-AI-2-65M phase-lock loop (PLL) circuit to
synchronize the timebase clock to the reference. The Model KPXI-AI-2-65M can accept a
reference clock the CLK IN on the front panel as well as from PXI_CLK10. The reference clock
should be a fixed and stable 10MHz clock.
Figure 3-4
Model KPXI-AI-2-65M timebase control
Synchronous digital input
The Model KPXI-AI-2-65M features two high-speed digital input lines. User can clock in digital data
synchronous to the analog input timebase clock. Viewing analog and digital correlated operations
is effortless.
3-4Return to Section TopicsKPXI-AI-900-01 Rev. A / January 2007
KPXI High Speed Digitizer Module User’s ManualSection 3: Connection and Operation
Figure 3-5
Model KPXI-AI-2-65M synchronous digital inputs
Auto calibration
The auto-calibration function of the Model KPXI-AI-2-65M is performed with trim DACs to calibrate
offset and gain errors of the analog input channels. Once the calibration process is complete, the
calibration constant will be stored in EEPROM. These values are loaded and used as needed by
the board. Because all the calibration is conducted automatically by software commands, users do
not have to adjust trimpots to calibrate the boards.
Operation
Figure 3-6
Model KPXI-AI-2-65M auto calibration
The operation of the Model KPXI-AI-2-65M is described in this section, including the control and
setting of signal sources, timebase sources, trigger sources, trigger modes, data transfers,
synchronizing multiple modules, and auto-calibration.
KPXI-AI-900-01 Rev. A / January 2007Return to Section Topics3-5
Section 3: Connection and OperationKPXI High Speed Digitizer Module User’s Manual
Detailed block diagram
Figure 3-7
Model KPXI-AI-2-65M block diagram
Analog input signal source control
Number of channels
The Model KPXI-AI-2-65M provides two simultaneously sampled analog input channels in SE
(single ended) connection. Each channel can be enabled individually.
Signal range and input impedance
The available signal input ranges are ±5V or ±1V, which can be set by software. All signals are
DC-coupled. The input impedance for high-speed applications should also be considered. The
selectable input impedance values are 50Ω and 1.5MΩ. Please refer to the paragraph on
Configuration, specifically for information on setting impedance.
A/D Sampling rate and timebase control
The Model KPXI-AI-2-65M supports six timebase sources for analog input conversion:
•Internal 60MHz (Internal VCXO free run mode)
•Internal 60MHz (timebase clock locked to PXI_CLK10)
•Internal 60MHz (timebase clock locked to external reference 10MHz)
•External sine wave
•PXI Trigger Bus[0:7]
•PXI_STAR
The following diagram shows the timebase clock architecture of the Model KPXI-AI-2-65M.
3-6Return to Section TopicsKPXI-AI-900-01 Rev. A / January 2007
KPXI High Speed Digitizer Module User’s ManualSection 3: Connection and Operation
Figure 3-8
Model KPXI-AI-2-65M timebase clock architecture
Once you have chosen the timebase source, you can set a 24-bit counter to divide the timebase to
get the needed sampling rate. The following formula determines the ADC sampling frequency:
Sampling Rate = Timebase Frequency / ADC Clock Divisor
where the ADC Clock Divisor = 1,2,3,4,5… 224-1(maximum)
Internal timebase clock source
The Model KPXI-AI-2-65M has an onboard Voltage Control Crystal Oscillator (VCXO) running at
60MHz. When selects internal timebase clock, you can have free-run mode (none phase-locked)
or PLL mode. In free-run mode, the 60MHz timebase clock is coming from the VCXO which is
controlled by an internal trim DAC. In PLL mode, the onboard 60MHz timebase phase locked to
the reference 10MHz clock. The reference 10MHz clock comes from PXI backplane (PXI_CLK10)
or front panel SMB connector (CLK IN).
External timebase clock source
When users need a specific timebase in some applications that the onboard 60MHz timebase
cannot achieve, a timebase clock from an external device can replace the onboard timebase
clock. In addition, external timebases also provide a method to synchronize the Model KPXI-AI-265M to other measurement modules by distributing/receiving a common clock to/from multiple
modules. The Model KPXI-AI-2-65M can receive an external timebase clock from the front panel
connector (CLK IN), PXI Star trigger or one of the PXI Trigger bus lines.
Users can supply the timebase from the external SMB connector CLK IN, which should be a sine
wave signal. This signal is AC coupled with 50Ω input impedance and the valid input level is from
1 to 2 volts peak-to-peak. Note that the external clock must be continuous for correct ADC
operation because of the pipeline architecture of the ADC.
Model KPXI-AI-2-65M can receive the timebase clock via one of the trigger bus lines by software
selection. The eight PXI trigger bus lines (PXI_TRIG[0:7]) provide intermodule synchronization
and communication.
When Model KPXI-AI-2-65M is plugged into a generic peripheral slot, it can receive timebase
clock from PXI_STAR. The PXI_STAR signal comes from the star trigger controller and is matched
in propagation delay within 1ns and the delay from star trigger slot to a peripheral slot is less than
5ns. According to these hardware features, Model KPXI-AI-2-65M can achieve very good
synchronization performance when using PXI_STAR as the timebase clock source.
PLL reference clock source
The Model KPXI-AI-2-65M is equipped with a phase-locked loop circuit to synchronize the
timebase clock to reference clock. The Model KPXI-AI-2-65M can receive a reference clock from
KPXI-AI-900-01 Rev. A / January 2007Return to Section Topics3-7
Section 3: Connection and OperationKPXI High Speed Digitizer Module User’s Manual
A
A
A
A
the front panel connector (CLK IN) as well as from PXI_CLK10. The reference clock from front
panel connector should be a stable 10MHz clock. The input of CLK IN is AC coupled with 50Ω
input impedance and the valid input level is from 1 to 2 volts peak-to -peak. Note that the reference
clock must be continuous for correct PLL operation. Once the reference clock is disconnected, the
timebase clock will still exist but not be phase locked to the reference clock anymore. When using
the external timebase clock, it’s not valid to lock to the reference clock.
Timebase clock exporting
The Model KPXI-AI-2-65M can export timebase clock to the following two destinations: PXI_STAR
or one of PXI Trigger bus lines. When Model KPXI-AI-2-65M plugged into star trigger controller slot
of the PXI backplane, it can export timebase clock to the other 13 generic peripheral slots. The
Model KPXI-AI-2-65M can also export timebase clock onto one of the eight PXI trigger bus lines.
By software programming, user can pick up a trigger line to transmit timebase clock. These two
features are very useful when synchronizing multiple measurement modules.
Timebase 50% duty cycle restore function
Because the on-board sample-and-hold circuit is in hold mode when the timebase is high and in
track mode when timebase is low, the Model KPXI-AI-2-65M can get the best dynamic response
performance for high-frequency analog inputs when the timebase has a 50% duty cycle. However,
it is often difficult to maintain a 50% duty cycle; especially when driving the timebase with a singleended or sine wave input. To ease the constraint of providing an accurate 50% timebase, the
Model KPXI-AI-2-65M has an optional duty cycle restore function to restore the timebase duty
cycle to 50%, independent of the clock input duty cycle. Low jitter on the rising edge (sampling
edge) of the timebase is preserved while the falling edge is interpolated.
It may be desirable to disable the duty cycle restore function when users use the external
timebase input whose frequency is varied. Once the timebase frequency is changed, over 100
clock cycles may be required for the duty cycle restore circuit to settle to the new speed. Duty
cycle restore function is software programmable when configuring your Model KPXI-AI-2-65M.
130MS/s Sampling using alternating mode
The Model KPXI-AI-2-65M uses two A/D converters, each running at 60MS/s, to provide a dualchannel simultaneous real-time sampling rate of 60MS/s. (65MS/s with external timebase)
For the single-channel acquisition, the two ADCs can be clocked in a alternating mode to achieve
up to 120MS/s sampling (130MS/s with external timebase).
Note that only CH0 can be used in alternating mode. The onboard auto-calibration circuitry allows
the two channels to be matched in order to reduce the image signal.
Figure 3-9
Alternating mode operations
CH0
Input
CH1
Input
mplifier
circuitry
mpli fi er
circuitry
DC
DC
clk
clk
Figure 3-9 illustrates the operation.
Timebase with 180 degree
phase difference
3-8Return to Section TopicsKPXI-AI-900-01 Rev. A / January 2007
KPXI High Speed Digitizer Module User’s ManualSection 3: Connection and Operation
Synchronous digital input
The Model KPXI-AI-2-65M contains two synchronous digital input channels, SDI0 and SDI1.
These two digital input lines can be sampled synchronously with timebase clock for mixed signal
applications. Thus the data transfer can up to 60Mbit/s when using internal 60MHz timebase clock.
These two digital input lines are combined with analog input channels, respectively. Please refer to
Figure 3-10 for the data format of ADC and SDI. When the analog input channel of Model KPXI-AI-
2-65M is configured in alternating mode, only SDI0 is enabled.
Figure 3-10
Synchronous digital input operations
Trigger sources
In addition to the internal software trigger, the Model KPXI-AI-2-65M also supports external analog
triggers, external digital triggers, PXI_STAR triggers and PXI Trigger Bus[0:7]. Users can configure
the trigger source by software. Refer to
Figure 3-11
Model KPXI-AI-2-65M trigger architecture
Software trigger
This trigger mode does not need any external trigger source. The trigger asserts right after
executing specified function calls to begin the operation.
Figure 3-11 for Model KPXI-AI-2-65M trigger architecture.
External analog trigger
Users can choose either CH0 or CH1 as the trigger signal while using external analog trigger
source. The trigger level can be set by software with 8-bit resolution. Please refer to
the ideal transfer characteristic.
KPXI-AI-900-01 Rev. A / January 2007Return to Section Topics3-9
Table 3-1 for
Section 3: Connection and OperationKPXI High Speed Digitizer Module User’s Manual
Table 3-1
Analog trigger ideal transfer characteristic
Trigger Level digital setting
0xFF4.96V0.992V
0xFE4.92V0.984V
--------0x810.04V0.008V
0x8000
0x7F-0.04V-0.008V
--------0x01-4.96V-0.992V
Trigger voltage
(±5V range)
Trigger voltage
(±1V range)
Table 3-1 contains the trigger conditions for analog triggers, which are illustrated in Figure 3-12
and described as follows:
– Positive-slope trigger - The trigger event occurs when the trigger signal (analog input sig-
nal) changes from a voltage that is lower than the specified trigger level to a voltage that
is higher than the specified trigger level.
– Negative-slope trigger - The trigger event occurs when the trigger signal (analog input
signal) changes from a voltage that is higher then the specified trigger level to a voltage
that is lower than the specified trigger level.
Figure 3-12
Analog trigger conditions
External digital trigger
An external digital trigger occurs when a TTL rising edge or a falling edge is detected at the SMB
connector TRG IO on the front panel, as illustrated in
selected by software. Note that the signal level of the external digital trigger signal should be TTLcompatible, and the minimum pulse width is 10ns.
3-10Return to Section TopicsKPXI-AI-900-01 Rev. A / January 2007
Figure 3-13. The trigger polarity can be
KPXI High Speed Digitizer Module User’s ManualSection 3: Connection and Operation
Figure 3-13
External digital trigger input
PXI_STAR Trigger
When users select PXI_STAR as trigger source, the Model KPXI-AI-2-65M can accept a TTLcompatible digital signal as a trigger signal. The trigger occurs when a rising edge or falling edge is
detected at PXI_STAR. User can use software to configure the trigger polarity. The minimum pulse
width requirement of this digital trigger signal is 10ns.
Triggers from PXI Trigger Bus[0:7]
The Model KPXI-AI-2-65M utilizes PXI Trigger Bus[0:7] as System Synchronization Interface
(SSI). Using the interconnected bus provided by PXI Trigger Bus, user can easily synchronize
multiple modules. When configured as input, the Model KPXI-AI-2-65M can accept three different
SSI signals, SSI_TRIG1, SSI_TRIG2 and SSI_START_OP (for more detail about these signals,
please refer to
Trigger Bus[0:7] by software programming.
Trigger modes
The Model KPXI-AI-2-65M provides 5 trigger sources (internal software trigger, external analog
trigger, external digital trigger, PXI_Star trigger, and PXI Trigger Bus[0:7] signals). Users must
select one of them as the source of the trigger event. A trigger event occurs when the specified
condition is detected on the selected trigger source (For example, a rising edge on the external
digital trigger input).
There are 4 trigger modes (pre-trigger, post-trigger, middle-trigger, and delay-trigger) working with
the 5 trigger sources to initiate different data acquisition timing when a trigger event occurs. They
are described as follows.
Post-trigger acquisition
Use post-trigger acquisition when you want to collect data after the trigger event, as illustrated in
Figure 3-14.
Synchronizing multiple devices). Each signal can be routed from one of the PXI
KPXI-AI-900-01 Rev. A / January 2007Return to Section Topics3-11
Section 3: Connection and OperationKPXI High Speed Digitizer Module User’s Manual
Figure 3-14
Post-trigger acquisition
Pre-trigger acquisition
Use pre-trigger acquisition to collect data before the trigger event. The acquisition starts once
specified function calls are executed to begin the pre-trigger operation, and it stops when the
trigger event occurs.
If the trigger event occurs after the specified amount of data has been acquired, the system only
stores the data before the trigger event with the specified amount, as illustrated in
Figure 3-15.
Figure 3-15
Pre-trigger data acquisition
* The trigger event occurs after specified amount of data has been acquired.
However, if the trigger event occurs before the specified amount of data has been acquired, the
system can either stop the acquisition immediately (which implies the stored data will be less then
the amount you specified) or ignore the trigger signal until the specified amount of data has been
acquired (which assures the user can get the specified amount of data). These can be set by
software and are illustrated in
Figure 3-16 and Figure 3-17.
3-12Return to Section TopicsKPXI-AI-900-01 Rev. A / January 2007
KPXI High Speed Digitizer Module User’s ManualSection 3: Connection and Operation
Figure 3-16
Pre-trigger with simultaneous data acquisition**
** The trigger signal is accepted anytime after operation starts.
Figure 3-17
Pre-trigger signal ignored until specified data amount acquired
Middle-trigger acquisition
Use middle-trigger acquisition when you want to collect data before and after the trigger event.
The amount of stored data before and after the trigger can be set individually (M and N), as
illustrated in
KPXI-AI-900-01 Rev. A / January 2007Return to Section Topics3-13
Figure 3-18.
Section 3: Connection and OperationKPXI High Speed Digitizer Module User’s Manual
Figure 3-18
Middle-trigger acquisition
Like pre-trigger mode, the stored data may be less than the amount specified if the trigger event
occurs before the specified amount of data (M) has been acquired. Users can also set by program
to ignore trigger signals until the specified amount of data (M) has been acquired.
Delay-trigger acquisition
Use delay trigger acquisition to delay the data collection after the trigger event, as illustrated in
Figure 3-19. The delay time is specified by a 32-bit counter value so that the maximum delay time
is the period of timebase * (2
Figure 3-19
Delay-trigger acquisition
32
–1), while the minimum delay time is the period of timebase.
Post-trigger or delay-trigger acquisition with re-trigger
Use post-trigger or delay-trigger acquisition with re-trigger function to collect data after several
trigger events, as illustrated in
Model KPXI-AI-2-65M will acquire an additional record each time a trigger is accepted until all the
requested records have been stored in memory. After the initial setup, the process does not
require software intervention.
Figure 3-20. Users can program the number of triggers then the
3-14Return to Section TopicsKPXI-AI-900-01 Rev. A / January 2007
KPXI High Speed Digitizer Module User’s ManualSection 3: Connection and Operation
Figure 3-20
Post-trigger with re-trigger acquisition
Exporting trigger signals
The Model KPXI-AI-2-65M can export trigger signals to the following connectors: TRG IO,
PXI_STAR or PXI Trigger Bus[0:7].
The TRG IO on the front panel can also be programmed to output the trigger signal when the
trigger source is from software trigger, analog trigger, PXI_STAR trigger, or PXI Trigger Bus[0:7].
The timing characteristic is in
Figure 3-21.
Figure 3-21
TRG IO output signal timing
When the Model KPXI-AI-2-65M is plugged into the star trigger controller slot, i.e. slot 2, in a PXI
system, it can export trigger signals to other 13 generic peripheral slots (PXI_STAR0 ~
PXI_STAR12) through the PXI star trigger pin. The trigger signal source can be from software
trigger, external digital trigger signal from TRG IO, analog trigger and PXI Trigger Bus[0:7]. The
output trigger signal timing characteristic is identical to the TRG IO which is shown in
The Model KPXI-AI-2-65M utilizes PXI Trigger Bus[0:7] as System Synchronize Interface. When
configured as output, the Model KPXI-AI-2-65M can output 3 different trigger signals, SSI_TRIG1,
SSI_TRIG2 and SSI_START_OP. User can route these signals to any one of PXI Trigger Bus[0:7]
by software programming.
Data transfers
Since the maximum data throughput on the Model KPXI-AI-2-65M (60MS/s * 2 channels * 2 Bytes/
channel = 240MB/s) is much higher than the 32bit/33MHz PCI-bus bandwidth, samples are
acquired into the onboard SDRAM memory before being transferred to the host computer. Since
the number of stored samples per acquisition is limited by the amount of on-board memory, the
Model KPXI-AI-2-65M contains 512MB of on-board memory in order to meet application
requirements.
TRG IO
T
w
Tw = 2 - 3 TIMEBASE clocks
Figure 3-21.
Once all the data has been stored in the on-board memory, the data will be transferred to the host
computer’s memory through bus-mastering DMA.
In a multi-user or multi-tasking OS, like Microsoft Windows®, it is difficult to allocate a large
continuous memory block to do the DMA transfer. Therefore, the Model KPXI-AI-2-65M provides
the function of scatter /gather DMA to link the non-continuous memory blocks into a linked list so
KPXI-AI-900-01 Rev. A / January 2007Return to Section Topics3-15
Section 3: Connection and OperationKPXI High Speed Digitizer Module User’s Manual
that users can transfer very large amounts of data without being limited by the fragment of small
size memory, as illustrated in
Figure 3-22.
Figure 3-22
Scatter/gather DMA for data transfer
If the data throughput from the Model KPXI-AI-2-65M is less than the available PCI bandwidth (For
example: 20MS/s * 2 channels * 2 Bytes/channel = 80MB/s), the Model KPXI-AI-2-65M also
features on-board 3k-sample FIFO to achieve real-time transfer bypassing the SDRAM, directly to
host memory.
AI data format
Table 3-2 illustrates the ideal transfer characteristics of various input ranges of the Model KPXI-AI-
2-65M. Bit13-0 is the acquired 14-bit A/D data with binary coding format while bit14 is the out-ofrange (OTR) indicator (logic “1” means out-of-range). As described in
earlier in this section, bit 15 is the synchronous digital input data. SDI0 is within the data format of
analog channel 0 while SDI1 is within the data format of analog channel 1.
The eight interconnected lines on PXI backplane named as PXI Trigger Bus[0:7] provide a flexible
interface for multiple modules synchronization. The Model KPXI-AI-2-65M utilizes the PXI Trigger
Bus[0:7] as the System Synchronization Interface (SSI). By providing flexible routing of timebase
clock and trigger signals onto PXI Trigger Bus, the Model KPXI-AI-2-65M makes the
synchronization between multiple modules easy and simple.
3-16Return to Section TopicsKPXI-AI-900-01 Rev. A / January 2007
KPXI High Speed Digitizer Module User’s ManualSection 3: Connection and Operation
The bi-directional SSI I/Os provide a flexible connection between modules, which allows one SSI
master Model KPXI-AI-2-65M to output the SSI signals to other slaves Model KPXI-AI-2-65Ms to
receive the signals.
Table 3-3 lists SSI timing signals and the functionalities. Figure 3-23 shows the
architecture of SSI. Note that it’s not allowed to route different signals onto the same trigger bus
line.
Table 3-3
Summary of SSI timing signals and the corresponding function
SSI timing signal Functionality
SSI_TIMEBASEInput/Output 60MHz timebase signal through SSI
SSI_TRIG1Input/Output the trigger signal through SSI
SSI_TRIG2Input/Output the clocked trigger signal through SSI
SSI_START_OPInput/Output the acquisition start signal in pre-trigger or
middle-trigger mode
Figure 3-23
SSI architecture
SSI_TIMEBASE
As an output, the SSI_TIMEBASE signal outputs the onboard 60MHz LVTTL timebase through
PXI Trigger Bus.
As an input, the Model KPXI-AI-2-65M accepts the SSI_TIMEBASE signal to be the source of
timebase.
SSI_TRIG1
As an output, the SSI_TRIG1 signal reflects the trigger event signal in an acquisition sequence.
Users can use the function SSI_SourceConn() to output the SSI_TRIG1 signal.
As an input, the Model KPXI-AI-2-65M accepts the SSI_TRIG1 signal to be the trigger event
source. The signal is configured in the rising edge-detection mode. When selecting the trigger
sources of the Model KPXI-AI-2-65M, Users can select TRSRC_SSI_1 to set SSI_TRIG1 as the
source of trigger event.
Figure 3-24 and Figure 3-25 show the input and output timing requirements.
KPXI-AI-900-01 Rev. A / January 2007Return to Section Topics3-17
Section 3: Connection and OperationKPXI High Speed Digitizer Module User’s Manual
Figure 3-24
SSI_TRIG1 output signal timing
SS I_ TRIG1
Tw = 2 - 3 TIMEBASE clocks
T
w
Figure 3-25
SSI_TRIG1 input signal timing
T
w
SSI_TRIG1
Tw = 20 ns minimum
SSI_TRIG2 and SSI_START_OP
As an output, the SSI_TRIG2 signal is a clocked SSI_TRIG1 signal by TIMEBASE, as illustrated in
Figure 3-26.
Figure 3-26
SSI_TRIG2 output signal timing
SSI_TRIG1
TIMEBASE
SSI_TRIG2
As an input, the Model KPXI-AI-2-65M accepts the SSI_TRIG2 signal to be the source of a oneclock delayed trigger event. The controller on the Model KPXI-AI-2-65M will then compensate the
one-clock delay if using SSI_TRIG2 as the source of trigger event. The signal is configured in the
rising edge-detection mode.
Figure 3-27
SSI_TRIG2 input signal timing
T
w
Tw = 2 TIMEBASE clocks
T
w
SSI_TRIG2
Tw = 20 ns minimum
As an output, the SSI_START_OP signal reflects the operation start signal in a pre-trigger or
middle-trigger acquisition sequence. Please refer to
Figure 3-17 through Figure 3-18 for the
relationship between the operation start signal and the acquisition sequence.
As an input, the Model KPXI-AI-2-65M accepts the SSI_START_OP signal to be the operation
start signal in a pre-trigger or middle-trigger acquisition sequence. The signal is configured in the
rising edge-detection mode.
Figure 3-28 and Figure 3-29 show the SSI_START_OP signal input
and output timing requirements.
3-18Return to Section TopicsKPXI-AI-900-01 Rev. A / January 2007
KPXI High Speed Digitizer Module User’s ManualSection 3: Connection and Operation
For enabling output operations, users can use the function SSI_SourceConn() to output the
SSI_TRIG2 and SSI_START_OP signals.
For the input operations, users can select TRSRC_SSI_2 to set SSI_TRIG2 and SSI_START_OP
as the source of the trigger event and operation start signal.
Figure 3-28
SSI_START_OP output signal timing
T
w
SSI_START_OP
Tw = 2 TIMEBASE clocks
Figure 3-29
SSI_START_OP input signal timing
T
w
SSI_START_OP
Comparing the different trigger sources from SSI
When selecting TRSRC_SSI_1 as the trigger source input, the signal SSI_TRIG1 reflects the
trigger event signal in an acquisition sequence. However, when synchronizing multiple Model
KPXI-AI-2-65M devices, each Model KPXI-AI-2-65M may recognize the trigger signal with oneclock time difference because the signal is not related to the timebase.
There is another phenomenon if using TRSRC_SSI_2 in pre-trigger and middle-trigger mode. The
operation start signal is generated by a software command so multiple Model KPXI-AI-2-65M
devices don’t start the data acquisition simultaneously, which may result in the fact that the amount
of stored samples are different if the trigger event occurs before the specified amount of data has
been acquired.
When selecting TRSRC_SSI_2 as the trigger source input, SSI_TRIG2 and SSI_START_OP can
achieve better synchronization between multiple Model KPXI-AI-2-65M devices. A clocked
SSI_TRIG2 can guarantee all Model KPXI-AI-2-65M devices recognize the trigger event at the
same clock edge if they use the same timebase. In pre-trigger and middle-trigger mode,
SSI_START_OP guarantees all the Model KPXI-AI-2-65M devices start the data acquisition at the
same time.
Auto-calibration
NOTEBefore auto-calibration procedure starts, please warm up the module for at least 15
minutes.
Tw = 20 ns minimum
By using the auto-calibration feature of the Model KPXI-AI-2-65M, the calibration software can
measure and correct offset and gain errors without any external signal connections, reference
voltages, or measurement devices.
After the auto-calibration procedure finishes, the calibration constants can be saved into the
EEPROM. In addition to the default bank of factory calibration constants, there are three extra
user-modifiable banks in the EERPOM for users to store three sets of calibration constants
according to different environments and re-load the calibration constants when necessary.
KPXI-AI-900-01 Rev. A / January 2007Return to Section Topics3-19
Section 3: Connection and OperationKPXI High Speed Digitizer Module User’s Manual
Because of the fact that errors in measurements will vary with time and temperature, it is
recommended that users re-calibrate the Model KPXI-AI-2-65M when the module is installed in a
new environment.
3-20Return to Section TopicsKPXI-AI-900-01 Rev. A / January 2007
In this appendix:
Top icPage
Appendix A
KDIG-DRVR User’s Guide
Introduction to KDIG-DRVR .............................................................
About the KDIG-DRVR software...................................................
KDIG-DRVR is a software development kit for Keithley Instruments Model KPXI-AI-2-65M PXI
digitizer card. It contains a high performance data acquisition driver for developing custom
applications under Windows XP/2000
The memory and data buffer management capabilities free developers from dealing with complex
low-level command issues. That is, KDIG-DRVR is constructed to provide a simple programming
interface in communication with the Keithley Instruments PXI digitizer. The easy-to-use functions
provided by KDIG-DRVR allow a programmer to use the features of the card in a high level way.
Using KDIG-DRVR also allows you to take advantage of the power and features of Microsoft
Win32 System for your data acquisition applications, including running multiple applications and
using extended memory. Also, using KDIG-DRVR under Visual Basic environment makes it easy
to create custom user interfaces and graphics.
KDIG-DRVR hardware support
Although this software is specifically used for the Keithley Instruments Model KPXI-AI-2-65M
digitizer card, Keithley will periodically upgrade KDIG-DRVR for other Keithley Instruments
digitizer cards. Please refer to the Release Notes for any cards that the current KDIG-DRVR
actually supports.
1
environments.
KDIG-DRVR overview
This section describes the classes of functions in KDIG-DRVR and briefly describes each function.
KDIG-DRVR functions are grouped to the following classes:
•General Configuration Function Group
•Analog Input Function Group
– Analog Input Configuration functions
– One-Shot Analog Input functions
– Continuous Analog Input functions
– Asynchronous Analog Input Monitoring functions
•SSI Function Group
•Calibration Function Group
Fundamentals of building Windows XP/2000 Application
Creating a Windows XP/2000 KDIG-DRVR application using Microsoft Visual C/C++
To create a data acquisition application using KDIG-DRVR and Microsoft Visual C/C++, follow
these steps after entering Visual C/C++:
Step 1: Open the project in which you want to use KDIG-DRVR. This can be a new or existing
project
Step 2: Include header file kdigdrvr.h in the C/C++ source files that call KDIG-DRVR functions.
kdigdrvr.h contains all the function declarations and constants that you can use to
1. Windows XP, Windows 2000, Microsoft Win32s, Microsoft Visual C/Visual C++, and Microsoft Visual Basic
are trademarks of the Microsoft Corporation.
A-2Return to Section TopicsKPXI-AI-900-01 Rev. A / January 2007
develop your data acquisition application. Incorporate the following statement in your
code to include the header file.
#include “kdigdrvr.h”
Step 3: Build your application.
Setting the appropriate compile and link options, then build your application by selecting
the Build command from Build menu (Visual C/C++ 4.0). Remember to link KDIG-DRVR’s
import library, KDIG-DRVR.LIB.
Creating a Windows XP/2000 KDIG-DRVR application using Microsoft Visual Basic
To create a data acquisition application using KDIG-DRVR and Visual Basic, follow these steps
after entering Visual Basic:
Step 1: Open the project in which you want to use KDIG-DRVR. This can be a new or existing
project.
•Open a new project by selecting the New Project command from the File menu. If it is an
existing project, open it by selecting the Open Project command from the File menu. Then
the Open Project dialog box appears.
Figure A-1
Open Project dialog box
•Change directory to the place the project file is located. Double-click the project file name in
the File Name list to load the project.
Step 2: Add file kdigdrvr.bas into the project if this file is not already included in the project. This
file contains all the procedure declarations and constants that you can use to develop your
data acquisition application.
•From the File menu, select the Add File command. The Add File window appears,
displaying a list of files in the current directory.
•Select kdigdrvr.bas from the Files list by double clicking on it. If you can't find this
file in the list, make sure the list is displaying files from the correct directory. By
default, kdigdrvr.bas is installed in C:\Keithley\KDIG-DRVR\INCLUDE.
KPXI-AI-900-01 Rev. A / January 2007Return to Section TopicsA-3
Step 3: Design the interface for the application. To design the interface, you place the desired
elements, such as command button, list box, text box, etc., on the Visual Basic form.
These are standard controls from the Visual Basic Toolbox. To place a control on a form,
you just move pointer to Toolbox, select the desired control and draw it on the form. Or you
can double-click the control icon in the Toolbox to place it on the form.
Step 4: Set properties for the controls. To view the property list, click the desired control and then
choose the Properties command from the View menu or press F4, or you can also click
the Properties button on the toolbar.
Step 5: Write the event code.
The event code defines the action you want to perform when an event occurs. To write the
event code, double-click the desired control or form to view the code module and then add
code you want. You can call the functions that declared in the file kdigdrvr.bas to perform
data acquisition operations.
Step 6: Run your application.
•To run the application, choose Start from the Run menu, or click the Start icon
on the toolbar (you can also press F5).
Step 7: Distribute your application.
Once you have finished a project, you can save the application as an executable (.EXE) file by
using the Make EXE File command on the File menu. And once you have saved your application
as an executable file, you've ready to distribute it. When you distribute your application, remember
also to include the KDIG-DRVR’s DLL and driver files.
Creating a Windows XP/2000 KDIG-DRVR application using Microsoft Visual
Basic.NET
To create a data acquisition application using KDIG-DRVR and Visual Basic.NET, follow these
steps after entering Visual Basic.NET:
Step 1: Open the project in which you want to use KDIG-DRVR. This can be a new or existing
project.
Step 2: Add file KDIGDRVR.VB into the project if this file is not included in the project. This file
contains all the procedure declarations and constants that you can use to develop your
data acquisition application.
A-4Return to Section TopicsKPXI-AI-900-01 Rev. A / January 2007
•From the File menu, select the Add File command. The Add File window dialog box appears (Figure A-3), displaying a list of files in the current directory.
•Select KDIGDRVR.VB from the Files list by double clicking on it. If you can't find
this file in the list, make sure the list is displaying files from the correct directory. By
default, KDIGDRVR.VB is installed in C:\Keithley\KDIG-DRVR\INCLUDE.
Figure A-3
Add Existing Item dialog box
Step 3: Design the interface for the application. To design the interface, you place the desired
elements, such as command button, list box, text box, etc., on the Visual Basic form.
These are standard controls from the Visual Basic Toolbox. To place a control on a form,
you just move pointer to Toolbox, select the desired control and draw it on the form. Or you
can double-click the control icon in the Toolbox to place it on the form.
Step 4: Set properties for the controls. To view the property list, click the desired control and then
choose the Properties command from the View menu or press F4, or you can also click
the Properties button on the toolbar.
Step 5: Write the event code.
The event code defines the action you want to perform when an event occurs. To write the
event code, double-click the desired control or form to view the code module and then add
code you want. You can call the functions that declared in the file kdigdrvr.bas to perform
data acquisition operations.
Step 6: Run your application.
•To run the application, choose Start from the Run menu, or click the Start icon
on the toolbar (you can also press F5).
Step 7: Distribute your application.
Once you have finished a project, you can save the application as an executable (.EXE) file by
using the Make EXE File command on the File menu. And once you have saved your application
as an executable file, you've ready to distribute it. When you distribute your application, remember
also to include the KDIG-DRVR’s DLL and driver files.
KPXI-AI-900-01 Rev. A / January 2007Return to Section TopicsA-5
This section introduces the tools that accompany the KDIG-DRVR package.
KDIG-DRVR configuration utility (configdrv)
configdrv is used for the users to set/modify the allocated buffer sizes of AI. The default location
of this utility is <InstallDir>\Util directory.
Its unit is page KB, i.e. 1024 bytes. Device driver will try to allocate these sizes of memory at
system startup time. The size of initially allocated memory is the maximum memory size that DMA
or Interrupt transfer can be performed. It will induce an unexpected result in that DMA or Interrupt
transfer performed exceeds the initially allocated size.
The “Driver Configuration” window is shown as below.
Figure A-4
Driver configuration window
perform
KPXI-AI-2-65M
AI:
AO:
DI:
DO:
Using configdrv to change the buffer allocated settings of one of the KDIG-DRVR drivers,
select the driver from the Card Type combo box.
For the KPXI-AI-2-65M digitizer card only the AI value is settable. The default is 32769 KB.
32769
0
0
0
KDIG-DRVR data file converter utility (KIDAQCvt)
The data files generated by KDIG-DRVR functions performing continuous data acquisition are
stored in binary format. Since a binary file can’t be read by the normal text editor and can’t be used
to analyze the accessed data by Microsoft Excel
KIDAQCvt to convert the binary file to the file format read easily. The default location of this utility
is <InstallDir>\Util directory. The KIDAQCvt main window is as the following figure:
®
, KDIG-DRVR provides a convenient tool
A-6Return to Section TopicsKPXI-AI-900-01 Rev. A / January 2007
The KIDAQCvt main window includes two frames. The upper frame, Input File frame is used for
the source data file and the lower frame is used for the destination file.
To load the source binary data file, type the binary data file name in File Path field or click
Browser button to select the source file from Input File frame, and then click Load button. As the
file is loaded, the information related to the data file, e.g. data type, data width, AD Range, etc.,
are shown in the corresponding fields in Input File frame, and the default converted data file path
and format are also listed in
Figure A-6.
KPXI-AI-900-01 Rev. A / January 2007Return to Section TopicsA-7
The default destination file with a .cvt extension is located in the same directory as the source
one. To change the default setting, type the file path you wish or click the Browser button from
Output File frame to select the destination file location.
KIDAQCvt provides three types of data format conversions:
Text file with scaled data:
The data in hexadecimal format is scaled to engineering unit (voltage, amp, etc.) according to the
card type, data width and data range and then written to disk in text file format. This type is
available for the data accessed from continuous AI operation only.
Binary file with scaled data:
The data in hexadecimal is scaled to engineering unit (voltage, amp, etc.) according to the card
type, data width and data range and then written to disk in binary file format. This type is available
for the data accessed from continuous AI operation only.
Text file with binary codes:
The data in hexadecimal format or converted to a decimal value is written to disk in text file format.
If the original data includes channel information, the raw value will be handled to get the real data
value. This type is available for the data accessed form continuous AI and DI operations.
The data separator in converted text file is selectable among space, comma and Tab.
If you want to add title/head which includes the card type information at the beginning of file, check
the “Title/Head” box.
After setting the properties (File Path, Format, etc.) related to the converted file, you can push
Start Convert button from the Output File frame to perform the file conversion.
A-8Return to Section TopicsKPXI-AI-900-01 Rev. A / January 2007
In this appendix:
Top icPage
Appendix B
KDIG-DRVR Function Reference
Function description ........................................................................
Data types...................................................................................
Function reference ....................................................................
Status Codes ....................................................................................
AI range codes .................................................................................
AI data format ...................................................................................
DATA file format ...............................................................................
Data Block ..................................................................................
B-2
B-2
B-2
B-31
B-33
B-33
B-33
B-34
B-35
B-35
Appendix B: KDIG-DRVR Function ReferenceKPXI High Speed Digitizer Module User’s Manual
Function description
This section is provided as a function reference. It contains a detailed description of KDIG-DRVR
functions and includes information on KDIG-DRVR
reference (functions are arranged alphabetically in the reference). Syntax is provided for Microsoft
C/C++ and Borland1 C++, as well as Visual Basic.
Data types
Tab l e B - 1 contains data types defined in kdigdrvr.h. These data types are used by the
KDIG-DRVR library. It is recommended these data types are used in your application programs.
Tab l e B - 1 contains data type names, ranges, and the corresponding data types for C/C++,
and Delphi.
NOTEThe data types in Tabl e B - 1 are defined in kdigdrvr.h, but are not defined in
kdigdrvr.bas (for .bas definition files, the table is provided only as a reference).
Tab l e B - 1
Suggested data types
Data types as well as a KDIG-DRVR Function
Type
Type
NameDescriptionRange
U88-bit ASCII character0 to 255unsigned
I1616-bit signed integer-32768 to 32767shortInteger
U1616-bit unsigned integer0 to 65535unsigned
I3232-bit signed integer-2147483648 to
U3232-bit unsigned integer0 to 4294967295unsigned
F3232-bit single-precision
floating-point
F6464-bit double-precision
floating
Function reference
KDIG-DRVR is a software driver for Keithley Instruments Digitizer data acquisition cards. It is a
high performance data acquisition driver for developing custom applications under Windows
environment.
-point
2147483647
-3.402823E38 to
3.402823E38
-1.797683134862315E308
to
1.797683134862315E309
C/C++
(for 32-bit
compiler)
char
short
longLong
long
floatSingle
doubleDouble
Visual Basic
Byte
Not supported by this type,
use the signed integer (I16)
instead
Not supported by this type,
use the signed long integer
(I32) instead
Using KDIG-DRVR also lets you take advantage of the power and features of Microsoft Windows
for your data acquisition applications. These include running multiple applications and using
extended memory. Also, using KDIG-DRVR under a Windows environment makes it easy to
create custom user interfaces and graphics.
1. Borland is a trademark of the Borland Software Corporation.
B-2Return to Section TopicsKPXI-AI-900-01 Rev. A / January 2007
KPXI High Speed Digitizer Module User’s ManualAppendix B: KDIG-DRVR Function Reference
KDIG_AI_AsyncCheck
DescriptionCheck the current status of the asynchronous analog input operation. This
function is supported by the following model: KPXI-AI-2-65M
KDIG_AI_AsyncCheck (ByVal CardNumber As Integer,
Stopped As Byte, AccessCnt As Long) As Integer
ParametersCardNumber: The card id of the card that performs the asynchronous operation.
Stopped:Whether the asynchronous analog input operation has completed. If
Stopped = TRUE, the analog input operation has stopped. Either the number of
A/D conversions indicated in the call that initiated the asynchronous analog input
operation has completed or an error has occurred. If Stopped = FALSE, the
operation is not yet complete. (constants TRUE and FALSE are defined in
kdigdrvr.h)
AccessCnt: In the condition that the trigger acquisition mode is not used,
AccessCnt returns the number of A/D data that has been transferred at the time
calling KDIG_AI_AsyncCheck().
If any trigger mode is enabled and double-buffered mode is enabled, AccessCnt
returns the next position after the position the last A/D data is stored in the circular
buffer at the time calling KDIG_AI_AsyncCheck().
KDIG_AI_AsyncDblBufferHalfReady(ByVal CardNumber As Integer,
HalfReady As Byte, StopFlag As Byte) As Integer
ParametersCardNumber: The card id of the card that performs the asynchronous double-
buffered operation.
HalfReady: Whether the next half buffer of data is available. (constants TRUE
and FALSE are defined in kdigdrvr.h)
StopFlag: Whether the asynchronous analog input operation has completed. If
StopFlag = TRUE, the analog input operation has stopped. If StopFlag = FALSE,
the operation is not yet complete. (constants TRUE and FALSE are defined in
kdigdrvr.h)
DescriptionEnables or disables double-buffered data acquisition mode. The double buffer
mode of continuous A/D conversions is only supported for Post-trigger and
Delay trigger mode operation. This function is supported by the following model:
DescriptionIf the continuous AI function is KDIG_AI_ContReadChannelToFile,
KDIG_AI_ContReadMultiChannelsToFile, and KDIG_AI_ContScanChannelsToFile,
calling this function to log the data of the circular buffer into a disk file. This function is
supported by the following model: KPXI-AI-2-65M
SyntaxMicrosoft C/C++ and Borland C++
I16 KDIG_AI_AsyncDblBufferToFile (U16 CardNumber)
Visual Basic
KDIG_AI_AsyncDblBufferToFile (ByVal CardNumber As Integer)
As Integer
ParametersCardNumber: The card id of the card that double-buffered mode to be set.
KDIG_AI_AsyncReStartNextReady (ByVal CardNumber As Integer,
DaqReady As Byte, StopFlag As Byte, RdyDaqCnt As Byte)
As Integer
ParametersCardNumber: The card id of the card that performs the asynchronous double-
buffered operation.
DaqReady: Whether next data conversion is completed. (constants TRUE and
FALSE are defined in kdigdrvr.h)
StopFlag: Whether the definite count of re-start mode of data conversion is
completed. If StopFlag = TRUE, the analog input operation has stopped. If
StopFlag = FALSE, the operation is not yet complete. (constants TRUE and
FALSE are defined in kdigdrvr.h)
RdyDaqCnt: If re-start count is definite, this argument returns the count of
finished data acquisition. If the re-start count is infinite, this argument returns the
index of the buffer which stores the most recent data
KPXI-AI-900-01 Rev. A / January 2007Return to Section TopicsB-5
Appendix B: KDIG-DRVR Function ReferenceKPXI High Speed Digitizer Module User’s Manual
KDIG_AD_Auto_Calibration_ALL
DescriptionUse this function to calibrate your KDIG-DRVR device. When the function is
called, the device goes into a self-calibration cycle. The function does not return
until the self-calibration is completed. This function is supported by the following
model: KPXI-AI-2-65M
SyntaxMicrosoft C/C++ and Borland C++
I16 KDIG_AD_Auto_Calibration_ALL(U16 CardNumber)
Visual Basic
KDIG_AD_Auto_Calibration_ALL (ByVal wCardNumber As Integer)
As Integer
ParametersCardNumber: The card id of the card that want to perform this operation.
DescriptionInforms KDIG-DRVR library of the AI range selected for the specified channel of
the card with card ID CardNumber. After the function “KDIG_Register_Card” is
called, all of the analog input channels the configured as configured as
AD_B_5_V by default. If you wish to perform the device with the default settings, it
is not necessary to call this function to configure the channel(s) again. Otherwise,
this function has to be called to program the device for the settings you want
before calling function to perform analog input operation. This function is
supported by the following model: KPXI-AI-2-65M
KDIG_AI_CH_Config (ByVal CardNumber As Integer,
ByVal Channel As Integer, ByVal AdRange As Integer)
As Integer
ParametersCardNumber: The card id of the card that want to perform this operation.
Channel:The A/D channel wished to do the channel setting.
Valid values:
KPXI-AI-2-65M: 0 through 1 or All_Channels (-1)
AdRange: The settings for analog input channel. This argument is an integer
expression formed from one or more of the manifest constants defined in
kdigdrvr.h.
We define some constants to represent various A/D input ranges in kdigdrvr.h.
Please refer to
AD_B_5_V.
AI range codes for the valid range values. The default setting is
B-6Return to Section TopicsKPXI-AI-900-01 Rev. A / January 2007
KPXI High Speed Digitizer Module User’s ManualAppendix B: KDIG-DRVR Function Reference
KDIG_AI_Config
DescriptionInforms KDIG-DRVR library of the source of Timebase, conversion source and
sampling mode for the KDIG-DRVR device with card ID CardNumber. After the
function “KDIG_Register_Card” is called, the device is configured as the following
by default:
adDutyRestore: AD duty cycle restore function enabled
Auto reset buffer: Enabled (AutoResetBuf: TRUE)
If you wish to perform the device with the default settings, it is not necessary to
call this function to make the configuration again. Otherwise, this function has to
be called before calling function to perform continuous analog input operation.
This function is supported by the following model: KPXI-AI-2-65M
KDIG_AI_Config (ByVal CardNumber As Integer,
ByVal TimeBase As Integer, ByVal adDutyRestore As Byte,
ByVal ConvSrc As Integer, ByVal doubleEdged As Byte,
ByVal AutoResetBuf As Byte) As Integer
ParametersCardNumber: The card id of the card that want to perform this operation.
TimerBase: The Time Base the device selected. The valid values are:
KDIG_IntTimeBase: Internal timer as the time base
KDIG_ExtTimeBase: External timer as the time base
KDIG_StartTimeBase: The clock source is from PXI_START line
KDIG_SSITimeBase: The timer based on the SSI source
KDIG_PLL_REF_PXICLK10: phase-locked loop (PLL) reference clock source
with an PXI_CLK10 to be the source for the phase-locked loop
KDIG_PLL_REF_EXT10: phase-locked loop (PLL) reference clock source with an
external reference clock to be the source for the phase-locked loop
adDutyRestore:
TRUE: Activate AD duty cycle restore function (default)
FALSE: Deactivate AD duty cycle restore function
KPXI-AI-900-01 Rev. A / January 2007Return to Section TopicsB-7
Appendix B: KDIG-DRVR Function ReferenceKPXI High Speed Digitizer Module User’s Manual
DescriptionThis function reset all the buffers set by function KDIG_AI_ContBufferSetup
for continuous analog input. The function has to be called if the data buffers won’t
be used. This function is supported by the following model: KPXI-AI-2-65M
SyntaxMicrosoft C/C++ and Borland C++
I16 KDIG_AI_ContBufferReset (U16 wCardNumber)
Visual Basic
KDIG_AI_ContBufferReset (ByVal CardNumber As Integer)
As Integer
ParametersCardNumber: The card id of the card that want to perform this operation.
DescriptionThis function performs continuous A/D conversions on the specified analog input
channel at a rate as close to the rate you specified. The double buffer mode of
continuous A/D conversions is only supported for Post-trigger and Delay
trigger mode operation. This function is supported by the following model: KPXI-
KDIG_AI_ContReadChannel (ByVal CardNumber As Integer,
ByVal Channel As Integer, ByVal BufId As Integer,
ByVal ReadScans As Long, ByVal ScanIntrv As Long,
ByVal SampIntrv As Long, ByVal SyncMode As Integer)
As Integer
ParametersCardNumber: The card id of the card that want to perform this operation.
Channel:Analog input channel number
Range:0 through 1 for KPXI-AI-2-65M
BufId:The buffer ID (returned from function
KDIG_AI_ContBufferSetup) of the buffer containing the acquired data. If not
performing two steps of data acquisition (DAQSTEPPED), the size of the buffer
with buffer id of BufId must have a length equal to the value of parameter
ReadScans. If double-buffered mode is enabled, The starting buffer id should be
0. You can ignore this argument. Please refer to
AI data format for the data format
in the buffer with BufId.
ReadScans: If double-buffered mode is disabled, ReadScans is the total number
of scans to be performed. For pre-trigger and middle-trigger mode operation, the
ReadScans must be a multiple of 32. The total data bytes can’t exceed the size of
onboard sdram. For double-buffered acquisition, ReadScans is the size (in
samples) allocated for each channel in the circular buffer. This value must be a
multiple of 2.
NOTEFor pre-trigger and middle trigger mode of AI, the ReadScans has to be equal to
postTrigScans+preTrigScans.
ScanIntrv: The length of the scan interval (that is, the counter value between the
initiation of each scan sequence). The scan rate will be TimeBase/ScanIntrv. The
value of TimeBase depends on the card type.
The valid range of the value is as follows:
KPXI-AI-2-65M: 1 through 16777215
KPXI-AI-900-01 Rev. A / January 2007Return to Section TopicsB-9
Appendix B: KDIG-DRVR Function ReferenceKPXI High Speed Digitizer Module User’s Manual
SampIntrv: The length of the sample interval (that is, the counter value between
each A/D conversion within a scan sequence). The A/D conversion rate will be
TimeBase/SampIntrv. The value of TimeBase depends on the card type.
The valid range of the value is as follows:
KPXI-AI-2-65M: 1 through 16777215
SyncMode: Whether this operation is performed synchronously or
asynchronously. If pre-/middle trigger mode is enabled by calling
KDIG_AI_Trig_Config(), this operation should be performed asynchronously.
Valid values:
SYNCH_OP:
Synchronous A/D conversion, that is, the function does not return until the A/D
operation complete.
DescriptionThis function performs continuous A/D conversions on the specified analog input
channel at a rate as close to the rate you specified and saves the acquired data in
a disk file. The data is written to disk in binary format, with the lower byte first (little
endian). Please refer to
buffer mode of continuous A/D conversions is only supported for Posttrigger and Delay trigger mode operation. This function is supported by the
KDIG_AI_ContReadChannelToFile (ByVal CardNumber As Integer,
ByVal Channel As Integer, ByVal BufId As Integer,
ByVal FileName As String, ByVal ReadScans As Long,
ByVal ScanIntrv As Long, ByVal SampIntrv As Long,
ByVal SyncMode As Integer) As Integer
AI data format for the data file structure. The double
ParametersCardNumber: The card id of the card that want to perform this operation.
Channel:Analog input channel number
Range:0 through 1 for KPXI-AI-2-65M
BufId:The buffer ID (returned from functionKDIG_AI_ContBufferSetup)
of the buffer containing the acquired data. If not performing two steps of data
acquisition (DAQSTEPPED), the size of the buffer with buffer id of BufId must
B-10Return to Section TopicsKPXI-AI-900-01 Rev. A / January 2007
KPXI High Speed Digitizer Module User’s ManualAppendix B: KDIG-DRVR Function Reference
have a length equal to the value of parameter ReadScans. If double-buffered
mode is enabled, The starting buffer id should be 0. You can ignore this argument.
Please refer to
AI data format for the data format in the buffer with BufId.
FileName: Name of data file which stores the acquired data
ReadScans:If double-buffered mode is disabled, the total number of scans to be
performed. The total data bytes can’t exceed the size of onboard sdram. For
double-buffered acquisition, ReadScans is the size (in samples) allocated for
each channel in the circular buffer. This value must be a multiple of 2. For pretrigger and middle-trigger mode operation, the ReadScans must be a multiple of
32.
NOTEFor pre-trigger and middle trigger mode of AI, the ReadScans has to be equal to
postTrigScans+preTrigScans.
ScanIntrv: The length of the scan interval (that is, the counter value between the
initiation of each scan sequence). The scan rate will be TimeBase/ScanIntrv. The
value of TimeBase depends on the card type.
The valid range of the value is as follows:
KPXI-AI-2-65M: 1 through 16777215
SampIntrv: The length of the sample interval (that is, the counter value between
each A/D conversion within a scan sequence). The A/D conversion rate will be
TimeBase/SampIntrv. The value of TimeBase depends on the card type.
The valid range of the value is as follows:
KPXI-AI-2-65M: 1 through 16777215
SyncMode: Whether this operation is performed synchronously or
asynchronously. If pre-/middle trigger mode is enabled by calling
KDIG_AI_Trig_Config(), this operation should be performed asynchronously.
Valid values:
SYNCH_OP:
Synchronous A/D conversion, that is, the function does not return until the A/D
operation complete.
DescriptionThis function performs continuous A/D conversions on the specified analog input
channels at a rate as close to the rate you specified. The double buffer mode of
continuous A/D conversions is only supported for Post-trigger and Delay
KPXI-AI-900-01 Rev. A / January 2007Return to Section TopicsB-11
Appendix B: KDIG-DRVR Function ReferenceKPXI High Speed Digitizer Module User’s Manual
trigger mode operation. This function is supported by the following model: KPXIAI-2-65M
KDIG_AI_ContReadMultiChannels (ByVal CardNumber As Integer,
ByVal NumChans As Integer, chans As Integer,
ByVal BufId As Integer, ByVal ReadScans As Long,
ByVal ScanIntrv As Long, ByVal SampIntrv As Long,
ByVal SyncMode As Integer) As Integer
ParametersCardNumber: The card ID of the card that want to perform this operation.
numChans: The number of analog input channels in the array Chans. The valid
value:
KPXI-AI-2-65M: 1 through 2
Chans:Array of analog input channel numbers.
KPXI-AI-2-65M: numbers in Chans must be within 0 and 1.
BufId:The buffer ID (returned from function
KDIG_AI_ContBufferSetup) of the buffer containing the acquired data. If not
performing two steps of data acquisition (DAQSTEPPED), the size of the buffer
with buffer id of BufId must have a length equal to the value of parameter
ReadScans. If double-buffered mode is enabled, The starting buffer id should be
0. You can ignore this argument. Please refer to
AI data format for the data format
in the buffer with BufId.
ReadScans: If double-buffered mode is disabled, the total number of scans to be
performed. The total data bytes can’t exceed the size of onboard sdram. For
double-buffered acquisition, ReadScans is the size (in samples) allocated for
each channel in the circular buffer. This value must be a multiple of 2. For pretrigger and middle-trigger mode operation, the ReadScans must be a multiple of
32.
NOTEFor pre-trigger and middle trigger mode of AI, the ReadScans has to be equal to
postTrigScans+preTrigScans.
ScanIntrv: The length of the scan interval (that is, the counter value between the
initiation of each scan sequence). The scan rate will be TimeBase/ScanIntrv. The
value of TimeBase depends on the card type.
The valid range of the value is as follows:
KPXI-AI-2-65M: 1 through 16777215
SampIntrv: The length of the sample interval (that is, the counter value between
each A/D conversion within a scan sequence). The A/D conversion rate will be
TimeBase/SampIntrv. The value of TimeBase depends on the card type.
B-12Return to Section TopicsKPXI-AI-900-01 Rev. A / January 2007
KPXI High Speed Digitizer Module User’s ManualAppendix B: KDIG-DRVR Function Reference
The valid range of the value is as follows:
KPXI-AI-2-65M: 1 through 16777215
SyncMode: Whether this operation is performed synchronously or
asynchronously. If pre-/middle trigger mode is enabled by calling
KDIG_AI_Trig_Config(), this operation should be performed
asynchronously.
Valid values:
SYNCH_OP:
Synchronous A/D conversion, that is, the function does not return until the A/D
operation complete.
DescriptionThis function performs continuous A/D conversions on the specified analog input
channels at a rate as close to the rate you specified and saves the acquired data
in a disk file. The data is written to disk in binary format, with the lower byte first
(little endian). Please refer to
data format for the format of the data in the data file. The double buffer mode of
continuous A/D conversions is only supported for Post-trigger and Delay
trigger mode operation. This function is supported by the following model: KPXI-
KDIG_AI_ContScanChannelsToFile (ByVal wCardNumber As
Integer, ByVal wChannel As Integer, ByVal BufId As Integer,
ByVal FileName As String, ByVal ReadScans As Long, ByVal
ScanIntrv As Long, ByVal SampIntrv As Long, ByVal SyncMode
As Integer) As Integer
ParametersCardNumber: The card ID of the card that want to perform this operation.
numChans: The number of analog input channels in the array Chans. The valid
value:
DATA file format for the data file structure and AI
KPXI-AI-2-65M: 1 through 2
Chans:Array of analog input channel numbers.
KPXI-AI-2-65M: numbers in Chans must be within 0 and 1.
KPXI-AI-900-01 Rev. A / January 2007Return to Section TopicsB-13
Appendix B: KDIG-DRVR Function ReferenceKPXI High Speed Digitizer Module User’s Manual
BufId:The buffer ID (returned from function
KDIG_AI_ContBufferSetup) of the buffer containing the acquired data. If not
performing two steps of data acquisition (DAQSTEPPED), the size of the buffer
with buffer id of BufId must have a length equal to the value of parameter
ReadScans. If double-buffered mode is enabled, The starting buffer id should be
0. You can ignore this argument. Please refer to
AI data format for the data format
in the buffer with BufId.
FileName: Name of data file which stores the acquired data
ReadScans: If double-buffered mode is disabled, the total number of scans to be
performed. The total data bytes can’t exceed the size of onboard sdram. For
double-buffered acquisition, ReadScans is the size (in samples) allocated for
each channel in the circular buffer. This value must be a multiple of 2. For pretrigger and middle-trigger mode operation, the ReadScans must be a multiple of
32.
NOTEFor pre-trigger and middle trigger mode of AI, the ReadScans has to be equal to
postTrigScans+preTrigScans.
ScanIntrv: The length of the scan interval (that is, the counter value between the
initiation of each scan sequence). The scan rate will be TimeBase/ScanIntrv. The
value of TimeBase depends on the card type.
The valid range of the value is as follows:
KPXI-AI-2-65M: 1 through 16777215
SampIntrv: The length of the sample interval (that is, the counter value between
each A/D conversion within a scan sequence). The A/D conversion rate will be
TimeBase/SampIntrv. The value of TimeBase depends on the card type.
The valid range of the value is as follows:
KPXI-AI-2-65M: 1 through 16777215
SyncMode: Whether this operation is performed synchronously or
asynchronously. If pre-/middle trigger mode is enabled by calling
KDIG_AI_Trig_Config(), this operation should be performed
asynchronously.
Valid values:
SYNCH_OP:
Synchronous A/D conversion, that is, the function does not return until the A/D
operation complete.
B-14Return to Section TopicsKPXI-AI-900-01 Rev. A / January 2007
KPXI High Speed Digitizer Module User’s ManualAppendix B: KDIG-DRVR Function Reference
KDIG_AI_ContScanChannels
DescriptionThis function performs continuous A/D conversions on the specified continuous
analog input channels at a rate as close to the rate you specified. This function
takes advantage of the hardware simultaneous or auto-scan functionality to
perform multi-channel analog input. The double buffer mode of continuous A/D
conversions is only supported for Post-trigger and Delay trigger mode
operation. This function is supported by the following model: KPXI-AI-2-65M
KDIG_AI_ContScanChannels (ByVal wCardNumber As Integer,
ByVal wChannel As Integer, ByVal BufId As Integer,
ByVal ReadScans As Long, ByVal ScanIntrv As Long,
ByVal SampIntrv As Long, ByVal SyncMode As Integer)
As Integer
ParametersCardNumber: The card ID of the card that want to perform this operation.
Channel:The largest channel number of specified continuous analog input
channel. The channel order for acquiring data is as follows:
KPXI-AI-2-65M: number of Channel must be within 0 and 1. The continuous scan
sequence is ascending and the first one must be zero. For example, 0,
BufId:The buffer ID (returned from function
KDIG_AI_ContBufferSetup) of the buffer containing the acquired data. If not
performing two steps of data acquisition (DAQSTEPPED), the size of the buffer
with buffer id of BufId must have a length equal to the value of parameter
ReadScans. If double-buffered mode is enabled, The starting buffer id should be
0. You can ignore this argument. Please refer to
AI data format for the data format
in the buffer with BufId.
ReadScans: If double-buffered mode is disabled, the total number of scans to be
performed. The total data bytes can’t exceed the size of onboard sdram. For
double-buffered acquisition, ReadScans is the size (in samples) allocated for
each channel in the circular buffer. This value must be a multiple of 2. For pretrigger and middle-trigger mode operation, the ReadScans must be a multiple of
32.
NOTEFor pre-trigger and middle trigger mode of AI, the ReadScans has to be equal to
postTrigScans+preTrigScans.
ScanIntrv: The length of the scan interval (that is, the counter value between the
initiation of each scan sequence). The scan rate will be TimeBase/ScanIntrv. The
value of TimeBase depends on the card type.
The valid range of the value is as follows:
KPXI-AI-2-65M: 1 through 16777215
KPXI-AI-900-01 Rev. A / January 2007Return to Section TopicsB-15
Appendix B: KDIG-DRVR Function ReferenceKPXI High Speed Digitizer Module User’s Manual
SampIntrv: The length of the sample interval (that is, the counter value between
each A/D conversion within a scan sequence). The A/D conversion rate will be
TimeBase/SampIntrv. The value of TimeBase depends on the card type.
The valid range of the value is as follows:
KPXI-AI-2-65M: 1 through 16777215
SyncMode:
Whether this operation is performed synchronously or asynchronously. If pre-/
middle trigger mode is enabled by calling KDIG_AI_Trig_Config(), this
operation should be performed asynchronously.
Valid values:
SYNCH_OP:
Synchronous A/D conversion, that is, the function does not return until the A/D
operation complete.
DescriptionThis function performs continuous A/D conversions on the specified continuous
analog input channels at a rate as close to the rate you specified and saves the
acquired data in a disk file. The data is written to disk in binary format, with the
lower byte first (little endian). Please refer to
structure and Appendix C, AI Data Format for the format of the data in the data
file. This function takes advantage of the hardware simultaneous or auto-scan
functionality to perform multi-channel analog input. The double buffer mode of
continuous A/D conversions is only supported for Post-trigger and Delay
trigger mode operation. This function is supported by the following model: KPXI-
KDIG_AI_ContScanChannelsToFile (
ByVal wCardNumber As Integer, ByVal wChannel As Integer,
ByVal BufId As Integer, ByVal FileName As String,
ByVal ReadScans As Long, ByVal ScanIntrv As Long,
ByVal SampIntrv As Long, ByVal SyncMode As Integer)
As Integer
ParametersCardNumber: The card ID of the card that want to perform this operation.
B-16Return to Section TopicsKPXI-AI-900-01 Rev. A / January 2007
KPXI High Speed Digitizer Module User’s ManualAppendix B: KDIG-DRVR Function Reference
Channel:The largest channel number of specified continuous analog input
channel. The channel order for acquiring data is as follows:
KPXI-AI-2-65M: number of Channel must be within 0 and 1. The continuous scan
sequence is ascending and the first one must be zero. For example, 0, 1.
BufId:The buffer ID (returned from function
KDIG_AI_ContBufferSetup) of the buffer containing the acquired data. If not
performing two steps of data acquisition (DAQSTEPPED), the size of the buffer
with buffer id of BufId must have a length equal to the value of parameter
ReadScans. If double-buffered mode is enabled, The starting buffer id should be
0. You can ignore this argument. Please refer to
AI data format for the data format
in the buffer with BufId.
FileName: Name of data file which stores the acquired data
ReadScans: If double-buffered mode is disabled, the total number of scans to be
performed. The total data bytes can’t exceed the size of onboard sdram. For
double-buffered acquisition, ReadScans is the size (in samples) allocated for
each channel in the circular buffer. This value must be a multiple of 2. For pretrigger and middle-trigger mode operation, the ReadScans must be a multiple of
32.
NOTEFor pre-trigger and middle trigger mode of AI, the ReadScans has to be equal to
postTrigScans+preTrigScans.
ScanIntrv: The length of the scan interval (that is, the counter value between the
initiation of each scan sequence). The scan rate will be TimeBase/ScanIntrv. The
value of TimeBase depends on the card type.
The valid range of the value is as follows:
KPXI-AI-2-65M: 1 through 16777215
SampIntrv: The length of the sample interval (that is, the counter value between
each A/D conversion within a scan sequence). The A/D conversion rate will be
TimeBase/SampIntrv. The value of TimeBase depends on the card type.
The valid range of the value is as follows:
KPXI-AI-2-65M: 1 through 16777215
SyncMode: Whether this operation is performed synchronously or
asynchronously. If pre-/middle trigger mode is enabled by calling
KDIG_AI_Trig_Config(), this operation should be performed
asynchronously.
Valid values:
SYNCH_OP:
Synchronous A/D conversion, that is, the function does not return until the A/D
operation complete.
ASYNCH_OP:
Asynchronous A/D conversion
KPXI-AI-900-01 Rev. A / January 2007Return to Section TopicsB-17
Appendix B: KDIG-DRVR Function ReferenceKPXI High Speed Digitizer Module User’s Manual
DescriptionWhile performing continuous A/D conversions, this function is called to get the A/
D status. Please refer to the manual for your device for the AI status the device
might meet. This function is supported by the following model: KPXI-AI-2-65M
KDIG_AI_ContStatus (ByVal CardNumber As Integer,
Status As Long) As Integer
ParametersCardNumber: The card id of the card that want to perform this operation.
Status:The continuous AI status returned. The description of the parameter
Status for various card types is the following:
KPXI-AI-2-65M:
bit 0 ~ 1: not used
bit 2: '1' indicates trigger signal is ever happened
bit 3: not used
bit 4: '1' indicates M_counter counts to zero status
bit 5: '1' indicates AD duty restore function is enabled
bit 6 ~13: not used
bit 14: '1' indicates SC counter is enabled
bit 15 ~ 17: not used
bit 18: '1' indicates A/D DMA FIFO is empty
bit 19: '1' indicates A/D Pre-FIFO is empty
bit 20: '1' indicates A/D Post-FIFO is empty
bit 21 ~ 31: not used
DescriptionThis function converts the values of an array of acquired binary data from an
continuous A/D conversion call to the actual input voltages. The acquired binary
data in the reading array might include the channel information (please refer to
continuous functions, KDIG_AI_ContReadChannel or
KDIG_AI_ContScanChannels, for the detailed data format); however, The
calculated voltage values in the voltage array returned will not include the channel
message. This function is supported by the following model: KPXI-AI-2-65M
B-18Return to Section TopicsKPXI-AI-900-01 Rev. A / January 2007
KPXI High Speed Digitizer Module User’s ManualAppendix B: KDIG-DRVR Function Reference
Visual Basic
KDIG_AI_ContVScale (ByVal CardNumber As Integer,
ByVal AdRange As Integer, readingArray As Integer,
voltageArray As Double, ByVal count As Long) As Integer
ParametersCardNumber: The card id of the card that want to perform this operation.
AdRange: The analog input range the continuous specified channel is setting.
Please refer to
readingArray: Acquired continuous analog input data array
DescriptionStarts transferring acquired data from on-board SDRAM to the specified buffer.
This function is only valid for two steps of data acquisition. If the buffer has a
length smaller than the total data count, KDIG-DRVR calls
KDIG_AI_DMA_TransferBySize internally to fetch the data stored in on-board
SDRAM. Please refer to the description of the function
KDIG_AI_DMA_TransferBySize for the details. This function is supported by the
following model: KPXI-AI-2-65M
SyntaxMicrosoft C/C++ and Borland C++
Microsoft C/C++ and Borland C++
I16 KDIG_AI_DMA_Transfer (U16 wCardNumber, U16 BufId)
Visual Basic 5
KDIG_AI_DMA_Transfer (ByVal CardNumber As Integer,
ByVal BufId As Integer) As Integer
ParametersCardNumber: The card id of the card that want to be performed this operation.
KPXI-AI-900-01 Rev. A / January 2007Return to Section TopicsB-19
Appendix B: KDIG-DRVR Function ReferenceKPXI High Speed Digitizer Module User’s Manual
BufId:The buffer ID (returned from function KDIG_AI_ContBufferSetup) of
the buffer which will store the data from SDRAM. If the buffer with buffer id of BufId has
a length smaller than the total data count, you have to call this function repeatedly to
fetch the data stored in on-board SDRAM. Please refer to
DescriptionStarts transferring acquired data from on-board SDRAM to the specified buffer.
This function is only valid for two steps of data acquisition.
Since the amount of memory can be locked depends on the system, the driver
may not lock memory as much as you wish. KDIG-DRVR allows the applications
to break the large sized data transfer into several times of smaller data retrievals.
This function is supported by the following model: KPXI-AI-2-65M
The code segment for several smaller size of DMA transfer is as follows:
[Code Segment]
•••
KDIG_AI_Set_Mode (card, DAQSTEPPED, 1); //two steps data acquisition mode enabled
KDIG_AI_ContBufferSetup (card, ai_buf, locksize, &Id); //a small size of buffer locked
KDIG_AI_ContReadChannel (card, 0, Id, readcnt, 1, 1, ASYNCH_OP);
do {
KDIG_AI_ConvertCheck(card, &fStop); // check if DAQ conversion is completed
} while (!fStop);
//DAQ conversion stopped
do {
//smaller size of data transfer
KDIG_AI_DMA_TransferBySize (card, 10, Id, locksize, &numRead, &remains, &complete);
} while(!complete); //check if all the data are read out
KDIG_AI_DMA_TransferBySize (ByVal CardNumber As Integer,
ByVal timeLimit As Single, ByVal BufId As Integer,
ByVal ReadCount As Long, numRead As Long,
dataNotTransferred As Long, complete As Byte) As Integer
ParametersCardNumber: The card id of the card that want to be performed this operation.
timeLimit: time limit (the unit is in second) for the dma transfer operation. The
default value is 1 sec.
BufId:The buffer ID (returned from function
KDIG_AI_ContBufferSetup) of the buffer which will store the data from
SDRAM. If the buffer with buffer id of BufId has a length smaller than the total data
count, you have to call this function repeatedly to fetch the data stored in on-board
SDRAM. Please refer to
AI data format for the data format in the buffer with BufId.
B-20Return to Section TopicsKPXI-AI-900-01 Rev. A / January 2007
KPXI High Speed Digitizer Module User’s ManualAppendix B: KDIG-DRVR Function Reference
ReadCount: The count of data to transfer.
numRead: return the actual count of data transferred.
dataNotTransferred:
return the count of data still remain in on-board SDRAM (not be read out).
complete:
1: no data remains (all of the data in on-board SDRAM have been read out)
0: There are data remaining on SDRAM.
DescriptionControls and notifies the user’s application when a specified DAQ event occurs.
The notification is performed through a user-specified callback function.
For Windows version, the event message will be removed automatically after
calling KDIG_AI_Async_Clear. The event message can also be manually
removed by set the parameter “mode” to be 0. This function is supported by the
following model: KPXI-AI-2-65M
KDIG_AI_EventCallBack (ByVal CardNumber As Integer,
ByVal mode As Integer, ByVal EventType As Integer,
ByVal callbackAddr As Long) As Integer
ParametersCardNumber: The card id of the card that want to be performed this operation.
mode:add or remove the event message.
The valid values:
0: remove
1: add
EventType: event criteria. The valid values are:
DAQEnd: Notification for the completeness of asynchronous analog input
operation
DBEvent: Notification for the next half buffer of data in circular buffer is ready for
transfer
callbackAddr: the address of the user callback function. KDIG-DRVR calls this
function when the specified event occurs. If you wish to remove the event
message, set callbackAddr to 0.
KPXI-AI-900-01 Rev. A / January 2007Return to Section TopicsB-21
Appendix B: KDIG-DRVR Function ReferenceKPXI High Speed Digitizer Module User’s Manual
KDIG_AI_InitialMemoryAllocated
DescriptionThis function returns the available memory size for analog input in the device
driver in argument MemSize. The continuous analog input transfer size can not
exceed this size. This function is supported by the following models:
KPXI-AI-2-65M
DescriptionConfigures advanced mode of continuous AI operation. The advanced modes
include the following:
-Two steps of data acquisition (The 1st step is data acquired and then stored in
SDRAM and the 2nd step is data are transferred from SDRAM to system
memory). After the data are acquired, using KDIG_AI_DMA_Transfer/KDIG_AI_DMA_TransferBySize to fetch the data stored in on-board SDRAM.
-Re-start continuous AI in kernel with single buffer or dual buffers definitely or
indefinitely.
This function is supported by the following model: KPXI-AI-2-65M
KDIG_AI_Set_Mode (ByVal CardNumber As Integer,
ByVal modeCtrl As Integer, ByVal Iter As Integer)
As Integer
ParametersCardNumber: The card id of the card that want to perform this operation.
modeCtrl: The advanced A/D mode.
Valid values:
DAQSTEPPED: two steps of data acquisition (The 1st step is data acquired and
then stored in SDRAM and the 2nd step is data are transferred from SDRAM to
system memory)
RestartEn: re-start continuous AI in kernel is enabled
B-22Return to Section TopicsKPXI-AI-900-01 Rev. A / January 2007
KPXI High Speed Digitizer Module User’s ManualAppendix B: KDIG-DRVR Function Reference
DualBufEn: dual buffers mode is enabled
When two constants are used to form the modeCtrl argument, the constants are
combined with the bitwise-OR operator(|).
Iter: the number of times to start data acquisition. If the value is zero, the data
acquisition will be re-started infinitely
DescriptionInforms KDIG-DRVR library of the trigger source, trigger mode and trigger
properties for the KDIG-DRVR device with card ID CardNumber.
After the function “KDIG_Register_Card” is called, the device is configured as the
following by default:
A/D trigger mode: KDIG_AI_TRGMOD_POST
A/D trigger source: KDIG_AI_TRGSRC_SOFT
A/D trigger polarity: KDIG_AI_TrgNegative
If you wish to perform the device with the default settings, it is not necessary to
call this function to make the configuration again. Otherwise, this function has to
be called before calling function to perform continuous analog input operation.
This function is supported by the following model: KPXI-AI-2-65M
KDIG_AI_Trig_Config (ByVal CardNumber As Integer,
ByVal trigMode As Integer, ByVal TrigSrc As Integer,
ByVal trigPol As Integer, ByVal anaTrigChan As Integer,
ByVal anaTriglevel As Double, ByVal postTrigScans As Long,
ByVal preTrigScans As Long, ByVal trigDelayTicks As Long,
ByVal reTrgCnt As Long) As Integer
ParametersCardNumber: The card id of the card that want to perform this operation.
KPXI-AI-900-01 Rev. A / January 2007Return to Section TopicsB-23
Appendix B: KDIG-DRVR Function ReferenceKPXI High Speed Digitizer Module User’s Manual
KDIG_AI_TRGSRC_ExtD: from external digital trigger pin
KDIG_AI_TRSRC_SSI_1: trigger event signal is from SSI source
KDIG_AI_TRSRC_SSI_2: both acquisition start and clocked trigger event signal
are from SSI
KDIG_AI_TRSRC_PXIStart: trigger event signal are from PXI_START pin (only
valid for PXI modules not plugged in slot 2)
Tri gPol:The setting for A/D Trigger signal polarity.
KDIG_AI_TrgPositive: Trigger positive edge active (default)
KDIG_AI_TrgNegative: Trigger negative edge active
AnaTrigchan: The setting for Analog Trigger channel.
CH0ATRIG: AI channel 0
CH1ATRIG: AI channel 1
AnaTrigLevel: The setting of Trigger level. The valid range depends on the AI
range:
AD_B_5_V: -5V ~ +5V
AD_B_1_V: -1V ~ +1V
postTrigScans: This argument is only valid for Middle trigger.
For Middle trigger, postTrigScans indicates the number of data will be accessed
after a specific trigger event.
preTrigScans: This argument is only valid for Middle trigger and Pre-Trigger.
The number of scans of data KDIG-DRVR collects before looking for the very first
trigger. Setting preTrigScans to 0 causes KDIG-DRVR to look for the first trigger
as soon as the DAQ process begins.
trigDelayTicks: The number of timer ticks will be ignored after a specific trigger
event.
ReTrgCnt: The accepted trigger times in an acquisition. This argument is only
valid for Delay trigger and Post trigger mode. The valid range of the value is as
follows:
KPXI-AI-2-65M: 1 through 16777215
NOTEFor pre-trigger and middle trigger mode of AI, the ReadScans parameter of continuous AI
functions KDIG_AI_ContXXXX has to be equal to postTrigScans+preTrigScans.
DescriptionInitializes the hardware and software states of a KDIG-DRVR data acquisition
card, and then returns a numeric card ID that corresponds to the card initialized.
KDIG_Register_Card must be called before any other KDIG-DRVR library
functions can be called for that card. The function initializes the card and variables
internal to KDIG-DRVR library. Because KDIG-DRVR devices meet the plug-andplay design, the base address (pass-through address) and IRQ level are assigned
B-26Return to Section TopicsKPXI-AI-900-01 Rev. A / January 2007
KPXI High Speed Digitizer Module User’s ManualAppendix B: KDIG-DRVR Function Reference
by system BIOS directly. This function is supported by the following model: KPXIAI-2-65M
KDIG_Register_Card (ByVal CardType As Integer,
ByVal card_num As Integer) As Integer
ParametersCardType: The type of card to be initialized. Keithley will periodically upgrade
KDIG-DRVR to add support for new Digitizer data acquisition cards. Please refer
to the Release Notes for the card types that the current release of KDIG-DRVR
actually supports. Following are the constants defined in kdigdrvr.h that represent
the Digitizer devices that KDIG-DRVR supports: KPXI_AI_2_65M
card_num: The sequence number of the card with the same card type (as
defined in argument CardType) plugged in the PCI/PXI slot. The card sequence
number setting is according to the PCI slot sequence in the mainboard. The first
card (in the most prior slot) is with card_num=0. For example, if there are two
KPXI-AI-2-65M cards plugged on your PC, the KPXI-AI-2-65M card in the prior
slot should be registered with card_num=0, and the other one with card_num=1.
Return CodeThis function returns a numeric card id for the card initialized. The range of card
id is between 0 and 31. If there is any error occurs, it will return negative error
code, the possible error codes are listed below:
DescriptionThere are at most 32 cards that can be registered simultaneously. This function is
used to tell KDIG-DRVR library that this registered card is not used currently and
can be released. This would make room for new card to register. Also by the end
of a program, you need to use this function to release all cards that were
registered. This function is supported by the following model: KPXI-AI-2-65M
SyntaxMicrosoft C/C++ and Borland C++
I16 KDIG_Release_Card (U16 CardNumber)
Visual Basic
KDIG_Release_Card (ByVal CardNumber As Integer) As Integer
ParametersCardNumber: The card id of the card that want to be released.
Return CodeNoError
KDIG_Route_Signal
DescriptionThis function is used to route an internal signal to the SSI line, PXI_START line or
the PXI trigger bus line, or to enable clock sharing through the PXI trigger bus line
or the PXI_START line. This function is supported by the following model: KPXIAI-2-65M
KPXI-AI-900-01 Rev. A / January 2007Return to Section TopicsB-27
Appendix B: KDIG-DRVR Function ReferenceKPXI High Speed Digitizer Module User’s Manual
B-30Return to Section TopicsKPXI-AI-900-01 Rev. A / January 2007
KPXI High Speed Digitizer Module User’s ManualAppendix B: KDIG-DRVR Function Reference
Status Codes
This section lists status codes returned by KDIG-DRVR (including the name and description).
Each KDIG-DRVR function returns a status code that indicates whether the function was
performed successfully. When a KDIG-DRVR function returns a negative number, it means that an
error occurred while executing the function.
Tab l e B - 2
Status codes returned by KDIG-DRVR
Code Status NameDescription
0NoErrorNo error occurred
-1ErrorUnknownCardTypeThe CardType argument is not valid.
-2ErrorInvalidCardNumberThe CardNumber argument is out of range (larger than 31).
-3ErrorTooManyCardRegisteredThere have been 32 cards that were registered.
-4ErrorCardNotRegisteredNo card registered as id CardNumber.
-5ErrorFuncNotSupportThe function called is not supported by this type of card.
-6ErrorInvalidIoChannelThe specified Channel or Port argument is out of range.
-7ErrorInvalidAdRangeThe specified analog input range is invalid.
-8ErrorContIoNotAllowedThe specified continuous IO operation is not supported by this type of card.
-9ErrorDiffRangeNotSupportAll the analog input ranges must be the same for multi-channel analog input.
-10ErrorLastChannelNotZeroThe channels for multi-channel analog input must be ended with or started from
zero.
-11ErrorChannelNotDescendingThe channels for multi-channel analog input must be contiguous and in
descending order.
-12ErrorChannelNotAscendingThe channels for multi-channel analog input must be contiguous and in ascending
order.
-13ErrorOpenDriverFailedFailed to open the device driver.
-14ErrorOpenEventFailedOpen event failed in device driver.
-15ErrorTransferCountTooLargeThe size of transfer is larger than the size of Initially allocated memory in driver.
-16ErrorNotDoubleBufferModeDouble buffer mode is disabled.
-17ErrorInvalidSampleRateThe specified sampling rate is out of range.
-18ErrorInvalidCounterModeThe value of the Mode argument is invalid.
-19ErrorInvalidCounterThe value of the Ctr argument is out of range.
-20ErrorInvalidCounterStateThe value of the State argument is out of range.
-21ErrorInvalidBinBcdParamThe value of the BinBcd argument is invalid.
-22ErrorBadCardTypeThe value of Card Type argument is invalid
-23ErrorInvalidDaRefVoltageThe value of DA reference voltage argument is invalid
-24ErrorAdTimeOutTime out for AD operation
-25ErrorNoAsyncAIContinuous Analog Input is not set as Asynchronous mode
-26ErrorNoAsyncAOContinuous Analog Output is not set as Asynchronous mode
-27ErrorNoAsyncDIContinuous Digital Input is not set as Asynchronous mode
-28ErrorNoAsyncDOContinuous Digital Output is not set as Asynchronous mode
-29ErrorNotInputPortThe value of AI/DI port argument is invalid
-30ErrorNotOutputPortThe value of AO/DO argument is invalid
-31ErrorInvalidDioPortThe value of DI/O port argument is invalid
-32ErrorInvalidDioLineThe value of DI/O line argument is invalid
-33ErrorContIoActiveContinuous IO operation is not active
-34ErrorDblBufModeNotAllowedDouble Buffer mode is not allowed
-35ErrorConfigFailedThe specified function configuration failed
-36ErrorInvalidPortDirectionThe value of DIO port direction argument is invalid
-37ErrorBeginThreadErrorFailed to create thread
-38ErrorInvalidPortWidthThe port width setting is not allowed
-39ErrorInvalidCtrSourceThe clock source setting is invalid
-40ErrorOpenFileFailed to Open file
KPXI-AI-900-01 Rev. A / January 2007Return to Section TopicsB-31
Appendix B: KDIG-DRVR Function ReferenceKPXI High Speed Digitizer Module User’s Manual
-42ErrorDaVoltageOutOfRangeThe value of DA voltage argument is out of range
-43ErrorInvalidSyncModeThe sync. mode of operation is invalid
-44ErrorInvalidBufferIDThe buffer id selected is invalid
-45ErrorInvalidCNTIntervalThe counter value is invalid
-46ErrorReTrigModeNotAllowedThe Re-Trigger mode of operation is invalid
-47ErrorResetBufferNotAllowedThe buffer is not allowed to be reset
-48ErrorAnaTriggerLevelThe value of analog trigger level is invalid
-49ErrorDAQEventThe DAQEvent is invalid
-50ErrorInvalidDataSizeThe data size is invalid. For example, the data size of pre-trigger and middle
trigger must be a multiple of 32.
-51ErrorOffsetCalibrationThe AD offset calibration failed
-52ErrorGainCalibrationThe AD gain calibration failed
-53ErrorCountOutofSDRAMSizeThe Data count is out of the size of the onboard SDRAM
-54ErrorNotStartTriggerModuleThe module is not installed in a start trigger slot
-55ErrorInvalidRouteLineThe value of routing line is invalid
-56ErrorInvalidSignalCodeThe value of signal code is invalid
-57ErrorInvalidSignalDirectionThe signal connection direction is invalid
-58ErrorTRGOSCalibrationThe analog trigger level offset calibration failed
-201ErrorConfigIoctlThe configuration API failed
-202ErrorAsyncSetIoctlThe async. mode API failed
-203ErrorDBSetIoctlThe double-buffer setting API failed
-204ErrorDBHalfReadyIoctlThe half-ready API failed
-205ErrorContOPIoctlThe continuous data acquisition API failed
-206ErrorContStatusIoctlThe continuous data acquisition status API setting failed
-207ErrorPIOIoctlThe polling data API failed
-208ErrorDIntSetIoctlThe dual interrupt setting API failed
-209ErrorWaitEvtIoctlThe wait event API failed
-210ErrorOpenEvtIoctlThe open event API failed
-211ErrorCOSIntSetIoctlThe COS interrupt setting API failed
-212ErrorMemMapIoctlThe memory mapping API failed
-213ErrorMemUMapSetIoctlThe memory Un-mapping API failed
-214ErrorCTRIoctlThe counter API failed
-215ErrorGetResIoctlThe resource getting API failed
B-32Return to Section TopicsKPXI-AI-900-01 Rev. A / January 2007
KPXI High Speed Digitizer Module User’s ManualAppendix B: KDIG-DRVR Function Reference
AI range codes
The analog input range for the digitizers is contained in Table B-3.
Tab l e B - 3
Analog input range of digitizers
InputRange
AD_B_5_V Bipolar -5V to +5V
AD_B_1_V Bipolar -1V to +1V
AI data format
This section lists the AI data format for the cards performing analog input operation, as well as the
calculation methods to retrieve the A/D converted data and the channel where the data was read
(see
Table B-4).
Tab l e B - 4
AI data format
Value calculation
* channel no. (CH#)
* A/D converted data (ND)
Card TypeData Format
* Value returned from AI function (OD)
KPXI-AI-2-65MEvery 16-bit unsigned integer data:
b15 b14 D13 D12 D11 ...........…... D1D0
where D13,D11, ... , D0 : A/D converted data
b14 : Over-voltage indicator
DATA file format
This paragraph describes the file format of the data files generated by the functions performing
continuous data acquisition followed by storing the data to disk.
The data file includes three parts: Header, ChannelRange (optional) and Data block. The file
structure is as is
Figure B-1
DATA file format
Figure B-1.
Header
ChannelRange (Optional)
ND = OD & 0x3fff
DAQ data
KPXI-AI-900-01 Rev. A / January 2007Return to Section TopicsB-33
Appendix B: KDIG-DRVR Function ReferenceKPXI High Speed Digitizer Module User’s Manual
Header
The header part records the information related to the stored data and its total length is 60 bytes. The
data structure of the file header is contained in Tab l e B - 5 .
Tab l e B - 5
Data file header
Header
ElementsTypeSize
Total Length: 60 bytes
Comments
(bytes)
IDchar10
file ID
ex. KeithleyD3
card_typeshort2
card Type
ex. KPXI_AI_2_65M
num_of_channelshort2
number of scanned channels
ex. 1, 2
Channel_no
unsigned
char
1
channel number where the data read from (only available as
the num_of_channel is 1)
* If the num_of_channel_range is 0, the ChannelRange block won’t be included in the data file.
* The channel_order is set to “custom” only when the card supports variant channel scanning order.
char6not used
B-34Return to Section TopicsKPXI-AI-900-01 Rev. A / January 2007
KPXI High Speed Digitizer Module User’s ManualAppendix B: KDIG-DRVR Function Reference
ChannelRange
The ChannelRange part records the channel number and data range information related to the
stored data. This part consists of several channel and range units. The length of each unit is 2
bytes. The total length depends on the value of num_of_channel_range (one element of the file
header) and is calculated as the following formula:
Total Length = 2 * num_of_channel_range bytes
The data structure of each ChannelRange unit is contained in Ta b l e B - 6:
Tab l e B - 6
Data structure of ChannelRange unit
ChannelRange Unit
ElementsType
channelchar1
rangechar1
Length: 2 bytes
Size
(bytes)Comments
scanned channel number
ex. 0, 1
the AI range code of channel
Please refer to DATA file format.
ex. 0 (AD_B_10V)
Data Block
The last part is the data block. The data is written to file in 16-bit binary format, with the lower byte
first (little endian). For example, the value 0x1234 is written to disk with 34 first followed by 12. The
total length of the data block depends on the data width and the total data count.
The file is written in Binary format and can’t be read in normal text editor. You can use any binary
file editor to view it or the functions used for reading files, e.g. fread, to get the file information and
data value. KDIG-DRVR provides a useful utility KIDAQCvt for you to convert the binary file. The
KIDAQCvt main window is shown in
Figure B-2.
KPXI-AI-900-01 Rev. A / January 2007Return to Section TopicsB-35
Appendix B: KDIG-DRVR Function ReferenceKPXI High Speed Digitizer Module User’s Manual
Figure B-2
DAQ File Conversion Utility
F:\Keithley\KDIG_DRVR\SAMPLES\KPXI_AI_2_65M\CAIR
KPXI-AI-2-65M
F:\Keithley\KDIG_DRVR\SAMPLES\KPXI_AI_2_65M\CAIR
KIDAQCvt first translates the information stored in the header part and the ChannelRange part
and then displays the corresponding information in the “Input File” frame of KIDAQCvt main
window. After setting the properties (File Path, Format, …etc.) of the converted file and push “Start Convert” button in the “Output File” frame, KIDAQCvt gets rid of header and ChannelRange parts
and converts the data in data block according to the card type and the data width. Finally,
KIDAQCvt writes the converted data to disk. You thus can use any text editor or Excel to view or
analyze the accessed data.
B-36Return to Section TopicsKPXI-AI-900-01 Rev. A / January 2007
In this appendix:
Top icPage
Introduction to KIDAQ®-LabVIEW...................................................C-2
This introduction describes how to program your application in LabVIEW1 using the Keithley
KIDAQ driver.
Overview
Install the KDAQ-DRVR, KDIO-DRVR, or KDIG-DRVR device driver that works with your module
before installing the KIDAQ LabVIEW driver. Refer to driver installation information elsewhere in
the product manual for the correct driver installation procedure for your module.
KIDAQ LabVIEW VIs (Virtual Instrumentation files) were designed for LabVIEW 6.0 or later. All VIs
are stored in 6.0 format. The KIDAQ driver provides a set of VIs that control the KPXI modules
from within LabVIEW for fast and simple programming.
To not conflict with the naming of the functions already present in LabVIEW, all KIDAQ LabVIEW
VIs have a “KI” prefix. For example, the Analog Input Read VI is called “KI AI Read”.
Using KIDAQ LabVIEW VIs in LabVIEW
To use KIDAQ LabVIEW VIs, refer to the following procedure as a guideline (using LabVIEW
versions 6.0 through 7.2):
NOTELabVIEW 8 (and later versions) uses a new interface. In LabVIEW 8, the KIDAQ VI set
will appear at the bottom of the LabVIEW function palette. To personalize your function
palette, click the Tools menu item, select Advanced and edit palette set... from the
menus.
1.Click the Options button in the Controls or Functions palette toolbar to display the
Function Browser Options dialog box.
2.Select KIDAQ view from the Palette Set pull-down menu (Figure C-1).
3.Click OK. The Functions palettes change to the KIDAQ view.
4.Then, find KIDAQ LabVIEW VIs in KIDAQ icon on the Functions palette (Figure C-2).
Figure C-1
Function Browser Options
KIDAQ
1. LabVIEW™ is a trademark of the National Instruments Corporation. All other trademarks are the property of their
respective owners.
C-2Return to Section TopicsKPXI-AI-900-01 Rev. A / January 2007
The KIDAQ palette contains four sub-palettes that contain the different classes of data acquisition
VIs. The VIs are classified as follows:
•Analog Input VIs
•Analog Output VIs
•Digital I/O VIs
•Timer/Counter VIs
•Calibration and Configuration VIs
•Error Handler VI
Most of the VI sub-palettes arrange the VIs in different levels, Easy, Intermediate, or Advanced,
according to their functionality.
KIDAQ LabVIEW Programming
The KIDAQ LabVIEW VIs Overview briefly describes each VI in KIDAQ LabVIEW. All applications
developed with KIDAQ LabVIEW are compatible across Windows XP and 2000. For detailed
function information, refer to
You can find the detailed description of each VI using any of the following ways:
•Select the Show Help command in the Help menu in LabVIEW. Then, when you put the
mouse cursor on KIDAQ LabVIEW VI, LabVIEW will show the description of the VI.
•Refer to Appendix D of this User’s Manual.
•Contact Keithley Instruments via phone, email, or on the web at www.keithley.com for
further information.
Appendix D, the KIDAQ®-LabVIEW Compatible Function Reference.
KPXI-AI-900-01 Rev. A / January 2007Return to Section TopicsC-3
Device Driver Handling describes how to configure the KIDAQ PXI cards Windows® XP/2000
device driver.
Windows XP/2000 Device Driver
Once Windows XP/2000® has started, the Plug and Play function of Windows XP/2000® operating
system will find the new Keithley PXI cards. If this is the first time to install Keithley PXI cards in
your Windows XP/2000
installation information elsewhere in the product manual for the correct driver installation
procedure for your module.
Driver Utility
NOTEThe KDAQ-DRVR, KDIO-DRVR, or KDIG-DRVR device driver should be installed before
the KDAQ LabVIEW driver. Refer to driver installation information elsewhere in the
product manual for the correct driver installation procedure for your module.
KIDAQ LabVIEW provides a PXI Configuration Utility (configdrv.exe). These utilities are used to
set/change the allocated buffer sizes of AI, AO, DI and DO (Analog Input, Analog Output, Digital
Input, Digital Output). The allocated buffer sizes of AI, AO, DI, DO represent the sizes of
contiguous Initially Allocated memory for continuous analog input, analog output, digital input,
digital output respectively. Its unit is page KB, i.e. 1024 bytes. The device driver will try to allocate
these sizes of memory at system startup time. If this size of memory is not available, the driver will
allocate as much memory as system can provide. The size of initially allocated memory is the
maximum memory size that DMA or Interrupt transfer can be performed. It will induce an
unexpected result in that DMA or Interrupt transfer performed exceeds the initially allocated size.
®
system, you will be informed to install the device driver. Refer to driver
KIDAQ Utilities
This section, KIDAQ Utilities, describes all utilities included in the KIDAQ software.
KIDAQ Registry/Configuration utility
configdrv is used to modify the allocated buffer sizes of AI, AO, DI and DO (Windows® XP/2000).
The default installation directory for this utility is C:\Keithley\KIDAQ\Util. It can also be found in
the start menu under Programs -> Keithley -> KIDAQ LabVIEW Driver -> Configuration Utility.
For detailed information on this utility, refer to device driver guide for you module.
KIDAQ Devices Explorer
Device Browser (KPXIConf.exe) displays the currently installed and detected KIDAQ hardware.
The default installation directory for this utility is C:\Keithley\KIDAQ\Util. It can also be found in
the start menu under Programs -> Keithley -> KIDAQ LabVIEW Driver -> Device Explorer. The Keithley PXI Devices Explorer main window is shown in
Figure C-3:
C-4Return to Section TopicsKPXI-AI-900-01 Rev. A / January 2007
The Device Browser main window contains three columns, Device Type, Location (Bus/Device/
Function) and Device Number.
Device Type: Type of KIDAQ board installed
Location (Bus/Device/Function): The location the device is plugged into
Device Number: Number of device at PXI bus (Starts from 1)
Using this utility, user can view all of the KIDAQ devices connected to your system and get the
device number corresponding to the device plugged on a specified PXI slot.
KIDAQ LabVIEW VIs Overview
This section briefly describes each VI in the KIDAQ LabVIEW driver. The setup program detects
the system (Windows® XP/2000), and installs the correct platform drivers to the system. All
applications developed with KIDAQ LabVIEW are compatible across Windows® XP/2000.
You can find the detailed description of each VI using any of the following ways:
•Select the Show Help command in the Help menu in LabVIEW. Then, when you put the
mouse cursor on KIDAQ LabVIEW VI, LabVIEW will show the description of the VI.
•Refer to Appendix D of this document
•Contact Keithley Instruments via phone, email, or on the web at www.keithley.com for
further information
KIDAQ LabVIEW VIs are grouped into the following LabVIEW palettes:
•Analog Input VIs
•Analog Output VIs
– Advanced Analog Output VIs
KPXI-AI-900-01 Rev. A / January 2007Return to Section TopicsC-5
KI ICTR Control: This VI control counters on the KIDAQ devices that use 82C54 chip.
Calibration and Configuration VIs
KI KPXI-DAQ Series Calibrate and Digitizer Series calibrate: calibrates Keithley PXI DAQ
device.
KI Route Signal: routes an internal signal to the specified I/O connector or SSI bus line, or to
enable clock sharing through the SSI bus clock line.
KI SSI Control: Connects or disconnects trigger and timing signals between DAQ devices along
the Real-Time System Integration (SSI) bus.
Error Handler VI
KI Error Handler: explains non-zero error codes and shows dialog box with information about
error.
Distribution of Applications
To install an application using KIDAQ LabVIEW on another computer, you also must install the
necessary driver files and supporting libraries on the target machine. You can create an automatic
installer to install your program and all of the files needed to run that program or you can manually
install the program and program files. Whichever installation method you choose, you must install
the following files:
NOTEDo not replace any files on the target computer if the file on the target computer has a
newer version than the file you are installing.
Windows XP/2000
LLB files
kidaq_pci.llb in C:\Keithley\KI-DAQ\LLB
Required support DLLs
Pci-lv.dll in C:\Windows\system32. This file should be copied to the same system32 directory on
the target machine. On Windows 2000 the Windows directory is named winnt instead of Windows.
Driver files
The corresponding driver files in C:\Windows\system32\drivers, e.g. ksdaq4M2.sys for KPXI-
SDAQ-4-2M. These files should be copied to:
•Windows\system32\drivers directory (for Windows XP).
•Winnt\system32\drivers directory (for Windows 2000).
The corresponding INF file in \Windows\inf, e.g. ksdaq4M2.inf for KPXI-SDAQ-4-2M. These files
should be copied to:
•Windows\inf directory (for Windows XP).
•Winnt\inf directory (for Windows 2000).
The location of the device configuration utility is: C:\Keithley\KI-DAQ\Util\configdrv
C-8Return to Section TopicsKPXI-AI-900-01 Rev. A / January 2007
AI Range Codes ..............................................................................D-73
AI Data Format .................................................................................D-76
Appendix D: KIDAQ®-LabVIEW Compatible Function ReferenceKPXI High Speed Digitizer Module User’s Manual
Introduction
This function reference provides a detailed description of LabVIEW1 compatible interfaces for
Keithley Instruments PXI DAQ modules.
Hardware support
Keithley Instruments will periodically upgrade KIDAQ LabVIEW to add support for new Keithley
Instruments PXI data acquisition modules. This release of KIDAQ LabVIEW supports the following
hardware:
KPXI-DIO series:
•KPXI-DIO-16-16: 32 channels isolated Digital I/O card
•KPXI-DIO-48: 48-bit digital I/O card
•KPXI-RDI-8-16: 8 relay output and 16 isolated input card
•KPXI-DIO-32-80M: 40 Mbytes/sec Ultra-high speed 32 channels digital I/O module with bus
mastering DMA transfer supporting scatter gather technology
•KPXI-DIO-32-32: 32 isolated channels DI & 32 isolated channels DO card