Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The programming in many of your projects will consist of C# or VB.Net 100% managed code that is designed to run in the Microsoft .NET framework.

FactoryStudio now includes Python as an additional a programming language that you can use in Code Behind, Scripts, Tasks, and interactively via external Python code.

Python is an interpreted, high-level, general purpose language. Among its many uses, it is   also   It is a popular language for machine learning, which is useful for things like Predictive Maintenance algorithms.

Factory Studio can use any version of Python even , 3.x or the older and past end-of-life 2.x. 

...

Python Interpreter

The first step required to enable use Python programming is to include a link to the version of the Python interpreter you want to use for your project. 

...

During the installation of the Python Engine, we strongly recommend choosing the option to “Install for all users”.



Now you need to include add the interpreter to your project. Navigate to Info > Settings tab and search for the Python field. Click on the button, browse to find the installed Python Engine that was installed, and select the python.exe file.

...

Python for .NET is a package that gives Python programmers nearly seamless integration with the .NET Common Language Runtime (CLR) and provides a powerful application scripting tool for .NET developers.

It allows Python for .NET allows Python code to interact with the CLR and may also be used to embed Python into a .NET application. The installation files and documentation are available in this linkhere.

Check to see whether your Python and Windows version is versions are 32-bit or 64-bit before you download Python for .NET. This is only required only if you intend to use the Python namespace in the Studio Scripts and Display CodeBehinds.

...