﻿from voetsch import VT4002

# define connection parameters
ip_address = "129.27.158.42"
username = "myuser"   # fill in the username on the front of the climate chamber
password = "mypass"   # fill in the password on the front of the climate chamber

# connect to the climate chamber
climate_chamber = VT4002(ip_address, username, password)

climate_chamber.enable()

for T in range(-40,135):
    climate_chamber.go_to_temperature(T, 0.2, 60)

    #Read out the current temperature and print the result to the console
    temp = climate_chamber.get_actual_temperature()
    print('Current temperature (°C): ' + str(temp))

    # make some measurement at each temperature

#Bring the climate chamber to room temperture so you can safely open it
climate_chamber.go_to_temperature(20, 2, 60)

climate_chamber.disable()
