Set PYTHONPATH environment

Hi Patricia,

Unfortunately, the Python used in Ignition is actually Jython 2.7 (for Ignition v8.0).

That means you cannot run a Python library that’s written for python 3, and you cannot run a Python library that needs C(++) bindings. So you will not be able to use the pydim library directly.

Your two options are:

  • Use pyDIM as an external program, and communicate via the OS (i.e. https://stackabuse.com/executing-shell-commands-with-python/). This is probably the faster way to implement, but quite hacky so probably slow and unreliable.
  • Use the Java bindings, and create your own Ignition module. This is probably more stable, but also more work to implement.
1 Like