PalmSens SDK for WPF

With this PalmSens Software Development Kit you develop Windows applications in Visual Studio .NET using Windows Presentation Foundating (WPF). WPF is a UI framework that is resolution-independent and uses a vector-based rendering engine. The SDK can be used with all PalmSens instruments and potentiostat modules. 

Scroll down to the download section

WinForms, to develop classical 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.UWP projects are basically a wrapper for the PalmSens.Core.dll and PalmSens.Core.UniversalWindows.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.UniversalWindows 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.UWP 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 library/project OxyPlot.dll and OxyPlot.Windows.csproj.

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

WPF 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 MainWindow()
        {
            InitializeComponent();
            DataContext = this; //Set the DataContext, needed to bind the measured data to the DataGrid control
            InitLSVMethod(); //Create the linear sweep voltammetry method that defines the measurement parameters
            DiscoverConnectedDevices(); //Populate the connected device combobox control
        }