Skip to content

The JNA (Java Native Access) Example module provides users with two examples for using a Dynamic Link Library (DLL) in Ignition

Notifications You must be signed in to change notification settings

IgnitionModuleDevelopmentCommunity/JNAScriptingFunction

Repository files navigation

JNAScriptingFunction

Overview

The JNA (Java Native Access) Example module provides users with two examples for using a Dynamic Link Library (DLL) in Ignition, both examples use a standard Windows DLL (kernel32.dll). This project exposes two functions from the Kernel32 library in the form of scripting functions in Ignition. This module is able to load DLLs written in C or C++.

Need to use a DLL written in C#?

JNA can load DLLs that use C linkage, and therefore will not natively support DLLs written in C#. To use a C# DLL, users can enable COM Interop in their build and then create a wrapper DLL in C/C++ that calls the C# DLL.

Alternatively, there is a 3rd party Visual Studio package available that may help simplify this process:https://www.nuget.org/packages/UnmanagedExports

Requirements

Ignition 8.0.2 or later

About

The JNA (Java Native Access) Example module provides users with two examples for using a Dynamic Link Library (DLL) in Ignition

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages