deviceDesc = DIL SC with additional LakeShore 372 and nanovolt meter for fixpoint device

proc triton {kind obj name db col} {
  makenv $obj -driver itc$kind -port dilsc.psi.ch:33576 -controller _tritondil $db
  switch $kind {
    temp {
      GraphAdd $obj K_3 T_$name
      # GraphAdd $obj.raw Ohm_3 R_$name
    }
    press {
      GraphAdd $obj mbar_2 p_$name
    }
  }
}

triton temp tpt2head pt2head T1 dark_violet
triton temp tpr2plate pt2plate T2 brown
triton temp tstill still T3 orange
triton temp tcoldpl coldpl T4 grey
triton temp tmixcx mixcx T5 cyan
triton temp tpt1head pt1head T6 cyan
triton temp tpt1plate pt1plate T7 cyan
triton temp tmix mix T8 cyan
triton temp pucksensor puck TA red
triton temp tmagnet tmagnet T13 black

triton press pdump dump P1 cyan
triton press pcond cond P2 blue
triton press pstill still P3 black
triton press pback back P4 red
triton press pfore fore P5 green

# LakeShore 372

makenv res -driver 372_lsc -port dilsc.psi.ch:7777 {

lsc_sensor foil 1 -sensor U08130 -excitation 200uV -filter 1
#lsc_sensor atto_mid 1 -sensor U08127 -excitation 200uV -filter 1
#lsc_sensor atto_top 2 -sensor U08130 -excitation 200uV -filter 1
#lsc_sensor ch3 3 -sensor raw -excitation 20uV -filter 1
#lsc_sensor ch4 4 -sensor raw -excitation 20uV -filter 1
lsc_sensor Al_1  7  -sensor raw -excitation 1uA -filter 1
lsc_sensor Al_2   8  -sensor raw -excitation 1uA -filter 1
#lsc_sensor ch7 7 -sensor raw -excitation 20uV -filter 1
#lsc_sensor ch8 8 -sensor raw -excitation 20uV -filter 1

# heater output 0 (=sample heater) for channel 4 (still)
#lsc_loop set -loop 0 -channel 1 -maxheater 100mA -resist 100

}

# Stuff for calibrations with fixed point device

#defineTemperature tmix

#makenv cmn -driver cmnnanov -port dilsc.psi.ch:3000

#GraphAdd cmn.u1 V cmn
#GraphAdd cmn.u2 V fixp

#makenv softloop -driver piloop -invar "/cmn/temp" -outvar "res set/manualpower" \
#  -inpfunc 1 -outfunc 1 -outlinear 1e-7 -precision 1e-15 -outmin 1e-11 -outmax 0.1

#GraphAdd cmn.temp K
#GraphAdd softloop.reg K cmn_reg
#GraphAdd softloop.target K cmn_target

#GraphAdd res.ch1 Ohm
#GraphAdd res.ch2 Ohm
#GraphAdd res.ch3 Ohm
#GraphAdd res.ch4 Ohm
#GraphAdd res.ch5 Ohm
#GraphAdd res.ch6 Ohm
GraphAdd res.Al_1 Ohm
GraphAdd res.Al_2 Ohm


#GraphAdd res.atto_mid.raw Ohm
#GraphAdd res.atto_top.raw Ohm
