deviceDesc = orange cryostat with 100 mm sample space

defineTemperature tt
device stick_menu "ori4 sch5 sch ori4_old ill5p"
makenv tt -driver [lsdriver] {
  lsc_sensor tm B -sensor x77456 -sensorname VTI
  lsc_sensor ts C -sensorname sample
  lsc_sensor ts_2 D -sensor code -sensorname sample2
  lsc_loop set -loop 1 -channel B -maxheater 50W -resist 50Ohm -color green
  if {[lsdriver] eq "336_lsc"} {
    lsc_loop setsamp -loop 2 -channel C -maxheater 50W -resist 25Ohm -is sample -color dark_green
  }
}
tt set/limit 310
makeCCU4 ori4 nv n2 he

hupdate /nv/set 2
nv ctrl/minpulse_o 0.02
nv ctrl/minpulse_c 0.02
nv ctrl/prop_o 0.3
nv ctrl/prop_c 0.15
nv ctrl/hystpulse_o 0.2
nv ctrl/hystpulse_c 0.2

makenv table -driver table /tt/tm {
  "tt set/prop" "6:2 7:50 50:50 300:20"
  "tt set/integ" "6:999 7:50 10:50 50:20 300:5"
  "tt dblctrl/int2" "2:10 20:50 50:300 120:500 300:800"
  "tt dblctrl/prop_up" "20:0.1 50:0.4"
  "tt dblctrl/prop_lo" "20:0.1 50:0.8"
}
#  "smooth factor" "10:5 50:0.5 300:0.3"
#  "tt setsamp/prop" "50:20 300:10"
#  "tt setsamp/integ" "10:50 50:20 300:5"
#  "smooth tol" "10:5 50:5 300:10"

