Introduction
"GetTemps.exe" is an example program that reads 1-Wire digital
thermometers and outputs temperatures to a text box. Not all 1-Wire
thermometer devices are covered by this application, just those that have a
OneWireContainer in the API that implement the TemperatureContainer interface.
This particular example was written in Microsoft Visual Basic .NET through
Visual Studio .NET 2005.
Requirements
1-Wire Drivers version 4.00
or higher, with the OneWireAPI.NET.dll in the same directory as the executable.
.NET Framework 2.0 Redistributable:
Visual J# .NET 2.0 Second Edition Redistributable:
When compiling this program, make sure that the program references
“vjslib”, and the OneWireAPI.NET.dll.
Before running this program, make sure to set the default 1-Wire adapter settings to the preferred type (usually "{DS9490}") and number (usually "USB1"). This can be done by running the "Default 1-Wire NET.exe" program found in the 1-Wire Drivers application directory.
Operation
To run the
GetTemps.exe, double-click the pre-compiled executable in the ..\bin
directory. A window with a text box and button will
appear. Clicking the button will start a 1-Wire digital thermometer
search. The results of the search and the appropriate temperature will
appear in the text box.
Files
AssemblyInfo.vb
- VB.NET assembly file.
GetTemps.sln - VB.NET GetTemps solution file (opens project solution)
GetTemps.vbproj - VB.NET project file.
GetTemps.vbproj.user - VB.NET project user file.
GetTempsMainForm.resx - VB.NET resource file.
GetTempsMainForm.vb - GetTemps main form.
Readme.html - This file.
..\..\..\..\Lib\OW.NET\OneWireAPI.NET.dll - 1-Wire API
..\bin\GetTemps.exe - Program executable.