Introduction
"GetA2DVolts.exe" is an example program that reads 1-Wire A2D
channels and outputs the voltages to a text box. Not all 1-Wire A2D
devices are covered by this application, just those that have a
OneWireContainer in the API that implement the A2DContainer 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
GetA2DVolts.vbs script, you have 2 options:
1) Double-click the file. Windows Message Boxes will display
the results.
2) From a command prompt, run it by typing in "cscript
GetA2DVolts.vbs"
followed by a return.
Files
AssemblyInfo.vb
-
VB.NET module containing manufacturer data
GetA2DVolts.sln
- Visual Studio .NET solutions file
GetA2DVolts.vbproj -
VB.NET project file
GetA2DVolts.vbproj.user -
VB.NET project user file
GetA2DVolts.resx
- VB.NET resources file
GetA2DVolts.vb
- VB module containing source to program
Readme.html
-
This file.
..\..\..\..\Lib\OW.NET\OneWireAPI.NET.dll - 1-Wire API
..\bin\GetA2DVolts.exe
- Program executable.