deviceDesc = Dilution for myonium (Anna Soter)

makenv tt -driver 372_lsc -port anna-ls372.psi.ch:7777 {
  lsc_sensor ctrl A -sensor X142466 -excitation 2mV -filter 10
  lsc_sensor mixtop 1 -sensor ruoxben1k -excitation 20uV -filter 1
  lsc_sensor mixbot 2 -sensor ruoxben1k -excitation 20uV -filter 1
  lsc_sensor mixaux 3 -sensor RO1975  -excitation 20uV -filter 1
  lsc_sensor still 4 -sensor ruoxben1k -excitation 200uV -filter 1
  lsc_sensor lam 6 -sensor X133322 -excitation 2mV -filter 1
  lsc_sensor shield 7 -sensor X101105 -excitation 2mV -filter 1
  lsc_sensor target 8 -sensor X142469 -excitation 2mV -filter 1

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

  # heater output 1 for channel A
  lsc_loop warmup -loop 1 -channel A -maxheater 100mA -resist 60 -loopname warmup

  # still control implemented as soft loop on output 2
  # see also at the end of this file
  lsc_analog -maxuser 10 -maxvolt 10

  #GraphAdd tt.ctrl.raw Ohm R_ctrl
  #GraphAdd tt.mixtop.raw Ohm R_mixtop
  #GraphAdd tt.mixbot.raw Ohm R_mixbot
  #GraphAdd tt.mixaux.raw Ohm R_mixaux
  #GraphAdd tt.still.raw Ohm R_still
  #GraphAdd tt.lam.raw Ohm R_lam
  #GraphAdd tt.shield.raw Ohm R_shield
  #GraphAdd tt.target.raw Ohm R_target
}

tt set/prop 2
tt set/integ 5

makeCCU4 he3ann he
cc hav 1
cc hea 1

# slow time interval
cc hts 40
# fast time interval
cc htf 10
# he full level
cc hfu 1
# he empty level
cc hem 105
# stop filling
cc hh 95
# measuring current (higher than normal, due to turbulences)
cc hd 100

# 250 l vessel:
cc hem0 720

makenv flow -driver bronkgen -port he3anna-ts:3004 flow 1

GraphAdd flow ln/min

makenv p -driver pfeiffermulti -port he3anna-ts:3003

GraphAdd p mbar p1
GraphAdd p.p2 mbar p2
GraphAdd p.p3 mbar p3
GraphAdd p.p4 mbar p4
GraphAdd p.p5 mbar p5
GraphAdd p.p6 mbar p6

makenv still -driver piloop -invar "/tt/still" -outvar "tt analog2" \
  -prop 200 -int 15

