Python Application

Prerequisites

  • Install koheron-python (pip install koheron)
  • Install numpy (pip install numpy)

Overview

The function connect is available in the Koheron Python library.

It creates a client object with a TCP connection to the instrument.

connect(host, instrument_name)

Example

The Python driver is called as follows:

from koheron import connect
from led_blinker import LedBlinker

client = connect('192.168.1.100', 'led-blinker')
driver = LedBlinker(client)

print(driver.get_forty_two())

See also