Virus scan in progress. Please wait to download attachments.
Overview This VI package reads the temperature from a DS18B20 and/or DS18S20 1-wire temperature probe via a serial adapter (DS9097U) or USB adapter (DS9490R). The VIs only use the TMEX DLLs.
This program uses the TMEX API to start a session, detect measurements, read measurements, and end a session with the DS18B20 or DS18S20 1-wire temperature probes. The probes are connected to the PC via a serial or USB adapter.
Software LabVIEW 2012 (or compatible) Hardware 1-wire COM port adapter (DS9097U) or USB adapter (DS9490R)
Instructions 1. Extract files 2. Open and run "Reading several 1-wire probes via a serial or USB adapter.vi"
Additional Information or References
6 Dec 2006: My previous example didn't work with several temperature sensors on the same net so I updated so that it works. The new example measures all temperature sensors on a net and place the results in an array and indicates how many were found.
7 Dec 2006: Created a cluster to get together the temperature with the sensor ID.
3 Apr 2007: Someone had problem with interfacing a DS18S20 so I got some samples from Maxim (thank you) and I could update the VIs accordingly. The temperature reading is a bit different so I made 2 VIs, one for each.
**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.