deviceDesc = CCR with JT-stage

defineTemperature tt

makenv tt -driver [lsdriver]  {
  lsc_sensor main A x63710
  lsc_sensor ccr B x67737
  lsc_loop set -loop 1 -channel A -maxheater 5W -resist 500Ohm
}

makenv table -driver table /tt/tm {
  "tt set/prop" "10:100 30:100 50:200 100:500 300:500"
  "tt set/integ" "10:100 50:100 100:50 300:0.5"
}

makenv jtccr jtccr

makenv p1 dtm -port jtccr-ts:3001 1.
GraphAdd p1 mbar p1 red

makenv p2 dtm -port jtccr-ts:3002 1.
GraphAdd p2 bar p2 green

makenv p3 dtm -port jtccr-ts:3003 1.
GraphAdd p3 bar p3 blue

makenv p4 dtm -port jtccr-ts:3004 1.
GraphAdd p4 bar p4 yellow

makenv -objname pressreg  -driver bronkpreg  -port jtccr-ts:3005  18
GraphAdd pressreg bar preg magenta 

#makenv -objname v -driver svumot -port jtccr-ts:3006 {
#  v1 1 v2 2 v3 3 v4 4 v5 5 v6 6 v7 7 v8 mot
#}

makenv epc epc8210 -port jtccr-ts:3007 {jt-compressor 1 jt-pump 2 ccr-compressor 3}



#makenv clt -driver loop -invar "/tt" -outvar "v motpos/set" \
#  -outmin 0.06 -outmax 0.9 -prop -1 -int 20 -maxdelta 10 -precision 0.01

#makeCCU4 jtccr n2 

#makenv n2 n2_ccu ccu
#appendVars n2.upper/K2/N2_Upper n2.lower/K2/N2_Lower

makenv v -driver ccu4 -port jtccr-ts:3006 valves valve

GraphAdd v.nu K_2 N2_upper
GraphAdd v.nl K_2 N2_lower
