PalmSens SDK for WinForms

With this PalmSens Software Development Kit you develop Windows applications in Visual Studio .NET using WinForms. WinForms is a UI framework that creates rich desktop client apps for Windows. The SDK can be used with all PalmSens instruments and potentiostat modules. 

Scroll down to the download section

WinForms, to develop classic Windows applications

If your plan is to develop your own Windows application to control any of our potentiostats or potentiostat modules, it is best to get started with any of our PalmSens SDKs for .NET. Even with little programming experience, you will be able to build your own application. Every SDK is accompanied by a set of code examples that can easily be changed to suit your requirements. The SDKs allow you to target different .NET frameworks, including:

  • WinForms (classic Windows applications)
  • WPF and UWP (for modern Windows apps)

Available libraries and projects

The PalmSens SDK consists of the following libraries and projects

Libraries explained

There are two sets of libraries: Instrument control and Plot

The open-source PalmSens.Core.Simplified and PalmSens.Core.Simplified.WinForms projects are basically a wrapper for the PalmSens.Core.dll and PalmSens.Core.Windows.dll. The wrappers give you quick and easy access to all the basic functions of the PalmSens instruments and modules and automatically handles most potential threading issues for you. We strongly recommend including these wrapper projects as references to your own projects. The wrapper simplify;

  • connecting;
  • manual control of the cell;
  • running measurements;
  • and accessing and processing measured data

The PalmSens.Core and PalmSens.Core.Windows libraries contain the namespaces with all the necessary files for using PalmSens/EmStat devices in your software. These namespaces are:

Library Description
PalmSens all necessary classes and functions for performing measurements and doing analysis with PalmSens or EmStat.
PalmSens.Comm for Serial, USB or TCP communication with PalmSens or EmStat
PalmSens.DataFiles for saving and loading method and data files
PalmSens.Devices for handling communications and device capabilities
PalmSens.Techniques contains all measurement techniques for PalmSens and EmStat
PalmSens.Units contains a collection of units used by these libraries

The SDKPlot and SDKPlot.WinForms projects (.csproj) are a wrapper for the open-source plot control. These wrappers allow you to easily plot your measurements (in real-time). These projects require the libraries OxyPlot.dll and OxyPlot.WindowsForms.dll.

These libraries again are based on the open-source OxyPlot library, https://oxyplot.github.io.

WinForms examples: how to connect and run a measurement

The code below shows an example using asynchronous programming to prevent the PalmSens SDK libraries from blocking the user interface. The Basic Example Async shows how to make a connection and run a measurement, with a minimum amount of code. All examples are included in the SDK.

public Form1()
{
    InitializeComponent();
    InitLSVMethod(); //Create the linear sweep voltammetry method that defines the measurement parameters
    InitDataGrid(); //Set up the columns for the datagridview control
    DiscoverConnectedDevices(); //Populate the connected device combobox control
}