IOLink Python IOL_v1.8.0_release
All Classes Functions Pages
Installation

Environments

IOLink is natively (C++) available for following compilers:

  • Visual Studio 2017
  • Visual Studio 2019
  • Ubuntu 20.04 (gcc 9.x)
  • CentOS 8 (gcc 8.x)

The .NET wrapping of IOLink is compiled for .NET Standard 2.0 and it should be compatible with all implementations of .NET that support this standard.

Packages are currently tested for:

  • .NET Framework 4.6.1
  • .NET Core 3.1
  • .NET 6

Here is an array which gives all compatibility for handled languages:

Compilers C++ .NET Standard Python
MSVC 15 X 2.0 3.6, 3.8 - 3.12
MSVC 16 X 2.0 3.6, 3.8 - 3.12
Ubuntu 20.04 gcc 9 X 2.0 3.8 - 3.12
CentOS 8 gcc 8 X

Installation

IOLink is delivered as a PIP package for following platforms:

  • Visual Studio (MSVC 15)
  • Ubuntu 20.04 (GCC 9)

IOLink is only available for some versions of Python, depending of the platform. You can see all the supported versions in the previous table

Command to check your current installed python version:

python --version

IOLink installation requires pip module being installed. You can follow the installation steps here.

pip must be configured as follows:

pip config set index-url https://pypi.org/simple/
pip config set extra-index-url https://frbor-artifact01.emea.thermo.com/artifactory/api/pypi/internal-pip/simple

Then, you can install IOLink by simply writing this in your console:

pip install iolink

Integration in your program

In your code, the following line must be added to have access to IOLink functionalities:

import iolink

DLL sharing issue

As a reminder, there is an issue on Windows platforms concerning the management of DLLs from a library shared by many components of a unique application. You can find a good explanation of that problem on wikipedia.

IOLink purpose is to ease inter-operability between software components, and thus, can theorically be loaded by many components. The problem occurs when these components don't load the same version of IOLink. IOLink guarantees the binary-compatibility between two major versions. But some APIs can be added between two minor versions of IOLink, in the same major version. And if the component using the newest version of IOLink call one of these new APIs with the oldest version of the DLL, it will usually crash.

Thus, in a same software, if two components dynamically load two different versions of IOLink, there can be a issue even if these two versions are binary-compatible.

A solution is to always load the newest version of the library. By doing so, only one version of the DLL will be loaded and shared between all components.

IOLink provides some basic mechanisms which will help you to identify this issue:

  • current loaded version can be displayed at runtime
  • compatibility between current loaded version and version used in headers can be manually checked by calling the a Versioning method. In this case, a warning will be raised but won't block the execution.