Skip to content

Connecting to LCC25 by Thorlabs in Python

Instrument Card

The LCC25 is a liquid crystal controller compatible with all Thorlabs LC Variable Retarders. The LCC25 will drive most nematic liquid crystal devices. The liquid crystal device is connected to the BNC voltage output port. The amplitude of the output voltage, adjusted by the front panel knob, and external signal, and a computer via a USB interface, controls the retardance of the LC device.

LCC25

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: Measure a solar panel IV curve with a Keithley 2400

Connect to the LCC25 in Python

PROTOCOLS > SCPI

from instrumentkit import Instrument, ConnectionType
from instrumentkit.contrib.thorlabs import LCC25
# Connect to the LCC25 Power Supply
instrument = Instrument.from_uri("tcp://<ip_address>:<port>", LCC25, connection_type=ConnectionType.TCP_IP)
# Print the name and version number of the device
print(instrument.name)
# Set the frequency at which the LCC oscillates between the two voltages
instrument.frequency = 10 # 10 Hz
# Set the output mode of the LCC25
instrument.mode = LCC25.Mode.voltage1
# Enable the output
instrument.enable = True
# Set the voltage value for output 1
instrument.voltage1 = 5 # 5 Volts
# Set the voltage value for output 2
instrument.voltage2 = 10 # 10 Volts
# Save the current settings to memory
instrument.save()
# Disconnect from the LCC25 Power Supply
instrument.disconnect()

Note: Replace <ip_address> and <port> with the actual IP address and port number of the LCC25 Power Supply.