Connecting to K10CR1 by Thorlabs in Python
Instrument Card
The Kinesis K10CR1 is a compact, precision motorized rotation mount that accepts Ã1â optics and SM1-threaded components. It is also compatible with our 30 mm cage systems (and 60 mm cage systems when used with adapter K10CR1A3)
Device Specification: here
Manufacturer card: 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 K10CR1 in Python
Read our guide for turning Python scripts into Flojoy nodes.
PROTOCOLS > SCPI
To connect to a K10CR1 Motion using Qcodes Community, you can use the following Python script:
import qcodes as qcfrom qcodes.instrument_drivers.Thorlabs import Thorlabs_K10CR1
# Connect to the Thorlabs K10CR1 instrumentk10cr1 = Thorlabs_K10CR1("k10cr1", device_id=1, apt=apt)
# Print the hardware information of the deviceprint(k10cr1.get_idn())
# Set the position of the rotatork10cr1.position(90)
# Get the current position of the rotatorprint(k10cr1.position())
# Set the minimum velocity of the rotatork10cr1.velocity_min(1)
# Get the minimum velocity of the rotatorprint(k10cr1.velocity_min())
# Move the rotator in the forward directionk10cr1.move_direction(Thorlabs_K10CR1.RotationDirection.FORWARD)
# Stop the rotatork10cr1.stop()
# Move the rotator to the home positionk10cr1.move_home()
# Enable the rotatork10cr1.enable()
# Disable the rotatork10cr1.disable()
# Disconnect from the instrumentk10cr1.close()
Note: Make sure to replace device_id=1
with the appropriate device ID for your setup.