To download NI software, including the products shown below, visit ni.com/downloads.
Overview
This example shows one way to convert an analog signal to a digital signal using LabVIEW.
Description
It monitors an analog input signal, and outputs a corresponding digital high or low depending on what the analog voltage is. If the voltage rises above 2.8V, a digital high is output. If the voltage drops below 0.8V, a digital low is output. As a note, we can leverage hysteresis fuction if we encounter any bouncing issue.
Requirement
LabVIEW 8.2 or compatible
NI-DAQmx 8.9 or compatible
Step to execute code
Additional Information or References
VI Snippet
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.