NI Home
Cart Cart | Help
Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Currently Being Moderated

Two-Edge Separation Measurement

VERSION 4

Created on: Aug 21, 2008 9:25 PM by DanS - Last Modified:  Aug 27, 2008 8:21 PM by DanS


REQUIREMENTS:
Application Software: LabVIEW Base Development System
Add-on Software: LabVIEW FPGA Module 8.6

This IP supports a two-edge separation measurement application.  It finds rising edges of two boolean inputs and reports the time difference between the edges in number of clock ticks.

 

The IP VI first waits for a rising edge on Input0.  Once this edge is detected, it latches the current value of the tick count for later use.  Then, the VI waits for a rising edge on Input1.  As soon as this edge is detected, it takes the current tick count value and subtracts the tick count value from the most recent rising edge of Input0.  This difference is the result of the two-edge measurement, output as a separation value in clock ticks.

 

The included .zip file has the reusable IP as well as an example program.  The example program simply inputs two boolean controls to the IP and reads the separation measurement output.   This process is repeated in an FPGA single-cycle time loop for precision measurement.

 

Downloads:
Average User Rating
(1 rating)




There are no comments on this document

More Like This

  • Retrieving data ...

More by DanS