Connecting to CTC100 by Stanford Research Systems in Python
Instrument Card
CTC100 Cryogenic Temperature Controller—a high performance instrument that can monitor and control temperatures with millikelvin resolution.
The CTC100 Cryogenic Temperature Controller is configured to suit a wide range of research and industrial applications. The system consists of four sensor inputs, two powered and four analog voltage outputs, and up to six feedback control loops.
Device Specification: here
Manufacturer card: STANFORD RESEARCH SYSTEMS
Stanford Research Systems is a maker of general test and measurement instruments. The company was founded in 1980, is privately held, and is not affiliated with Stanford University. Stanford Research Systems manufactures all of their products at their Sunnyvale, California facility.
- Headquarters: Sunnyvale, California
- Yearly Revenue (millions, USD): 24.9
- Vendor Website: here
Connect to the CTC100 in Python
Read our guide for turning Python scripts into Flojoy nodes.
PROTOCOLS > SCPI
from instrumentkit import Instrument, ConnectionType
# Define the CTC100 Temperature Controller classclass CTC100(Instrument): def __init__(self, connection_type, address): super().__init__(connection_type, address)
# Define specific commands for the CTC100 Temperature Controller def get_temperature(self, channel): return self.query(f"{channel}.value")
def set_temperature(self, channel, temperature): self.sendcmd(f"{channel}.value = {temperature}")
# Create an instance of the CTC100 Temperature Controllerctc100 = CTC100(ConnectionType.TCP_IP, "192.168.1.100")
# Connect to the CTC100 Temperature Controllerctc100.connect()
# Get the temperature from channel 1temperature = ctc100.get_temperature("chan1")print(f"Temperature: {temperature}")
# Set the temperature of channel 2 to 25 degrees Celsiusctc100.set_temperature("chan2", 25)
# Disconnect from the CTC100 Temperature Controllerctc100.disconnect()
Note: This code assumes that you have Instrumentkit installed and that you have the necessary dependencies (such as numpy) installed as well.