GithubHelp home page GithubHelp logo

adikos / tia-openness Goto Github PK

View Code? Open in Web Editor NEW

This project forked from maroder1/tia-openness

0.0 1.0 0.0 24 KB

Basic example on how to use Siemens TIA openness with Python, using pythonnet

License: MIT License

Python 100.00%

tia-openness's Introduction

Basic example on how to use openness with Python using Pythonnet

More examples on how to use Openness with Python:

https://github.com/Maroder1/Openness_examples_python

Installation of TIA Openness

  1. Install TIA v15.1 professional, make sure openness is checked [default] Link to TIA v15.1 trail
  2. Right clik "My computer" -> Manage -> System tools -> Local users and groups - > Groups-> Double click “Siemens TIA Openness” and add your username
  3. Edit the file path in the example file to match your installation of Siemens.Engineering.dll
  4. Download and install Python

Option 1, running directly (not recommended)

  1. in the windows search bar type "command prompt" to open Command Promt (CMD)
  2. Install pythonnet by typing: pip install pythonnet
  3. Browse to the location of the example file and type: Python opennesspy.py

Option 2, running in a Virtual environment(in this example using Miniconda (Anaconda))

  1. Download Miniconda
  2. Open Command Prompt (CMD)
  3. Create a new environment by typing: conda create --name opennesspy python=3.7
  4. Actiavte the environment: conda activate opennesspy
  5. Install pythonnet by typing: pip install pythonnet Note: installing using conda install didnt work.
  6. Browse to the location of the example file and type: Python opennesspy.py
  7. To leave the environment type conda deactiave

Optional: instead of manually installing use the provided environment.yml file

Recommandation: develop using Jupyter Notebook

  1. Start Command Promt (CMD) as administrator (right click). Do not enter any environment yet.
  2. Install Jupyter (and nb_conda as well as ipykernel to get your environments listed: conda install jupyter nb_conda ipykernel
  3. Activate the environment you want to add to jupyter kernel: conda activate myenv
  4. Install ipykernel in the environment (do this for all envvironemnts you would like to add): conda install ipykernel
  5. To start Jupyter, cd to root (cd .. until you are at C:) then type (does not need to be inside and env): Jupyter noteboook
  6. You might need to confrim that it shall open in a web browser (I use chrome)
  7. Once open in a browser navigate to the folder of your choice, then make a new python 3 file.
  8. Once inside click Kernel -> Change kernel and select the conda env you would like
  9. To run a cell: either use the run button, or shift + enter.

tia-openness's People

Contributors

maroder1 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.