SiLA v1 control library for INHECO On Deck Thermal Cycler - ODTC® and INHECO Cell Incubator SCILA
$ dotnet add package Inheco.IhcPmsLibSiLAv1 .Net integration library by INHECO.
using IhcPmsLib;
using IhcPmsLib.Odtc;
using IhcPmsLib.Odtc.Factory;
using IhcPmsLib.Odtc.ResponseDataTypes.XML;
using System.Net;
PMS pms = new();
pms.StartEventReceiver();
using Odtc device = OdtcFactory.Create(pms, IPAddress.Parse("192.168.1.xxx"), TimeSpan.FromSeconds(10), null, null);
try {
device.GetStatus(out Status status);
device.Reset();
device.Initialize();
device.OpenDoor();
device.CloseDoor();
var res = device.ReadActualTemperature();
SensorValues sensorValues = res.ResponseData.SensorValues;
} catch (CommandException) {
throw;
} catch (SiLARequestException) {
throw;
} catch (SiLAResponseException) {
throw;
}