Inheco.IncubatorLib 1.0.2

dotnet add package Inheco.IncubatorLib --version 1.0.2
NuGet\Install-Package Inheco.IncubatorLib -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="Inheco.IncubatorLib" Version="1.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Inheco.IncubatorLib --version 1.0.2
#r "nuget: Inheco.IncubatorLib, 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 Inheco.IncubatorLib as a Cake Addin
#addin nuget:?package=Inheco.IncubatorLib&version=1.0.2

// Install Inheco.IncubatorLib as a Cake Tool
#tool nuget:?package=Inheco.IncubatorLib&version=1.0.2

Control library for INHECO Single Plate Incubator devices

Finder

Searching for Incubator(s) is currently limited to Windows and Linux OS only.

var incubators = new ComDeviceFinder().ScanPorts();
if (!incubators.Any()) {
    Console.WriteLine("No Incubator found.");
}

Instance

Incubator inc;
try {
    inc = new Incubator(incubators[0]);
} catch (Exception ex) {
    throw;
}

// ...
// finally dispose device to release COM-Port!
// inc?.Dispose();

Stacked devices

var subDevices = inc.GetAllSubDevices();
if (!subDevices.Any()) {
    Console.WriteLine("No stacked subdevices found.");
} else {
    // perform action commands on subdevice
    subDevices[0].OpenDoor();
    subDevices[0].CloseDoor();
}

Drawer control

inc.OpenDoor();
inc.CloseDoor();

Temperature control

inc.StartHeating(370); // 37.0 °C
var task = Task.Run(() => {
    for (int i = 0; i < 20; i++) {
        var res = inc.ReportActualTemperature();
        Console.WriteLine("Current Temp: " + res[0]); // main temperature
    }
});
// ...
await task;
inc.StopHeating();

Shaker control

// Shaker models only!
bool lw = inc.IsLabwarePresent();
if ( !lw ) {
    inc.ShakerLabwareDetection = false;
}
inc.StartShaking(160, 20); // 1600Hz, 2mm, 90°
var currentFrequency = inc.ReadShakerFrequency();
bool isShaking = inc.IsShakerEnabled();
inc.StopShaking();
isShaking = inc.IsShakerEnabled();

Advanced control and error handling

try {
    string res = inc.SendCMD("ABC1", 500); // 500ms timeout
} catch (IncubatorException) {
    throw;
}
Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  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 is compatible.  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.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Inheco.IncubatorLib:

Package Downloads
Inheco.SiLA2.Incubator.Server.Features

SiLA2 Server Driver including control library of INHECO Single Plate Incubator devices.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.2 210 1/2/2024
1.0.1 406 7/17/2023
1.0.0 230 7/17/2023

v1.0.2
- add net8.0 target
- update dependencies
v1.0.1
- update readme
v1.0.0
- initial release