Example Code

Calculating Frequency in Software using FieldPoint Reads

Code and Documents

Attachment

Download All

Overview

Caluculate frequency from Single Point FieldPoint Reads

Description

This VI can be used if you don't have a cFP-CTR-500/502 to get a quick and dirty frequency calculation from Single Point FieldPoint Reads.  This works by acquiring a set # of samples and building them into a waveform.  After the waveform is built, the Timing and Transition Measurements Express VI calculates the Frequency.

Since the waveform is built in software timing, it may be inaccurate.  Signals that vary greatly in frequency can cause an inaccurate measurement.  The VI will need a few periods of the signal to get a measurement.

Requirements

Software

Requires LabVIEW 8.0 or higher and appropriate FieldPoint drivers.

Hardware

FieldPoint or compact FieldPoint system capable of digital input


fpcalcfreq_fp.jpg

fpcalcfreq_bd.png

**This document has been updated to meet the current required format for the NI Code Exchange. For more details visit this discussion thread**

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Contributors