Added configuration file modifications from ics1-platypus
This commit is contained in:
@@ -73,6 +73,7 @@ proc ::exp_mode::omega_2theta { arg1 arg2 {s1vg 0} {s2vg 0} {s3vg 0} {s4vg 0}} {
|
||||
if {![string is double $arg1] || ![string is double $arg2]} {
|
||||
return -code error "omega and two theta should be a proper number"
|
||||
}
|
||||
statemon start om2th
|
||||
if {[catch {
|
||||
::exp_mode::set_omega $arg1
|
||||
::exp_mode::set_two_theta $arg2
|
||||
@@ -85,7 +86,7 @@ proc ::exp_mode::omega_2theta { arg1 arg2 {s1vg 0} {s2vg 0} {s3vg 0} {s4vg 0}} {
|
||||
return -code error "ERROR: all the slit openings need to be numbers"
|
||||
}
|
||||
drive ss1u [expr 0.5 * $s1vg] ss1d [expr -0.5 * $s1vg] ss2u [expr 0.5 * $s2vg] ss2d [expr -0.5 * $s2vg] ss3u [expr 0.5 * $s3vg] ss3d [expr -0.5 * $s3vg] ss4u [expr 0.5 * $s4vg] ss4d [expr -0.5*$s4vg]
|
||||
|
||||
statemon stop om2th
|
||||
return -code ok
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user