Skip to content

DAsh0244/te107_control

Folders and files

NameName
Last commit message
Last commit date

Latest commit

4052018 · Jun 14, 2019

History

13 Commits
Feb 26, 2019
Jun 14, 2019
Feb 26, 2019
Jun 14, 2019
Jun 14, 2019

Repository files navigation

Python library for controlling TestEquity TE series Temperature Chambers

This is a library that (partially) implements the SCPI based interface of the Watlow controllers used by the TestEquity TE series of Environmental chamber.

Table of Contents

Requirements:

  • Python 3+

This library only uses built-in python libraries.

Usage:

  1. Install Python
  2. Install Git
    • Ensure to add git to your PATH if it is not already.
  3. Clone this repository:
    • git clone https://github.com/an-oreo/te107_control
  4. Ensure to include the file f4t_control.py in your project to use.
  5. In the file you intend ot use this, ensure to import f4t_control

Example Usage:

from time import sleep
from f4t_control import (F4TController, RampScale, TempUnits)

# setup a temperature sweep
temp_units = TempUnits['C']
start = -40
stop = 125
step = 5
ramp_time_min = 3.0
soak_time_min = 7.0
temps = range(start,stop+step,step)

# instantiate the unit
x = F4TController(host='169.254.250.143',timeout=1)

# configure unit for sweeping temperature
x.set_ramp_time(ramp_time_min)
x.set_ramp_scale(RampScale.MINUTES)
# ensure chamber is enabled:
x.set_output(1,'ON')
# ensure units 
x.set_units(temp_units)

for temp in temps:
    print('ramping to temperature {}'.format(temp))
    x.set_temperature(temp)
    # wait for ramp time to finish
    sleep(ramp_time_min*60)
    while abs(x.get_temperature() - temp) > 0.2:
        sleep(1.0)
    # begin soak
    print('beginning soak at temp {}'.format(x.get_temperature()))
    sleep(soak_time_min*60)

# turn off unit
print('completed sweep!')
x.set_output(1,'OFF')
x.set_temperature(22)
# cleanup for socket connection is handled automatically

TODO:

  • More Complete Documentation
  • Examples
  • Quick Diagnostics
  • Tests
  • Package?
  • Contributing?

About

Python interface to control Watlow f4t controllers

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages