SICS-693 newfile BEAM_MONITOR fails.

Make sure that the "axes" hdb property defaults to "run_number" for the BEAM_MONITOR filetype.
This commit is contained in:
Ferdi Franceschini
2013-11-13 11:01:34 +11:00
committed by Ferdi Franceschini
parent 83670b3d04
commit 650d1c0127

View File

@ -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