The External C Library Node
Use the External C Library node () to import a compiled native code library based on, for example, C code that you want to include in a method. To add a new External C Library node, right-click the Libraries node () and choose External C Library or click the External C Library button in the ribbon toolbar. Enter a label to display in the Label field and a name for the external C library in the Name field.
You can import native libraries that are written in any programming language and compiled for the target platform of your application. This can be useful, for example, to access specific hardware (such as measurement devices) attached to the computer or to speed up heavy calculations. The methods you want to call must follow the C language calling convention for the specific platform. Many programming languages can produce methods that fulfill this requirement.
In the Settings window, expand the sections corresponding to the platforms you intend to support, and then browse and select the shared libraries you want to import. On the Windows® operating system, the file extension of a shared library is typically DLL, on Linux® the extension is typically so, and on macOS it is typically dylib. Click the Reload button if you have changed the file in the file system and want to import the new version into the application. Click the Edit button to select a different file to import into the application.
The Settings window for an External C Library node contains the following sections.
Import Library for Windows, 64-Bit
This section is expanded by default. Click Browse to locate and choose a compiled native code library file (DLL file) for 64-bit Windows®.
Import Library for Linux, 64-Bit
Click Browse to locate and choose a compiled native code library file (.so file) for 64-bit Linux®.
Import Library for macOS, 64-Bit
Click Browse to locate and choose a compiled native code library file (dylib file) for 64-bit macOS.
Loading
By default, the Allow loading on unsupported platform check box is selected so that it is possible to load the shared libraries on platforms that they do not support. On such a platform, an error occurs when you try to access the library from a method. If you clear the check box, you get an error message directly if you try to start the application on an unsupported platform, and the application does not start.