Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Document Type: Example Program
NI Supported: Yes
Publish Date: Sep 6, 2006


Feedback


Yes No

Related Categories

Related Links - Developer Zone

Related Links - Products and Services

Approximate Frequency Measurement with USB-600X Simple Edge Counter

2 ratings | 4.00 out of 5
Print

Downloads

Filename: 1406.vi
Requirements: View

Filename: 1405.vi
Requirements: View

This application written in LabVIEW 7.1 shows how to use the simple event counter functionality of the USB-600X devices and the computer's timer to calculate an approximate average frequency measurement of the signal on the counter channel. This functionality is not inherently available for the devices.

The operation is as follows:
Steps:
1. Create empty task
2. Create a Counter Input channel to Count Events. The Edge parameter must be set to increment on falling edges.
3. Call the Start VI to arm the counter and begin counting. The counter will be preloaded with the Initial Count.
4. The counter will be continually polled until the Stop button is pressed on the front panel. This will give both counter readings as well as approximate frequency readings.
5. Stop the task
6. Call the Clear Task VI to clear the Task.
7. Use the popup dialog box to display an error if any.

Requirements


Filename: 1406.vi

Software Requirements


Application Software: LabVIEW Base Development System 7.1
Language(s): LabVIEW

Hardware Requirements


Hardware Group: Multifunction DAQ (MIO)
Hardware Model: USB-6009, USB-6008
Driver: NI-DAQmx 7.4

 
Filename: 1405.vi

Software Requirements


Application Software: LabVIEW Base Development System 7.1
Language(s): LabVIEW

Hardware Requirements


Hardware Group: Multifunction DAQ (MIO)
Hardware Model: USB-6008, USB-6009
Driver: NI-DAQmx Base 1.4

 
2 ratings | 4.00 out of 5
Print

Reader Comments | Submit a comment »

.NET equivalent for this function
I was wondering if you have an equivalent sample using the .NET environment and DAQmx
- jdietrich@modusmed.com - Jun 22, 2006

 

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/).