deviceDesc = 4 K closed cycle cryostat (PE cell)

defineTemperature tt
makenv tt -driver [lsdriver] {
  lsc_sensor tm A -sensor x33924 -sensorname main
  lsc_sensor ts C -sensor x31320 -sensorname sample
  lsc_sensor te D -sensor psam -sensorname screen
  lsc_loop set -loop 1 -channel A -maxheater 100W -resist 25Ohm
  if {[lsdriver] eq "336_lsc"} {
    lsc_loop current -loop 3 -channel C -maxheater 0.59W -resist 220Ohm -loopname pewarmup -color hidden
  }
}
tt set/limit 320

appendVars tt.te/K/firstStage_T/7
catch {
  enableTable 0
}

#makeN2Fill

#makenv ep euro2k
#obj_list ep EuroThermPressure
#appendVars ep/%/Pressure

makeCCU4 ccrpe nv


makenv warmup -driver piloop -invar "tt" -outvar "tt current/manualpower" \
  -prop 0.0005 -int 120 -outmin 0 -outmax 0.053

GraphAdd warmup.output  kW Htr_wup auto
