Am9513: Counting Events Using Intermediate-Level VIs
Downloads
Filename: count_events-int__9513_.zip
Requirements: View
INSTRUCTIONS:
1. Enter the device number of your board.
2. Enter the counter number.
3. Choose the number of counters to use.
4. Make the appropriate I/O connections as explained below.
5. Run the VI.
KEY PARAMETERS:
This VI uses intermediate-level VIs to count TTL rising edges. On the diagram, the Event or Time Counter Config.vi configures the counter to count continuously. Counter Start.vi then initiates the counter. Inside the while loop, Counter Read.vi is continually called to get the current count. The small loop delay is used to free up processor time of your computer. Pressing the STOP button ends the while loop, and the Counter Stop.vi resets the counter.
I/O CONNECTIONS:
Connect your TTL signal to be counted to the SOURCE pin of the chosen counter.
If you chose the number of counters to use to be two counters (32-bits), wire the OUT from your chosen counter to the SOURCE of counter+1.
If you chose a gate mode other than ungated, wire your gate signal to the GATE input of the chosen counter.
To find the actual pin numbers, refer to the hardware user manual.
DAQ VI'S USED:
Event or Time Counter Config.vi
Counter Start.vi
Counter Stop.vi.
Requirements
Filename: count_events-int__9513_.zip
Software Requirements
Application Software: LabVIEW Full Development System 5.0.1
Language(s): LabVIEW
Hardware Requirements
Hardware Group: Multifunction DAQ (MIO)
Driver: Traditional NI-DAQ (Legacy)
Reader Comments | Submit a comment »
Legal
This example program (this "program") was developed by a National Instruments ("NI") Applications Engineer. Although technical support of this program may be made available by National Instruments, this program may not be completely tested and verified, and NI does not guarantee its quality in any way or that NI will continue to support this program with each new revision of related products and drivers. THIS EXAMPLE PROGRAM IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND AND SUBJECT TO CERTAIN RESTRICTIONS AS MORE SPECIFICALLY SET FORTH IN NI.COM'S TERMS OF USE (http://ni.com/legal/termsofuse/unitedstates/us/).
