To download NI software, including the products shown below, visit ni.com/downloads.
This example program emulates a handheld pH meter, and is based on a previous DevZone example for Traditional NI-DAQ (Legacy).
The program reads in voltage values from a pH probe connected to an E Series or equivalent DAQ device, while displaying the current pH measurement in a digital display and a gradiated color box. The program also offers a calibration subsection that allows the user to calibrate the ph probe and a data logging subsection.
This VI reads in a voltage from a pH probe, converts the voltage value to a pH and then displays the pH on the front panel. The probe uses a default calibration factor, however you can use the calibration option to self calibrate the meter. The calibration settings are stored in a datalog file (calibrate.dlg) so that the meter will retain the new calibration.
This is a modified version of the original pH Meter Traditional NI-DAQ (Legacy) code to work with DAQmx, now located with the rest of the Traditional NI-DAQ (Legacy Examples).
For more information on pH Measurements see the the Introduction to pH Measurements.
**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.