Our office will be closed from December 23, 2020 to January 3, 2021. Orders placed during this time will be processed starting on January 4, 2021.

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

[email protected]