National Instruments 6612 User manual

NI 6612
User Manual
NI 6612 User Manual
November 2013
374008B-01

Support
Worldwide Technical Support and Product Information
ni.com
Worldwide Offices
Visit ni.com/niglobal to access the branch office Web sites, which provide up-to-date
contact information, support phone numbers, email addresses, and current events.
National Instruments Corporate Headquarters
11500 North Mopac Expressway Austin, Texas 78759-3504 USA Tel: 512 683 0100
For further support information, refer to the Technical Support and Professional Services
appendix. To comment on National Instruments documentation, refer to the National
Instruments Web site at ni.com/info and enter the Info Code feedback.
©2013 National Instruments. All rights reserved.

Important Information
Warranty
NI devices are warranted against defects in materials and workmanship for a period of one year from the invoice date, as
evidenced by receipts or other documentation. National Instruments will, at its option, repair or replace equipment that proves
to be defective during the warranty period. This warranty includes parts and labor.
The media on which you receive National Instruments software are warranted not to fail to execute programming instructions,
due to defects in materials and workmanship, for a period of 90 days from the invoice date, as evidenced by receipts or other
documentation. National Instruments will, at its option, repair or replace software media that do not execute programming
instructions if National Instruments receives notice of such defects during the warranty period. National Instruments does not
warrant that the operation of the software shall be uninterrupted or error free.
A Return Material Authorization (RMA) number must be obtained from the factory and clearly marked on the outside of
the package before any equipment will be accepted for warranty work. National Instruments will pay the shipping costs of
returning to the owner parts which are covered by warranty.
National Instruments believes that the information in this document is accurate. The document has been carefully reviewed
for technical accuracy. In the event that technical or typographical errors exist, National Instruments reserves the right to
make changes to subsequent editions of this document without prior notice to holders of this edition. The reader should
consult National Instruments if errors are suspected. In no event shall National Instruments be liable for any damages arising
out of or related to this document or the information contained in it.
EXCEPT AS SPECIFIED HEREIN, NATIONAL INSTRUMENTS MAKES NO WARRANTIES, EXPRESS OR IMPLIED, AND SPECIFICALLY DISCLAIMS ANY
WARRANTY OF MERCHANTABILITY OR FITNESS FOR APARTICULAR PURPOSE. CUSTOMER’SRIGHT TO RECOVER DAMAGES CAUSED BY FAULT
OR NEGLIGENCE ON THE PART OF NATIONAL INSTRUMENTS SHALL BE LIMITED TO THE AMOUNT THERETOFORE PAID BY THE CUSTOMER.
NATIONAL INSTRUMENTS WILL NOT BE LIABLE FOR DAMAGES RESULTING FROM LOSS OF DATA, PROFITS, USE OF PRODUCTS, OR INCIDENTAL
OR CONSEQUENTIAL DAMAGES, EVEN IF ADVISED OF THE POSSIBILITY THEREOF. This limitation of the liability of National Instruments
will apply regardless of the form of action, whether in contract or tort, including negligence. Any action against National
Instruments must be brought within one year after the cause of action accrues. National Instruments shall not be liable for any
delay in performance due to causes beyond its reasonable control. The warranty provided herein does not cover damages,
defects, malfunctions, or service failures caused by owner’s failure to follow the National Instruments installation, operation,
or maintenance instructions; owner’s modification of the product; owner’s abuse, misuse, or negligent acts; and power failure
or surges, fire, flood, accident, actions of third parties, or other events outside reasonable control.
Copyright
Under the copyright laws, this publication may not be reproduced or transmitted in any form, electronic or mechanical,
including photocopying, recording, storing in an information retrieval system, or translating, in whole or in part, without the
prior written consent of National Instruments Corporation.
National Instruments respects the intellectual property of others, and we ask our users to do the same. NI software is protected
by copyright and other intellectual property laws. Where NI software may be used to reproduce software or other materials
belonging to others, you may use NI software only to reproduce materials that you may reproduce in accordance with the
terms of any applicable license or other legal restriction.
End-User License Agreements and Third-Party Legal Notices
You can find end-user license agreements (EULAs) and third-party legal notices in the following locations:
• Notices are located in the <National Instruments>\_Legal Information and <National Instruments>
directories.
• EULAs are located in the <National Instruments>\Shared\MDF\Legal\license directory.
•Review
<National Instruments>\_Legal Information.txt for more information on including legal information
in installers built with NI products.
Trademarks
Refer to the NI Trademarks and Logo Guidelines at ni.com/trademarks for more information on National Instruments
trademarks.
ARM, Keil, and µVision are trademarks or registered of ARM Ltd or its subsidiaries.
LEGO, the LEGO logo, WEDO, and MINDSTORMS are trademarks of the LEGO Group. ©2013 The LEGO Group.
TETRIX by Pitsco is a trademark of Pitsco, Inc.©2013
FIELDBUS FOUNDATION™and FOUNDATION™are trademarks of the Fieldbus Foundation.
EtherCAT®is a registered trademark of and licensed by Beckhoff Automation GmbH.
CANopen®is a registered Community Trademark of CAN in Automation e.V.
DeviceNet™and EtherNet/IP™are trademarks of ODVA.
Go!, SensorDAQ, and Vernier are registered trademarks of Vernier Software & Technology. Vernier Software & Technology
and vernier.com are trademarks or trade dress.
Xilinx is the registered trademark of Xilinx, Inc.
Taptite and Trilobular are registered trademarks of Research Engineering & Manufacturing Inc.
FireWire®is the registered trademark of Apple Inc.
Linux®is the registered trademark of Linus Torvalds in the U.S. and other countries.

Handle Graphics®, MATLAB®, Real-Time Workshop®, Simulink®, Stateflow®, and xPC TargetBox®are registered
trademarks, and TargetBox™and Target Language Compiler™are trademarks of The MathWorks, Inc.
Tektronix®, Tek, and Tektronix, Enabling Technology are registered trademarks of Tektronix, Inc.
The Bluetooth®word mark is a registered trademark owned by the Bluetooth SIG, Inc.
The ExpressCard™word mark and logos are owned by PCMCIA and any use of such marks by National Instruments is under
license.
The mark LabWindows is used under a license from Microsoft Corporation. Windows is a registered trademark of Microsoft
Corporation in the United States and other countries.
Other product and company names mentioned herein are trademarks or trade names of their respective companies.
Members of the National Instruments Alliance Partner Program are business entities independent from National Instruments
and have no agency, partnership, or joint-venture relationship with National Instruments.
Patents
For patents covering National Instruments products/technology, refer to the appropriate location: Help»Patents in your
software, the patents.txt file on your media, or the National Instruments Patent Notice at ni.com/patents.
Export Compliance Information
Refer to the Export Compliance Information at ni.com/legal/export-compliance for the National Instruments global
trade compliance policy and how to obtain relevant HTS codes, ECCNs, and other import/export data.
WARNING REGARDING USE OF NATIONAL INSTRUMENTS PRODUCTS
(1) NATIONAL INSTRUMENTS PRODUCTS ARE NOT DESIGNED WITH COMPONENTS AND TESTING FOR A
LEVEL OF RELIABILITY SUITABLE FOR USE IN OR IN CONNECTION WITH SURGICAL IMPLANTS OR AS
CRITICAL COMPONENTS IN ANY LIFE SUPPORT SYSTEMS WHOSE FAILURE TO PERFORM CAN
REASONABLY BE EXPECTED TO CAUSE SIGNIFICANT INJURY TO A HUMAN.
(2) IN ANY APPLICATION, INCLUDING THE ABOVE, RELIABILITY OF OPERATION OF THE SOFTWARE
PRODUCTS CAN BE IMPAIRED BY ADVERSE FACTORS, INCLUDING BUT NOT LIMITED TO FLUCTUATIONS
IN ELECTRICAL POWER SUPPLY, COMPUTER HARDWARE MALFUNCTIONS, COMPUTER OPERATING
SYSTEM SOFTWARE FITNESS, FITNESS OF COMPILERS AND DEVELOPMENT SOFTWARE USED TO
DEVELOP AN APPLICATION, INSTALLATION ERRORS, SOFTWARE AND HARDWARE COMPATIBILITY
PROBLEMS, MALFUNCTIONS OR FAILURES OF ELECTRONIC MONITORING OR CONTROL DEVICES,
TRANSIENT FAILURES OF ELECTRONIC SYSTEMS (HARDWARE AND/OR SOFTWARE), UNANTICIPATED
USES OR MISUSES, OR ERRORS ON THE PART OF THE USER OR APPLICATIONS DESIGNER (ADVERSE
FACTORS SUCH AS THESE ARE HEREAFTER COLLECTIVELY TERMED “SYSTEM FAILURES”). ANY
APPLICATION WHERE A SYSTEM FAILURE WOULD CREATE A RISK OF HARM TO PROPERTY OR PERSONS
(INCLUDING THE RISK OF BODILY INJURY AND DEATH) SHOULD NOT BE RELIANT SOLELY UPON ONE
FORM OF ELECTRONIC SYSTEM DUE TO THE RISK OF SYSTEM FAILURE. TO AVOID DAMAGE, INJURY, OR
DEATH, THE USER OR APPLICATION DESIGNER MUST TAKE REASONABLY PRUDENT STEPS TO PROTECT
AGAINST SYSTEM FAILURES, INCLUDING BUT NOT LIMITED TO BACK-UP OR SHUT DOWN MECHANISMS.
BECAUSE EACH END-USER SYSTEM IS CUSTOMIZED AND DIFFERS FROM NATIONAL INSTRUMENTS'
TESTING PLATFORMS AND BECAUSE A USER OR APPLICATION DESIGNER MAY USE NATIONAL
INSTRUMENTS PRODUCTS IN COMBINATION WITH OTHER PRODUCTS IN A MANNER NOT EVALUATED
OR CONTEMPLATED BY NATIONAL INSTRUMENTS, THE USER OR APPLICATION DESIGNER IS
ULTIMATELY RESPONSIBLE FOR VERIFYING AND VALIDATING THE SUITABILITY OF NATIONAL
INSTRUMENTS PRODUCTS WHENEVER NATIONAL INSTRUMENTS PRODUCTS ARE INCORPORATED IN A
SYSTEM OR APPLICATION, INCLUDING, WITHOUT LIMITATION, THE APPROPRIATE DESIGN, PROCESS
AND SAFETY LEVEL OF SUCH SYSTEM OR APPLICATION.

Compliance
Electromagnetic Compatibility Information
This product was tested and complies with the regulatory requirements and limits for electromagnetic
compatibility (EMC) stated in the product specifications. These requirements and limits provide reasonable
protection against harmful interference when the product is operated in the intended operational
electromagnetic environment.
This product is intended for use in industrial locations. However, harmful interference may occur in some
installations, when the product is connected to a peripheral device or test object, or if the product is used in
residential or commercial areas. To minimize interference with radio and television reception and prevent
unacceptable performance degradation, install and use this product in strict accordance with the instructions
in the product documentation.
Furthermore, any modifications to the product not expressly approved by National Instruments could void
your authority to operate it under your local regulatory rules.
Caution To ensure the specified EMC performance, operate this product only with shielded
cables and accessories.
Caution To ensure the specified EMC performance, the length of all I/O cables must be no
longer than 3 meters (10 feet).
Caution To ensure the specified EMC performance when using the BNC-2121 accessory,
limit the frequency of any digital signal driven out a screw terminal connector of the BNC-2121
to not more than 1MHz.

© National Instruments |vii
Contents
About This Manual
Related Documentation .................................................................................................... xiii
Chapter 1
Introduction
Installation ........................................................................................................................ 1-1
Accessories and Cables .................................................................................................... 1-1
Chapter 2
Digital I/O
Digital Input Data Acquisition Methods .......................................................................... 2-3
Software-Timed Acquisitions................................................................................... 2-3
Hardware-Timed Acquisitions ................................................................................. 2-3
Digital Input Triggering.................................................................................................... 2-4
Digital Waveform Acquisition ......................................................................................... 2-5
DI Sample Clock Signal ........................................................................................... 2-5
Routing DI Sample Clock to an Output Terminal ............................................ 2-6
Other Timing Requirements ............................................................................. 2-6
DI Sample Clock Timebase Signal........................................................................... 2-6
DI Start Trigger Signal ..................................................................................... 2-7
Retriggerable DI ............................................................................................... 2-7
Using a Digital Source...................................................................................... 2-8
Routing DI Start Trigger to an Output Terminal .............................................. 2-8
DI Reference Trigger Signal..................................................................................... 2-8
Using a Digital Source...................................................................................... 2-9
Routing DI Reference Trigger Signal to an Output Terminal .......................... 2-9
DI Pause Trigger Signal ........................................................................................... 2-9
Using a Digital Source...................................................................................... 2-10
Routing DI Pause Trigger Signal to an Output Terminal................................. 2-10
Digital Output Data Generation Methods......................................................................... 2-10
Software-Timed Generations.................................................................................... 2-10
Hardware-Timed Generations .................................................................................. 2-11
Digital Output Triggering................................................................................................. 2-12
Digital Waveform Generation .......................................................................................... 2-12
DO Sample Clock Signal.......................................................................................... 2-13
Routing DO Sample Clock to an Output Terminal .......................................... 2-13
Other Timing Requirements ............................................................................. 2-13
DO Sample Clock Timebase Signal ......................................................................... 2-13
DO Start Trigger Signal............................................................................................ 2-14
Retriggerable DO.............................................................................................. 2-14
Using a Digital Start Trigger ............................................................................ 2-14
Routing DO Start Trigger Signal to an Output Terminal ................................. 2-14

Contents
viii |ni.com
DO Pause Trigger Signal ..........................................................................................2-15
Using a Digital Pause Trigger........................................................................... 2-15
Routing DO Pause Trigger Signal to an Output Terminal................................2-15
I/O Protection....................................................................................................................2-16
DI Change Detection ........................................................................................................ 2-16
DI Change Detection Applications ...........................................................................2-17
Digital Filtering................................................................................................................. 2-17
Connecting Digital I/O Signals......................................................................................... 2-20
Getting Started with DIO Applications in Software .........................................................2-21
Signal Integrity Considerations ........................................................................................2-22
Chapter 3
Counters
Counter Input Applications............................................................................................... 3-2
Edge Counting .......................................................................................................... 3-2
Channel Settings ............................................................................................... 3-2
Timing Settings.................................................................................................3-3
Trigger Settings................................................................................................. 3-4
Other Settings ................................................................................................... 3-6
Exporting a Terminal Count Signal .................................................................. 3-6
Cascading Counters .......................................................................................... 3-6
Pulse Measurement ................................................................................................... 3-6
Create Channel.................................................................................................. 3-7
Channel Settings ............................................................................................... 3-7
Timing Settings.................................................................................................3-8
Trigger Settings................................................................................................. 3-9
Other Settings ................................................................................................... 3-10
Semi-Period Measurement........................................................................................ 3-10
Settings.............................................................................................................. 3-10
Frequency Measurement........................................................................................... 3-11
Frequency Measurement Considerations.......................................................... 3-11
Frequency Measurement Methods.................................................................... 3-12
Period Measurement ................................................................................................. 3-19
Pulse-Width Measurement........................................................................................ 3-19
Channel Settings ............................................................................................... 3-20
Timing Settings.................................................................................................3-20
Trigger Settings................................................................................................. 3-21
Other Settings ................................................................................................... 3-22
Two-Edge Separation ...............................................................................................3-22
Channel Settings ............................................................................................... 3-23
Timing Settings.................................................................................................3-23
Trigger Settings................................................................................................. 3-24
Other Settings ................................................................................................... 3-25

NI 6612 User Manual
© National Instruments |ix
Quadrature and Two-Pulse Encoder Overview ........................................................ 3-25
Quadrature Encoders ........................................................................................ 3-25
Two-Pulse Encoders ......................................................................................... 3-27
Angular Position Measurement ................................................................................ 3-27
Create Channel ................................................................................................. 3-27
Channel Settings ............................................................................................... 3-27
Timing Settings................................................................................................. 3-28
Trigger Settings ................................................................................................ 3-29
Other Settings ................................................................................................... 3-29
Linear Position Measurement................................................................................... 3-29
Counter Output Applications............................................................................................ 3-29
Generating a Series of One or More Pulses.............................................................. 3-30
Create Channel ................................................................................................. 3-30
Channel Settings ............................................................................................... 3-31
Timing Settings................................................................................................. 3-31
Triggering Setting............................................................................................. 3-31
Generating a Waveform with Constant Frequency and Duty Cycle ........................ 3-32
Create Channel ................................................................................................. 3-32
Channel Settings ............................................................................................... 3-33
Timing Settings................................................................................................. 3-33
Triggering Setting............................................................................................. 3-33
Generating a Waveform with Variable Frequency and Duty Cycle......................... 3-34
Create Channel ................................................................................................. 3-34
Channel Settings ............................................................................................... 3-35
Timing Settings................................................................................................. 3-35
Triggering Settings ........................................................................................... 3-35
Buffer Considerations....................................................................................... 3-35
Generating Complex Digital Waveform or Timing Pattern ..................................... 3-36
Create Channel ................................................................................................. 3-36
Channel Settings ............................................................................................... 3-36
Timing Settings................................................................................................. 3-37
Triggering Setting............................................................................................. 3-37
Buffer Considerations....................................................................................... 3-37
Other Features........................................................................................................... 3-37
Frequency Division........................................................................................... 3-37
Frequency Generator ................................................................................................ 3-38
Chapter 4
PFI
Using PFI Terminals as Timing Input Signals ................................................................. 4-2
Exporting Timing Output Signals Using PFI Terminals .................................................. 4-2
Using PFI Terminals as Static Digital I/Os ...................................................................... 4-3
Using PFI Terminals to Digital Detection Events ............................................................ 4-3
Connecting PFI Input Signals........................................................................................... 4-3
PFI Filters ......................................................................................................................... 4-3

Contents
x|ni.com
I/O Protection....................................................................................................................4-5
Signal Integrity Considerations ........................................................................................4-5
Chapter 5
Counter Signal Routing and Clock Generation
Clock Routing ...................................................................................................................5-1
100 MHz Timebase...................................................................................................5-2
20 MHz Timebase..................................................................................................... 5-2
100 kHz Timebase .................................................................................................... 5-2
External Reference Clock ......................................................................................... 5-2
10 MHz Reference Clock ......................................................................................... 5-3
PXIe_CLK100 (NI PXIe-6612 Only).......................................................................5-3
PXIe_SYNC100 (NI PXIe-6612 Only) ....................................................................5-3
PXI_CLK10 (NI PXIe-6612 Only)...........................................................................5-3
Default Routing.................................................................................................................5-3
Routing Options ................................................................................................................ 5-5
Matching Routing Terminology ....................................................................................... 5-5
Synchronizing Multiple Devices ......................................................................................5-6
PXI Express Devices ................................................................................................ 5-6
PCI Express Devices.................................................................................................5-7
Real-Time System Integration (RTSI).............................................................................. 5-7
Using RTSI as Outputs .............................................................................................5-8
Using RTSI Terminals as Timing Input Signals....................................................... 5-8
RTSI Filters............................................................................................................... 5-9
PXI Trigger Signals (NI PXIe-6612 Only).......................................................................5-9
PXI_Trigger<0..7>.................................................................................................... 5-9
PXI_STAR................................................................................................................ 5-9
PXIe-DSTAR<A..C>................................................................................................ 5-10
Chapter 6
Bus Interface
Data Transfer Methods .....................................................................................................6-1
PCI Express/PXI Express Device Data Transfer Methods ....................................... 6-1
PXI Express Considerations ............................................................................................. 6-2
PXI Express Clock and Trigger Signals ................................................................... 6-2
PXI Express ..............................................................................................................6-2
Chapter 7
Calibration
Appendix A
Pinout and Signal Descriptions

© National Instruments |xiii
About This Manual
This manual describes the electrical and mechanical aspects of the NI 6612 devices, and contains
information about device operation and programming.
Related Documentation
The following documents contain information that you may find helpful as you read this manual:
•Read Me First: Safety and Electromagnetic Compatibility—Lists precautions to take to
avoid possible injury, data loss, or a system crash.
•DAQ Getting Started guides—Explain installation of the NI-DAQ driver software and the
DAQ device, and how to confirm that the device is operating properly.
•NI 6612 Specifications—Contains specifications specific to the NI 6612.
•NI-DAQmx Help—Contains API overviews, general information about measurement
concepts, key NI-DAQmx concepts, and common applications that are applicable to all
programming environments.
NI-DAQmx is the software you use to communicate with and control your DAQ device.
Select Start»All Programs»National Instruments»NI-DAQ»NI-DAQmx Help.
•Measurement & Automation Explorer Help—Contains information about configuring and
testing supported NI devices using Measurement & Automation Explorer (MAX) for
NI-DAQmx. For more information, select Help»Help Topics»NI-DAQmx»MAX Help
for NI-DAQmx.
Note You can download these documents at ni.com/manuals, unless stated
otherwise.

© National Instruments |1-1
1
Introduction
This chapter describes the NI PCIe/PXIe-6612, lists what you need to get started, and describes
optional equipment. If you have not already installed the device, refer to the DAQ Getting
Started documents.
The NI 6612 is a timing and digital I/O device that offers eight 32-bit counter channels and up
to 32 lines of individually configurable, TTL/CMOS-compatible digital I/O.
The counter/timer channels have many measurement and generation modes, such as event
counting, time measurement, frequency measurement, encoder position measurement, pulse
generation, and square-wave generation.
Installation
Before installing your DAQ device, you must install the software you plan to use with the device.
1. Installing application software—Refer to the installation instructions that accompany
your software.
2. Installing NI-DAQmx—The DAQ Getting Started documents contain step-by-step
instructions for installing software and hardware, configuring channels and tasks, and
getting started developing an application.
3. Installing the hardware—The DAQ Getting Started documents describe how to install
PCI Express and PXI Express devices, as well as accessories and cables.
Accessories and Cables
Caution This NI product must be operated with shielded cables and accessories to
ensure compliance with the Electromagnetic Compatibility (EMC) requirements
defined in the Specifications section of this document. Do not use unshielded cables
or accessories unless they are installed in a shielded enclosure with properly designed
and shielded input/output ports and connected to the NI product using a shielded
cable. If unshielded cables or accessories are not properly installed and shielded, the
EMC specifications for the product are no longer guaranteed.

1-2 |ni.com
Chapter 1 Introduction
Table 1-1 provides a list of accessories and cables available for use with the NI 6612.
Table 1-1. Accessories and Cables
Accessory Description
SH68-68-D1 Shielded 68-conductor cable
R6868 Unshielded 68-conductor flat ribbon cable
BNC-2121 BNC connector block with built-in test features
CA-1000 Configurable connector accessory
SCB-68A Shielded screw connector block
TBX-68 Unshielded DIN-rail connector block
CB-68LP Unshielded low-cost screw connector block
CB-68LPR Unshielded low-cost screw connector block
(NI PXIe-6612 only) TB-2715 Front-mount terminal block

© National Instruments |2-1
2
Digital I/O
The NI 6612 contains 40 Programmable Function Interface (PFI) signals. These PFI signals can
function as either timing input, timing output, or DIO signals. This chapter describes the DIO
functionality. Refer to Chapter 4, PFI, for information on using the PFI lines as timing input or
output signals.
The 40 PFI signals are grouped into a 32-bit Port 0 and an 8-bit Port 1. When a terminal is used
for digital I/O, it is called Px.y, where x is the port number and y is the line number. For example,
P1.3 refers to Port 1, Line 3. When a terminal is used for timing input or output, it is called PFI x,
where x is a number between 0 and 39 representing the PFI line number. The same physical pin
has two different names depending on whether it is used for digital I/O (Px.y) or timing I/O
(PFI x). For example, the digital I/O line P1.3 is the same physical pin as the timing I/O signal
PFI 35. Refer to Appendix A, Pinout and Signal Descriptions, for a complete pinout.
The DIO features supported on Port 0 and Port 1 are listed in Table 2-1.
Table 2-1. DIO Features on Ports 0 and 1
Port 0 Port 1
32 lines of DIO 8 lines of DIO
Direction and function of each terminal individually controllable
Static digital input and output
DI change detection trigger/interrupt
High-speed digital waveform acquisition —
High-speed digital waveform generation —

2-2 |ni.com
Chapter 2 Digital I/O
Figures 2-1 and 2-2 show the circuitry of a DIO line on Port 0 and Port 1 respectively. Each DIO
line is similar.
Figure 2-1. Digital I/O Circuitry on Port 0
Figure 2-2. Digital I/O Circuitry on Port 1
In both Figures 2-1 and 2-2, CI represents additional input capacitance. This capacitance
provides some filtering and slew-rate control benefits. However, the capacitance also limits the
maximum input frequency.
CI is populated on all the lines except for the default counter source input pins. CI is not
populated on the default source input pins in order to allow the measurement of higher speed
input signals. Table 2-2 lists the lines that do not populate CI. You must use the lines in Table 2-2
when measuring inputs frequencies above 25 MHz. For more information, refer to the NI 6612
Specifications.
DO Sample Clock
DO Waveform
Generation FIFO
DO.xDirection Control
Static DI
DI Sample Clock
DI Change
Detection
I/O Protection
Weak Pull-Down
P0.
x
Static DO
Buffer
DI Waveform
Measurement
FIFO Filter
CI
DO.xDirection Control
Static DI
DI Change
Detection
I/O Protection
Weak Pull-Down
P1.x
Static DO
Buffer
Filter
CI

© National Instruments |2-3
NI 6612 User Manual
For voltage input and output levels and the current drive levels of the DIO lines, refer to the
NI 6612 Specifications.
Digital Input Data Acquisition Methods
When performing digital input measurements, you either can perform software-timed or
hardware-timed acquisitions.
Software-Timed Acquisitions
With a software-timed acquisition, software controls the rate of the acquisition. Software sends
a separate command to the hardware to initiate each acquisition. In NI-DAQmx, software-timed
acquisitions are referred to as having on-demand timing. Software-timed acquisitions are also
referred to as immediate or static acquisitions and are typically used for reading a single sample
of data.
Each of the DIO lines can be used as a static DI or DO line. You can use static DIO lines to
monitor or control digital signals. Each DIO can be individually configured as a digital input
(DI) or digital output (DO).
All samples of static DI lines and updates of static DO lines are software-timed.
Hardware-Timed Acquisitions
With hardware-timed acquisitions, a digital hardware signal (di/SampleClock) controls the rate
of the acquisition. This signal can be generated internally on your device or provided externally.
Hardware-timed acquisitions have several advantages over software-timed acquisitions.
• The time between samples can be much shorter.
• The timing between samples is deterministic.
• Hardware-timed acquisitions can use hardware triggering.
Table 2-2. Lines Without a Populated CI
Port 0 Port 1
PFI 11 / P0.11 PFI 35 / P1.3
PFI 15 / P0.15 PFI 39 / P1.7
PFI 19 / P0.19 —
PFI 23 / P0.23 —
PFI 27 / P0.27 —
PFI 31 / P0.31 —

2-4 |ni.com
Chapter 2 Digital I/O
Hardware-timed operations can be buffered or hardware-timed single point. A buffer is a
temporary storage in computer memory for to-be-transferred samples.
•Buffered—Data is moved from the DAQ device’s onboard FIFO memory to a PC buffer
using DMA before it is transferred to application memory. Buffered acquisitions typically
allow for much faster transfer rates than non-buffered acquisitions because data is moved
in large blocks, rather than one point at a time.
One property of buffered I/O operations is the sample mode. The sample mode can be either
finite or continuous:
– Finite sample mode acquisition refers to the acquisition of a specific, predetermined
number of data samples. After the specified number of samples has been read in, the
acquisition stops. If you use a reference trigger, you must use finite sample mode.
– Continuous acquisition refers to the acquisition of an unspecified number of samples.
Instead of acquiring a set number of data samples and stopping, a continuous
acquisition continues until you stop the operation. Continuous acquisition is also
referred to as double-buffered or circular-buffered acquisition.
If data cannot be transferred across the bus fast enough, the FIFO becomes full. New
acquisitions will overwrite data in the FIFO before it can be transferred to host
memory. The device generates an error in this case. With continuous operations, if the
user program does not read data out of the PC buffer fast enough to keep up with the
data transfer, the buffer could reach an overflow condition, causing an error to be
generated.
•Hardware-timed single point (HWTSP)—Typically, HWTSP operations are used to read
single samples at known time intervals. While buffered operations are optimized for high
throughput, HWTSP operations are optimized for low latency and low jitter. In addition,
HWTSP can notify software if it falls behind hardware. These features make HWTSP ideal
for real time control applications. HWTSP operations, in conjunction with the wait for next
sample clock function, provide tight synchronization between the software layer and the
hardware layer.
Refer to the document, NI-DAQmx Hardware-Timed Single Point Lateness Checking, for
more information. To access this document, go to ni.com/info and enter the Info Code
daqhwtsp.
Digital Input Triggering
Digital input supports three different triggering actions:
• Start trigger
• Reference trigger
• Pause trigger
Refer to the DI Start Trigger Signal, DI Reference Trigger Signal, and DI Pause Trigger Signal
sections for information about these triggers.

© National Instruments |2-5
NI 6612 User Manual
Digital Waveform Acquisition
Figure 2-3 summarizes all of the timing options provided by the digital input timing engine.
Figure 2-3. Digital Input Timing Options
You can acquire digital waveforms on the Port 0 DIO lines. The DI waveform acquisition FIFO
stores the digital samples. The NI 6612 has a DMA controller dedicated to moving data from the
DI waveform acquisition FIFO to system memory. The device samples the DIO lines on each
rising or falling edge of a clock signal, DI Sample Clock.
You can configure each DIO line to be an output, a static input, or a digital waveform acquisition
input.
The following digital input timing signals are featured:
• DI Sample Clock Signal*
• DI Sample Clock Timebase Signal
• DI Start Trigger Signal*
• DI Reference Trigger Signal*
• DI Pause Trigger Signal*
Signals with an * support digital filtering. Refer to the PFI Filters section of Chapter 4, PFI, for
more information.
DI Sample Clock Signal
The device uses the DI Sample Clock (di/SampleClock) signal to sample the Port 0 terminals
and store the result in the DI waveform acquisition FIFO.
By default, the programmable clock divider drives DI Sample Clock (see Figure 2-3). You can
route many signals to DI Sample Clock. To view the complete list of possible routes, see the
PFI, RTSI, PXI_Trigger
PXI_STA R
20 MHz Timebase
100 kHz Timebase
PXI_CLK10
Programmable
Clock
Divider
DI Sample Clock
Timebase
PFI, RTSI, PXI_Trigger
PXI_STA R
Ctr nInternal OutputDI Sample Clock
100 MHz Timebase
DSTAR <A..B>
DSTAR <A..B>

2-6 |ni.com
Chapter 2 Digital I/O
Device Routes tab in MAX. Refer to Device Routing in MAX in the NI-DAQmx Help or the
LabVIEW Help for more information.
If the NI 6612 receives a DI Sample Clock when the FIFO is full, it reports an overflow error to
the host software.
You can sample data on the rising or falling edge of DI Sample Clock.
Routing DI Sample Clock to an Output Terminal
You can route DI Sample Clock out to any PFI <0..39> terminal. The PFI circuitry inverts the
polarity of DI Sample Clock before driving the PFI terminal.
Other Timing Requirements
The NI 6612 only acquires data during an acquisition. The device ignores DI Sample Clock
when a measurement acquisition is not in progress. During a measurement acquisition, you can
cause the device to ignore DI Sample Clock using the DI Pause Trigger signal.
The DI timing engine on the device internally generates DI Sample Clock unless you select some
external source. DI Start Trigger starts this timing engine and either software or hardware can
stop it after a finite acquisition completes. When using the DI timing engine, you also can specify
a configurable delay from DI Start Trigger to the first DI Sample Clock pulse.
By default, this delay is set to two ticks of the DI Sample Clock Timebase signal.
Figure 2-4. DI Sample Clock and DI Start Trigger
DI Sample Clock Timebase Signal
By default, the NI 6612 routes the onboard 100 MHz timebase to DI Sample Clock Timebase.
You can route many signals to DI Sample Clock Timebase. To view the complete list of possible
routes, see the Device Routes tab in MAX. Refer to Device Routing in MAX in the NI-DAQmx
Help or the LabVIEW Help for more information.
DI Sample Clock Timebase is not available as an output on the I/O connector. DI Sample Clock
Timebase is divided down to provide one of the possible sources for DI Sample Clock. The
DI Sample Clock Timebase
DI Start Trigger
DI Sample Clock
Delay
from
Start
Trigger

© National Instruments |2-7
NI 6612 User Manual
polarity selection for DI Sample Clock Timebase can be configured as either rising—or
falling—edge except for the 100 MHz Timebase or 20 MHz Timebase.
The DI Sample Clock Timebase may be used if an external sample clock signal is required, but
the signal needs to be divided down. If an external sample clock signal is required, but there is
no need to divide the signal, then the DI Sample Clock should be used instead of the DI Sample
Clock Timebase.
DI Start Trigger Signal
Use the DI Start Trigger (di/StartTrigger) signal to begin a measurement acquisition. A
measurement acquisition consists of one or more samples. If triggers are not used, a
measurement acquisition can be initiated with a software command. After the acquisition begins,
configure the acquisition to stop:
• When a certain number of points are sampled (in finite mode)
• After a hardware reference trigger (in finite mode)
• With a software command (in continuous mode)
An acquisition that uses a start trigger (but not a reference trigger) is sometimes referred to as a
posttriggered acquisition.
Retriggerable DI
The DI Start Trigger can also be configured to be retriggerable. The timing engine generates
samples and converts clocks for the configured acquisition in response to each pulse on an
DI Start Trigger signal.
The timing engine ignores the DI Start Trigger signal while the clock generation is in progress.
After the clock generation is finished, the timing engine waits for another Start Trigger to begin
another clock generation. Figure 2-5 shows a retriggerable DI of four samples.
Figure 2-5. Retriggerable DI
Note Waveform information from LabVIEW does not reflect the delay between
triggers. They are treated as a continuous acquisition with constant t0 and dt
information.
Reference triggers are not retriggerable.
DI Start Trigger
DI Sample Clock
Table of contents
Other National Instruments Timer manuals
Popular Timer manuals by other brands

Orbit
Orbit 62015 Installation and user guide

Vista
Vista DTC-200 Installation and user instructions

AVT
AVT 1995 quick start guide

Vanguard Instruments Company
Vanguard Instruments Company CT-3500 S2 user manual

Omron
Omron H3CR-A8 instruction sheet

Full Gauge Controls
Full Gauge Controls Tempus E instruction manual