Itt.ScaleApi
1.0.2
dotnet add package Itt.ScaleApi --version 1.0.2
NuGet\Install-Package Itt.ScaleApi -Version 1.0.2
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Itt.ScaleApi" Version="1.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Itt.ScaleApi --version 1.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Itt.ScaleApi, 1.0.2"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Itt.ScaleApi as a Cake Addin #addin nuget:?package=Itt.ScaleApi&version=1.0.2 // Install Itt.ScaleApi as a Cake Tool #tool nuget:?package=Itt.ScaleApi&version=1.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
ITT ScaleAPI
A set of API's for reading from laboratory milligram scales over serial. Includes tested support for Setra SI-2000S and Ohaus Adventurer.
Setra and Ohaus are trademarks of their respective owners. ITT has no relation with scale manufacturers.
Example usage
using Itt.ScaleApi;
void HandleError(object? sender, UnhandledExceptionEventArgs e)
{
Console.WriteLine(e.ExceptionObject);
}
void HandleReading(object? sender, ScaleMeasurementEventArgs e)
{
Console.SetCursorPosition(0, 0);
var stable = e.Stable ? "Stable" : " ";
Console.WriteLine($"{e.Weight,10:0.##} g {stable}");
}
using (var scale = SiScale.Create2400_8N1("COM8", HandleError))
{
scale.WeightChanged += HandleReading;
Console.ReadLine();
}
Console.WriteLine("Closed");
Notes on specific scales
Setra SI-2000S
- Manual is available at https://www.setra.com/hubfs/SI%20EL%20Manual%20v.C.pdf
- Default configuration is for 2400 8N1. Option to speed up to 9600 8N1 through mode/power button
Ohaus Adventurer ARA520
- Manual is available at https://dmx.ohaus.com/WorkArea/showcontent.aspx?id=3348
- Multiple modes available through front panel buttons
- Option to print when stable reading changes
- Default configuration is for 2400 7N2
- RS232 commands to scale seem to be ignored (cabling issue?)
- API is setup assuming "print when stable" is set
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net7.0
- System.IO.Ports (>= 7.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.