Skip to content

Connecting to KIM001 by Thorlabs in Python

Instrument Card

This single-channel piezo inertia controller provides a voltage output for a single piezo inertia stage or actuator. The top panel features a spring-loaded scroll wheel for driving the stage or actuator as well as selecting menu options.

KIM001

Device Specification: here

Manufacturer card: THORLABS

THORLABS

Thorlabs, Inc. is an American privately held optical equipment company headquartered in Newton, New Jersey. The company was founded in 1989 by Alex Cable, who serves as its current president and CEO. As of 2018, Thorlabs has annual sales of approximately $500 million.

  • Headquarters: USA
  • Yearly Revenue (millions, USD): 550
  • Vendor Website: here

Demo: Send commands to a Polulu stepper motor driver

Connect to the KIM001 in Python

PROTOCOLS > SCPI

To connect to a KIM001 Positional Controller using Instrumentkit, you can use the following code:

import instrumentkit as ik
# Define the connection parameters
port = "/dev/ttyUSB0"
baudrate = 115200
# Connect to the KIM001 controller
controller = ik.thorlabs.APTPiezoInertiaActuator.open_serial(port, baud=baudrate)
# Get the first channel of the controller
channel = controller.channel[0]
# Enable the channel
channel.enabled_single = True
# Move the channel to a specific position
channel.move_abs(1000)

This code connects to the KIM001 controller using the open_serial method from the APTPiezoInertiaActuator class. It then gets the first channel of the controller and enables it using the enabled_single property. Finally, it moves the channel to a specific position using the move_abs method.