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.
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: Measure a solar panel IV curve with a Keithley 2400
Connect to the LCC25 in Python
Read our guide for turning Python scripts into Flojoy nodes.
PROTOCOLS > SCPI
from instrumentkit import Instrument, ConnectionTypefrom instrumentkit.contrib.thorlabs import LCC25
# Connect to the LCC25 Power Supplyinstrument = Instrument.from_uri("tcp://<ip_address>:<port>", LCC25, connection_type=ConnectionType.TCP_IP)
# Print the name and version number of the deviceprint(instrument.name)
# Set the frequency at which the LCC oscillates between the two voltagesinstrument.frequency = 10 # 10 Hz
# Set the output mode of the LCC25instrument.mode = LCC25.Mode.voltage1
# Enable the outputinstrument.enable = True
# Set the voltage value for output 1instrument.voltage1 = 5 # 5 Volts
# Set the voltage value for output 2instrument.voltage2 = 10 # 10 Volts
# Save the current settings to memoryinstrument.save()
# Disconnect from the LCC25 Power Supplyinstrument.disconnect()
Note: Replace <ip_address>
and <port>
with the actual IP address and port number of the LCC25 Power Supply.