EasyManuals Logo
Home>National Instruments>Computer Hardware>NI 6612

National Instruments NI 6612 User Manual

National Instruments NI 6612
98 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #64 background imageLoading...
Page #64 background image
3-28 | ni.com
Chapter 3 Counters
Timing Settings
The timing settings determine when the device reads the encoder.
On-Demand
By default, the counter uses On-Demand (no sample clock) timing. The counter starts counting
when software calls DAQmx Start Task. Each time software calls DAQmx Read, the NI 6612
returns the current angle of the encoder. Figure 3-32 shows an example of On-Demand timing.
Figure 3-32. Angular Position: On-Demand Timing
Sample Clock
To precisely control when the device reads the encoder, use the DAQmx Timing (Sample Clock)
VI or function. With this VI or function, you can set the source and rate of the Sample Clock and
the number of samples to acquire.
On each sample clock, the device stores the current count value in a buffer. Use DAQmx Read
to read the values from this buffer. Figure 3-33 shows an example of Sample Clock timing.
Figure 3-33. Angular Position: Sample Clock Timing
A
B
Count 0 1 3 4562
Read
Value
DAQmx
Start Task
DAQmx
Read
DAQmx
Read
2
5
A
B
Count 0 1
3
45
6
7 82
Buffer
DAQmx
Start Task
Sample
Clock
3
3
6

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the National Instruments NI 6612 and is the answer not in the manual?

National Instruments NI 6612 Specifications

General IconGeneral
BrandNational Instruments
ModelNI 6612
CategoryComputer Hardware
LanguageEnglish

Related product manuals