Generated sct tcl drivers from sct templates.
This commit is contained in:
@@ -210,7 +210,7 @@ proc ::scobj::shutters::mkDriver { sct_controller name } {
|
||||
hsetprop ${scobj_hpath}/fast_shutter read_switch_pair ${ns}::read_switch_pair ${scobj_hpath}
|
||||
hsetprop ${scobj_hpath}/fast_shutter control true
|
||||
hsetprop ${scobj_hpath}/fast_shutter data true
|
||||
hsetprop ${scobj_hpath}/fast_shutter mutable false
|
||||
hsetprop ${scobj_hpath}/fast_shutter mutable true
|
||||
hsetprop ${scobj_hpath}/fast_shutter nxsave true
|
||||
hsetprop ${scobj_hpath}/fast_shutter oldval UNKNOWN
|
||||
hsetprop ${scobj_hpath}/fast_shutter klass "collimator"
|
||||
@@ -226,7 +226,7 @@ proc ::scobj::shutters::mkDriver { sct_controller name } {
|
||||
hsetprop ${scobj_hpath}/rough_100 check ${ns}::checkrange ${scobj_hpath}
|
||||
hsetprop ${scobj_hpath}/rough_100 control true
|
||||
hsetprop ${scobj_hpath}/rough_100 data true
|
||||
hsetprop ${scobj_hpath}/rough_100 mutable false
|
||||
hsetprop ${scobj_hpath}/rough_100 mutable true
|
||||
hsetprop ${scobj_hpath}/rough_100 nxsave true
|
||||
hsetprop ${scobj_hpath}/rough_100 values in,out
|
||||
hsetprop ${scobj_hpath}/rough_100 oldval UNKNOWN
|
||||
@@ -243,7 +243,7 @@ proc ::scobj::shutters::mkDriver { sct_controller name } {
|
||||
hsetprop ${scobj_hpath}/rough_40 check ${ns}::checkrange ${scobj_hpath}
|
||||
hsetprop ${scobj_hpath}/rough_40 control true
|
||||
hsetprop ${scobj_hpath}/rough_40 data true
|
||||
hsetprop ${scobj_hpath}/rough_40 mutable false
|
||||
hsetprop ${scobj_hpath}/rough_40 mutable true
|
||||
hsetprop ${scobj_hpath}/rough_40 nxsave true
|
||||
hsetprop ${scobj_hpath}/rough_40 values in,out
|
||||
hsetprop ${scobj_hpath}/rough_40 oldval UNKNOWN
|
||||
@@ -253,7 +253,9 @@ proc ::scobj::shutters::mkDriver { sct_controller name } {
|
||||
hsetprop ${scobj_hpath}/rough_40 type "part"
|
||||
|
||||
hsetprop ${scobj_hpath} data "true"
|
||||
hsetprop ${scobj_hpath} klass "@none"
|
||||
hsetprop ${scobj_hpath} nxsave "true"
|
||||
hsetprop ${scobj_hpath} type "part"
|
||||
|
||||
if {[string equal -nocase [SplitReply [motor_simulation]] "false"]} {
|
||||
${sct_controller} poll ${scobj_hpath}/fast_shutter 1
|
||||
@@ -265,6 +267,7 @@ proc ::scobj::shutters::mkDriver { sct_controller name } {
|
||||
::scobj::shutters::sics_log 9 "[motor_simulation] => No poll/write for shutters"
|
||||
}
|
||||
hsetprop ${scobj_hpath} klass instrument
|
||||
hsetprop ${scobj_hpath} data true
|
||||
hsetprop ${scobj_hpath} debug_threshold 5
|
||||
# mkDriver hook code starts
|
||||
# mkDriver hook code ends
|
||||
|
||||
Reference in New Issue
Block a user