From 650d1c01277ea36cde385deabab231a68de391a1 Mon Sep 17 00:00:00 2001 From: Ferdi Franceschini Date: Wed, 13 Nov 2013 11:01:34 +1100 Subject: [PATCH] SICS-693 newfile BEAM_MONITOR fails. Make sure that the "axes" hdb property defaults to "run_number" for the BEAM_MONITOR filetype. --- site_ansto/instrument/config/nexus/nxscripts_common_1.tcl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/site_ansto/instrument/config/nexus/nxscripts_common_1.tcl b/site_ansto/instrument/config/nexus/nxscripts_common_1.tcl index 03e8aed4..85ddd800 100644 --- a/site_ansto/instrument/config/nexus/nxscripts_common_1.tcl +++ b/site_ansto/instrument/config/nexus/nxscripts_common_1.tcl @@ -141,6 +141,9 @@ proc newFileName {idNum postfix} { hsetprop $::counter::HP_BM link data_set hsetprop $::counter::HP_BM @signal 1 set nvars [SplitReply [bmonscan noscanvar]] + if {$nvars == 0} { + set axes "run_number" + } else { for { set i 0 } { $i < $nvars } { incr i } { set axis_name [lindex [split [lindex [split [bmonscan getvarpar $i]] 0] "."] 1] set node_name [SplitReply [sicslist $axis_name hdb_path]] @@ -148,6 +151,7 @@ proc newFileName {idNum postfix} { lappend axes_list $axis_name } set axes [join $axes_list ":"] + } hsetprop $::counter::HP_BM @axes $axes } else { ::hdb::set_save / true