Regen 3He SCT driver

This commit is contained in:
Douglas Clowes
2014-10-27 17:51:14 +11:00
parent 155d24588a
commit 13d3772078

View File

@ -172,6 +172,9 @@ proc ::scobj::he3_polanal::setValue {tc_root nextState cmd_str} {
set cmd "${cmd_str}${par}" set cmd "${cmd_str}${par}"
# setValue hook code starts # setValue hook code starts
set cmd "${cmd_str}" set cmd "${cmd_str}"
if {[string equal -nocase [sct target] "refresh"]} {
set cmd "${cmd_str}"
}
if {[string equal -nocase [sct target] "dn"]} { if {[string equal -nocase [sct target] "dn"]} {
set cmd "${cmd_str} -" set cmd "${cmd_str} -"
} }
@ -300,7 +303,7 @@ proc ::scobj::he3_polanal::mkDriver { sct_controller name device_class simulatio
hsetprop ${scobj_hpath}/analyser/spin nxalias "${name}_analyser_spin" hsetprop ${scobj_hpath}/analyser/spin nxalias "${name}_analyser_spin"
if {[string equal -nocase "${simulation_flag}" "false"]} { if {[string equal -nocase "${simulation_flag}" "false"]} {
${sct_controller} poll ${scobj_hpath}/analyser/spin 10 ${sct_controller} poll ${scobj_hpath}/analyser/spin 1100
${sct_controller} write ${scobj_hpath}/analyser/spin ${sct_controller} write ${scobj_hpath}/analyser/spin
} else { } else {
::scobj::he3_polanal::sics_log 9 "simulation_flag=${simulation_flag} => No poll/write for he3_polanal" ::scobj::he3_polanal::sics_log 9 "simulation_flag=${simulation_flag} => No poll/write for he3_polanal"
@ -388,7 +391,7 @@ proc ::scobj::he3_polanal::mkDriver { sct_controller name device_class simulatio
hsetprop ${scobj_hpath}/polariser/spin nxalias "${name}_polariser_spin" hsetprop ${scobj_hpath}/polariser/spin nxalias "${name}_polariser_spin"
if {[string equal -nocase "${simulation_flag}" "false"]} { if {[string equal -nocase "${simulation_flag}" "false"]} {
${sct_controller} poll ${scobj_hpath}/polariser/spin 10 ${sct_controller} poll ${scobj_hpath}/polariser/spin 900
${sct_controller} write ${scobj_hpath}/polariser/spin ${sct_controller} write ${scobj_hpath}/polariser/spin
} else { } else {
::scobj::he3_polanal::sics_log 9 "simulation_flag=${simulation_flag} => No poll/write for he3_polanal" ::scobj::he3_polanal::sics_log 9 "simulation_flag=${simulation_flag} => No poll/write for he3_polanal"