Chat with us, powered by LiveChat

SDK for WPF .NET – Getting started

Add SDK References to the project

In Visual Studio: right-click on the References map in your project and click Add Reference:

Reference external libraries (*.dll files) by selecting them via the ‘Browse’ button and reference project files (*.csproj) by adding them to your solution and referencing the project. (Important! When using the PalmSens SDK without the simplified wrapper, the CoreDependencies must be initiated before you run a measurement, to do this invoke the PalmSens.Windows.CoreDependencies.Init() method one time beforehand)

The PalmSens.Core.dll and PalmSens.Core.Windows.dll libraries should always be referenced. If you wish to use the simplified wrapper to control your devices the PalmSens.Core.Simplified.csproj and PalmSens.Core.Simplified.WPF.csproj should be referenced. To use the plot control the SDKPlot.csprojSDKPlot.WPF.csprojOxyPlot.dll, and OxyPlot.Wpf.dll should be referenced.

Add PSCommSimpleWPF user control to your user interface (simplified wrapper only)

First import the PalmSens.Core.Simplified.csproj and PalmSens.Core.Simplified.WPF.csproj into your solution and build the PalmSens.Core.Simplified.WPF project. Then reference these projects in your project. Next, go to the designer of your Main Window and look for the psCommSimpleWPF user control in your toolbox. Drag and drop this component on your Window.