hmm_configuration_common_1.tcl
Set histmem view mag to auto Workaround for SICS-204 hmc sets bm preset to 0 hrpd/config/count/counter.tcl reflectometer/config/count/counter.tcl echidna only has two beam monitors enabled SICS should not start or stop the third beam monitor on platypus config/scan/scan_common_1.tcl Show counts from available beam monitors during scans r2649 | ffr | 2008-07-14 15:15:58 +1000 (Mon, 14 Jul 2008) | 12 lines
This commit is contained in:
committed by
Douglas Clowes
parent
7431af42d9
commit
dd927d18af
@@ -1,5 +1,5 @@
|
|||||||
# $Revision: 1.35 $
|
# $Revision: 1.36 $
|
||||||
# $Date: 2008-07-11 02:15:55 $
|
# $Date: 2008-07-14 05:15:58 $
|
||||||
# Author: Ferdi Franceschini
|
# Author: Ferdi Franceschini
|
||||||
# Based on the examples in the hs_test.tcl sample configuration by Mark Lesha.
|
# Based on the examples in the hs_test.tcl sample configuration by Mark Lesha.
|
||||||
# http://gumtree.ansto.gov.au:9080/nbicms/bragg-systems/histogram-server/hs_test.tcl/view
|
# http://gumtree.ansto.gov.au:9080/nbicms/bragg-systems/histogram-server/hs_test.tcl/view
|
||||||
@@ -920,7 +920,7 @@ proc CAT_TABLE {args} {
|
|||||||
#
|
#
|
||||||
proc FAT_TABLE {args} {
|
proc FAT_TABLE {args} {
|
||||||
if [ catch {
|
if [ catch {
|
||||||
set attributes { FRAME_FREQUENCY SIZE_PERIOD COUNT_METHOD COUNT_SIZE READ_DATA_TYPE }
|
set attributes { FRAME_FREQUENCY SIZE_PERIOD COUNT_METHOD COUNT_SIZE READ_DATA_TYPE VIEW_MAG_X VIEW_MAG_Y}
|
||||||
set elements {{ }}
|
set elements {{ }}
|
||||||
|
|
||||||
set tag FAT
|
set tag FAT
|
||||||
@@ -1611,7 +1611,7 @@ proc ::histogram_memory::ic_initialize {} {
|
|||||||
::histogram_memory::x_pixel_offset -boundaries
|
::histogram_memory::x_pixel_offset -boundaries
|
||||||
::histogram_memory::time_channel -boundaries
|
::histogram_memory::time_channel -boundaries
|
||||||
::histogram_memory::clear_tables
|
::histogram_memory::clear_tables
|
||||||
#XXX ::histogram_memory::upload_config Filler_defaults
|
FAT_TABLE -set VIEW_MAG_X -1 VIEW_MAG_Y -1
|
||||||
|
|
||||||
foreach hm_obj [sicslist type histmem] {
|
foreach hm_obj [sicslist type histmem] {
|
||||||
$hm_obj configure hmaddress http://das1-[instname].nbi.ansto.gov.au:8080
|
$hm_obj configure hmaddress http://das1-[instname].nbi.ansto.gov.au:8080
|
||||||
@@ -1671,6 +1671,8 @@ proc ::histogram_memory::post_count {} {}
|
|||||||
if {$monitor_controlled == "true"} {
|
if {$monitor_controlled == "true"} {
|
||||||
hmm count
|
hmm count
|
||||||
} else {
|
} else {
|
||||||
|
bm setmode timer
|
||||||
|
bm setpreset 32000000
|
||||||
hmc start 1000000000 timer pause 1
|
hmc start 1000000000 timer pause 1
|
||||||
}
|
}
|
||||||
set reply [SplitReply [hmm configure daq]]
|
set reply [SplitReply [hmm configure daq]]
|
||||||
|
|||||||
@@ -39,16 +39,16 @@ proc ::scan::bm_scan_collect {sobj uobj point} {
|
|||||||
|
|
||||||
set w(NP) $point
|
set w(NP) $point
|
||||||
set sv [string trim [lindex [split [lindex $vlist 0] . ] 1]]
|
set sv [string trim [lindex [split [lindex $vlist 0] . ] 1]]
|
||||||
set header [format "%-4.4s %-9.9s %-14s %-11s %-11s %-11s %-7.7s" NP $sv Counts Channel0 Channel1 Channel2 Time]
|
set header [format "%-4.4s %-9.9s %-14s %-7.7s" NP $sv Counts Time]
|
||||||
set varval [SplitReply [$sv]]
|
set varval [SplitReply [$sv]]
|
||||||
set counts [SplitReply [bm getcounts]]
|
set counts [SplitReply [bm getcounts]]
|
||||||
set mon1 [SplitReply [bm getmonitor 0]]
|
|
||||||
set mon2 [SplitReply [bm getmonitor 1]]
|
|
||||||
set mon3 [SplitReply [bm getmonitor 2]]
|
|
||||||
set time [SplitReply [bm gettime]]
|
set time [SplitReply [bm gettime]]
|
||||||
set data [format "%-4d %-9.3f %-14d %-11d %-11d %-11d %-7.2f" $point $varval $counts $mon1 $mon2 $mon3 $time]
|
set data [format "%-4d %-9.3f %-14d %-7.2f" $point $varval $counts $time]
|
||||||
clientput $header
|
clientput $header
|
||||||
clientput $data
|
clientput $data
|
||||||
|
for {set chn 0} {$chn < $::counter::isc_numchannels} {incr chn} {
|
||||||
|
clientput "Channel $chn [SplitReply [bm getmonitor $chn]]"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
proc ::scan::hmm_scan_collect {sobj uobj point} {
|
proc ::scan::hmm_scan_collect {sobj uobj point} {
|
||||||
@@ -56,17 +56,19 @@ proc ::scan::hmm_scan_collect {sobj uobj point} {
|
|||||||
|
|
||||||
set w(NP) $point
|
set w(NP) $point
|
||||||
set sv [string trim [lindex [split [lindex $vlist 0] . ] 1]]
|
set sv [string trim [lindex [split [lindex $vlist 0] . ] 1]]
|
||||||
set header [format "%-4.4s %-9.9s %-14s %-11s %-11s %-11s %-7.7s" NP $sv Counts Monitor1 Monitor2 Monitor3 Time]
|
set header [format "%-4.4s %-9.9s %-14s %-7.7s" NP $sv Counts Time]
|
||||||
set varval [SplitReply [$sv]]
|
set varval [SplitReply [$sv]]
|
||||||
set counts [SplitReply [::histogram_memory::total_counts]]
|
set counts [SplitReply [::histogram_memory::total_counts]]
|
||||||
set mon1 [SplitReply [bm1 getcounts]]
|
|
||||||
set mon2 [SplitReply [bm2 getcounts]]
|
|
||||||
set mon3 [SplitReply [bm3 getcounts]]
|
|
||||||
set time [SplitReply [::histogram_memory::time]]
|
set time [SplitReply [::histogram_memory::time]]
|
||||||
set data [format "%-4d %-9.3f %-14d %-11d %-11d %-11d %-7.2f" $point $varval $counts $mon1 $mon2 $mon3 $time]
|
set data [format "%-4d %-9.3f %-14d %-7.2f" $point $varval $counts $time]
|
||||||
clientput $header
|
clientput $header
|
||||||
clientput $data
|
clientput $data
|
||||||
|
for {set bmn 1} {$bmn <= $::counter::isc_numchannels} {incr bmn} {
|
||||||
|
set bmon bm$bmn
|
||||||
|
clientput "Monitor $bmn [SplitReply [$bmon getcounts]]"
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
proc ::scan::ic_initialize {} {
|
proc ::scan::ic_initialize {} {
|
||||||
if [ catch {
|
if [ catch {
|
||||||
variable ic_runscanpar
|
variable ic_runscanpar
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ proc ::counter::isc_initialize {} {
|
|||||||
variable isc_numchannels
|
variable isc_numchannels
|
||||||
variable isc_monitor_address
|
variable isc_monitor_address
|
||||||
variable isc_portlist
|
variable isc_portlist
|
||||||
variable isc_beam_monitor_list {MONITOR_1 MONITOR_2 MONITOR_3}
|
variable isc_beam_monitor_list {MONITOR_1 MONITOR_2}
|
||||||
|
|
||||||
set isc_monitor_address "das1-[SplitReply [instrument]]"
|
set isc_monitor_address "das1-[SplitReply [instrument]]"
|
||||||
set isc_portlist [list 30000 30001 30002 30003 30004 30005 30006 30007]
|
set isc_portlist [list 30000 30001 30002 30003 30004 30005 30006 30007]
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ proc ::counter::isc_initialize {} {
|
|||||||
variable isc_numchannels
|
variable isc_numchannels
|
||||||
variable isc_monitor_address
|
variable isc_monitor_address
|
||||||
variable isc_portlist
|
variable isc_portlist
|
||||||
variable isc_beam_monitor_list {MONITOR_1 MONITOR_2 MONITOR_3}
|
variable isc_beam_monitor_list {MONITOR_1 MONITOR_2}
|
||||||
|
|
||||||
set isc_monitor_address "das1-[SplitReply [instrument]]"
|
set isc_monitor_address "das1-[SplitReply [instrument]]"
|
||||||
set isc_portlist [list 30000 30001 30002 30003 30004 30005 30006 30007]
|
set isc_portlist [list 30000 30001 30002 30003 30004 30005 30006 30007]
|
||||||
|
|||||||
Reference in New Issue
Block a user