Getting Started with Python

This page is a starting point for controlling your Zahner IM7 with Python and the zahner_link library.

It is not a programming course. We will not teach you how to program, others do that far better than we could, and there is a wealth of excellent, free material available for exactly that purpose. Instead, this page points you to the right resources and shows you how to take your first steps, whether you have written code before or not.

Why Python

Zahner uses Python for instrument integration because it is beginner-friendly, free to use, and supported by a large, helpful community. For scientific work it is especially attractive thanks to mature packages such as NumPy, SciPy, and Matplotlib, which let you process and plot measurement data in a way similar to MATLAB or Origin.

Learning Python

If Python is new to you, start with the official beginner’s page:

https://www.python.org/about/gettingstarted/

It explains how to install Python on your computer and links to guides and tutorials that walk you through the basics step by step. Take your time here - a little familiarity with the language goes a long way before you start automating measurements.

Choosing an Editor

To write and run your code, we recommend Visual Studio Code. It is free, widely used, and works well for scientific Python development.

Install the official Python extension to get features such as syntax highlighting, code completion, and an integrated way to run your scripts.