diff --git a/site_ansto/instrument/config/scan/scan_common_1.tcl b/site_ansto/instrument/config/scan/scan_common_1.tcl index e1609f1a..2110c45b 100644 --- a/site_ansto/instrument/config/scan/scan_common_1.tcl +++ b/site_ansto/instrument/config/scan/scan_common_1.tcl @@ -58,7 +58,7 @@ proc check_limit {scan_variable limit_name target} { set scan_variable [string trim [lindex [split [lindex $vlist 0] . ] 1]] set scan_start [lindex $vlist 1]; set scan_increment [lindex $vlist 2]; - if {[getatt $scan_variable type] != "configurablevirtualmotor"} { + if {[getatt $scan_variable type] == "motor"} { if {[SplitReply [$scan_variable fixed]] >= 0} { return -code error "Scan aborted. $scan_variable position is set to 'fixed'" } @@ -87,9 +87,8 @@ proc check_limit {scan_variable limit_name target} { ::scan::hdb_hmscan -set feedback status BUSY ::histogram_memory::prepare + ::nexus::newfile HISTOGRAM_XYT data data axis 1 [::scan::hdb_hmscan -set scan_variable] - ::hdb::set_save / true - ::nexus::newfile data } proc hmm_count {sobj uobj point mode preset} { @@ -110,8 +109,7 @@ proc check_limit {scan_variable limit_name target} { ::scan::hdb_hmscan -set feedback status IDLE # Make sure that the next save command doesn't overwrite our scan data. # and clear any data links - ::nexus::newfile data - ::nexus::data clear + ::nexus::newfile clear data if {$reset_position == "true"} { set svar [::scan::hdb_hmscan -get scan_variable] set svtype [getatt $svar type] @@ -128,8 +126,7 @@ proc check_limit {scan_variable limit_name target} { ::scan::hdb_bmonscan -set feedback status IDLE # Make sure that the next save command doesn't overwrite our scan data. # and clear any data links - ::nexus::newfile data - ::nexus::data clear + ::nexus::newfile clear data if {$reset_position == "true"} { set svar [::scan::hdb_bmonscan -get scan_variable] set svtype [getatt $svar type] @@ -213,10 +210,8 @@ proc check_limit {scan_variable limit_name target} { #FIXME remove dependency on hdb path array set bm_fb [::scan::hdb_bmonscan -list feedback] - data axis 1 [::scan::hdb_bmonscan -set scan_variable] - ::hdb::set_save / true - ::hdb::set_save /instrument/detector false - ::nexus::newfile data + ::nexus::newfile BEAM_MONITOR data + ::nexus::data axis 1 [::scan::hdb_bmonscan -set scan_variable] #stdscan prepare $sobj $uobj; }