Giter Club home page Giter Club logo

cryocon-22c-controller's Introduction

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, backend, **resource_params ): 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()

cryocon-22c-controller's People

Contributors

bicarlsen avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

mtenders

cryocon-22c-controller's Issues

Problem connecting over ethernet

I have my cryocon-22c connected over ethernet. I am unsure how to initialize this device properly using this package. I can use pyvisa to connect to the instrument via

instrument = rm.open_resource("TCPIP::192.168.0.5::5000::SOCKET")

however if I try to pass this as the for cc.CryoconController I get

'TCPIPSocket' object has no attribute 'upper'.

or if I try to pass "TCPIP::192.168.0.5::5000::SOCKET" as the I get

ValueError: Port must start with 'COM' or 'USB'

What is the right way to connect to this over TCPIP/ethernet?

connect problem

I also have problem when I try connect my cryocon-22c over ethernet. I am unsure how to initialize this device properly using this package. I can use pyvisa to connect to the instrument via

instrument = rm.open_resource("TCPIP::192.168.1.5::5000::SOCKET")

however if I try to pass this as the for cc.CryoconController I get

'Connot find resource: TCPIP::192.168.1.5::5000::SOCKET'

What is the right way to connect to this over TCPIP/ethernet?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.