Programming Flowcharts
53
4
4
4
4
4
4
4
4
4
Frequency Measurement Operations
The following flowchart shows the steps required to perform a
frequency measurement operation using the Windows timer. If you
need more accuracy the Windows timer provides, refer to
of
this manual or to your
DataAcq SDK User’s
Manual
for more
information.
Get a handle to the C/T subsystem with
olDaGetDASS
.
Initialize the device driver and get the
device handle with
olDaInitialize
.
Specify the mode as OL_CTMODE_
COUNT using
olDaSetCTMode
.
Go to the next page.
Specify C/T subsystem/element 0.
Specify the clock source as
OL_CLK_EXTERNAL using
olDaSetClockSource
.
Specify a clock divider between 2 (the
default) and 65536.
Specify the clock divider using
olDaSetExternalClockDivider
Attach an external C/T with a maximum
recommended frequency of 6 MHz to
the Counter 0 In signal.
Specify the gate type as high-level
(OL_GATE_HIGH_LEVEL) or software
(OL_GATE_NONE) using
olDaSetGateType
.
Summary of Contents for KUSB-3100
Page 10: ...Contents x...
Page 14: ...About this Manual xiv...
Page 15: ...1 1 Overview Features 2 Supported Software 3...
Page 18: ...Chapter 1 4...
Page 46: ...Chapter 2 32...
Page 47: ...33 3 Supported Device Driver Capabilities...
Page 86: ...Chapter 4 72...
Page 87: ...73 5 Troubleshooting General Checklist 74 Service and Support 77...
Page 100: ...Chapter 6 86...
Page 101: ...87 A Specifications...
Page 112: ...Appendix A 98...
Page 113: ...99 B Connector Pin Assignments...
Page 115: ...101 C Reading from or Writing to the Digital Registers...