To download NI software, including the products shown below, visit ni.com/downloads.
Overview
This VI outputs a sine wave, with a frequency determinable at run time via user input, and then outputs a digital spike every time the downwards crossing of the x-axis occurs.
Description
A sine wave is simulated, the frequency of which can be changed at run time based upon user input. Thereafter, the value is measured and analyzed in comparison to the one before it, and when the x-axis is crossed from positive to negative a single digital high will be created.
The intended use case for this is threefold:
Requirements
Steps to Implement or Execute Code
Additional Information or References
VI Snippet
**This document has been updated to meet the current required format for the NI Code Exchange.**
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.