deviceDesc = flow cryo for hifi

device stick_menu "flow flow_1"

defineTemperature tt

makenv tt -driver 336_lsc -port pstc003:7777 {
  lsc_sensor tm D -sensor x85571 -sensorname evap
  lsc_sensor tsep C -sensor x86021 -sensorname sep
  lsc_sensor tcon B -sensor x86028 -sensorname conus
#  lsc_sensor ts A -sensorname sample
  lsc_sensor tshd A -sensor pt-1000 -sensorname shield
  lsc_loop set -loop 1 -channel D -maxheater 25W -resist 50Ohm
  lsc_loop setcon -loop 2 -channel C -maxheater 35W -resist 35Ohm
}
tt set/limit 310

makenv table -driver table /tt/tm {
  "tt set/prop" "50:50 300:20 400:10"
  "tt set/integ" "10:50 50:20 300:5"
  "tt dblctrl/int2" "10:10 50:100 300:600"
  "tt dblctrl/prop_up" "20:0.1 50:0.4"
  "tt dblctrl/prop_lo" "20:0.1 50:0.8"
}


# -- max flow 50ln/min
# psts243 for tests RA36 10-JUN-2015
#makenv -objname shieldflow  -driver bronkfreg  -port psts243:3006  50 Shield_Flow
makenv -objname shieldflow  -driver bronkfreg  -port halflow-ts:3001  50 Shield_Flow
GraphAdd shieldflow lnmin Flow_shield red

# -- max flow 20 ln/min
# psts243 for tests RA36 10-JUN-2015
#makenv -objname tflineflow  -driver bronkfreg  -port psts243:3008  20 Transfer-line_Flow
makenv -objname tflineflow  -driver bronkfreg  -port halflow-ts:3002  20 Transfer-line_Flow
GraphAdd tflineflow lnmin Flow_tfline magenta


makeobject magnet array
magnet makeitem field
#makeNv

makenv v -driver ccu4 -port halflow-ts:3003 valves valve6 aux
v fav 1

GraphAdd v.f mbar pump_pressure
GraphAdd v.ax mbar sample_pressure

#makenv hvac -driver pfeiffertpg -port ldmlab1-ts:3013

 
