A package for controlling CryoCon 22C Temperature Controllers
Project description
CryoCon 22C Temperature Controller
Install with
python -m pip install cryocon-22c-controller
API
A CryoconController is a SCPI instrument and uses the easy-scpi package for means of communication. Thus, all the methods and properties of an easy_scpi.Instrument can be called.
Channels can be referenced either by their given name or their letter. All commands generate a response from the controller, so only queries are performed to keep command and response synched.
Methods
CryoconController( port, timeout, baud ): Creates a new CryoconController instance.
max_temperatrue( loop ): Returns the maximum set point temperature of the given loop.
channel_max_temperatrue( loop ): Returns the maximum set point temperature of the loop controlling the given channel.
temperature( channel ): Returns the current temperature of the given channel
get_channel_loop( channel ): Returns the loop controlled by the given channel.
get_range( loop ): Gets the output range for the loop. Values are [ 'hi', 'mid', 'low' ].
set_range( loop, range ): Sets the ouput range for the loop. Range values are [ 'hi', 'mid', 'low' ].
get_ouput( loop ): Gets the power output of the loop as a fraction of the full range.
set_point( channel ): Returns the set point of the given channel.
set_temperature( channel, temperature ): Sets the set point of the controlling loop of the given channel.
lock( lock ): Locks or unlocks the front key pad.
enable(): Engages the temperature controller.
disable(): Stops the tempreature controller.
auto_adjust_range( low_threshold, high_threshold, channles ): Automatically adjusts the power range.
Properties
channels: A dictionary of aliases of the channels.
channel_names: A dictionary of given name of the channels.
loops: A dictionary of loop:input source pairs.
max_temps: A dictionary of maximum set point temperatures for each loop.
units: A dictionary of units for each channel.
enabled: Returns whether the temperature controller is currently engaged.
Example
# import package
import cryocon_22c_controller as cc
# Create a controller
cryo = cc.CryoconController( <port> )
# Connect to the controller
cryo.connect()
# Check if controller is connected (inherited from easy_scpi.Instrument)
cryo.is_connected
# Get channel names
cryo.channels
# Read the current set point temperature of channel a
cryo.set_point( 'a' )
# Set the desired temperature set point on channel b
cryo.set_temperature( 'b', 100 )
# Enable controller
cryo.enable()
# Disable controller
cryo.disable()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for cryocon-22c-controller-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d37e6a5da4de253a001b47aefb875b741bf6bdf11c06384031c5c816e2832ebf |
|
MD5 | b0bb83d48cfd1d8e1432583da47a182e |
|
BLAKE2b-256 | 674158ef17486cd381d05de8ab42f1620323dca572e6b9fa4001b2ac6ee24d3c |
Hashes for cryocon_22c_controller-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 313a9ec7a31414afdcb03df62c1b760112af0bf0c18e9decb0f51acfdf2c5b2f |
|
MD5 | a840c208461bbadc91532b1912734165 |
|
BLAKE2b-256 | db7efb33c61f63a4610d9da4249ddf300f212ae2fd3e343ce156d07cef75d2de |