From 7b0162177ef8b0d6b788d7fa907a0f4a3a5db5fc Mon Sep 17 00:00:00 2001 From: Ferdi Franceschini Date: Tue, 23 Oct 2007 12:42:52 +1000 Subject: [PATCH] Added optics subsystem path. Also added chopper_simulation flag for platypus. r2191 | ffr | 2007-10-23 12:42:52 +1000 (Tue, 23 Oct 2007) | 3 lines --- .../instrument/sans/quokka_configuration.tcl | 25 +++---------------- site_ansto/instrument/server_config.tcl | 17 ++++++++----- 2 files changed, 15 insertions(+), 27 deletions(-) diff --git a/site_ansto/instrument/sans/quokka_configuration.tcl b/site_ansto/instrument/sans/quokka_configuration.tcl index a6b6c3ec..8b1b53f5 100644 --- a/site_ansto/instrument/sans/quokka_configuration.tcl +++ b/site_ansto/instrument/sans/quokka_configuration.tcl @@ -1,11 +1,10 @@ -# $Revision: 1.5 $ -# $Date: 2007-10-03 22:33:28 $ +# $Revision: 1.6 $ +# $Date: 2007-10-23 02:42:52 $ # Author: Ferdi Franceschini (ffr@ansto.gov.au) # Last revision by: $Author: ffr $ # Required by server_config.tcl VarMake Instrument Text Internal -sicslist setatt Instrument privilege internal Instrument quokka Instrument lock @@ -27,6 +26,7 @@ fileeval $cfPath(motors)/motor_configuration.tcl restore fileeval $cfPath(plc)/plc.tcl +fileeval $cfPath(optics)/optics.tcl fileeval $cfPath(counter)/counter.tcl fileeval $cfPath(hmm)/hmm_configuration.tcl fileeval $cfPath(nexus)/nxscripts.tcl @@ -36,24 +36,7 @@ source gumxml.tcl ::histogram_memory::initialize -MakeStateMon hmscan -if 0 { -proc instrument_set_sobj_attributes {} { - - motor_set_sobj_attributes - ::utility::set_motor_attributes - ::utility::set_histomem_attributes - ::utility::set_sobj_attributes - ::plc::set_sobj_attributes - ::counter::set_sobj_attributes - ::nexus::set_sobj_attributes - ::histogram_memory::set_sobj_attributes -## TODO move the following to the new ansto gumxml.tcl - sicslist setatt getgumtreexml privilege internal -} - -instrument_set_sobj_attributes -} +MakeStateMon hmscan fileeval extraconfig.tcl server_set_sobj_attributes buildHDB instrument_dictionary diff --git a/site_ansto/instrument/server_config.tcl b/site_ansto/instrument/server_config.tcl index edd32388..8b9047ff 100644 --- a/site_ansto/instrument/server_config.tcl +++ b/site_ansto/instrument/server_config.tcl @@ -1,7 +1,7 @@ # SICS common configuration -# $Revision: 1.29 $ -# $Date: 2007-08-20 22:52:25 $ +# $Revision: 1.30 $ +# $Date: 2007-10-23 02:42:52 $ # Author: Ferdi Franceschini (ffr@ansto.gov.au) # Last revision by $Author: ffr $ @@ -10,6 +10,7 @@ set sicsroot ../ set cfParent config array set cfPath [list\ motors $cfParent/motors\ +optics $cfParent/optics\ counter $cfParent/counter\ chopper $cfParent/chopper\ hmm $cfParent/hmm\ @@ -56,7 +57,7 @@ sics_release [lindex $tmpstr [expr [llength $tmpstr] - 1]] sics_release lock ::utility::mkVar sics_revision_num Text internal -set tmpstr [string map {"$" ""} {$Revision: 1.29 $}] +set tmpstr [string map {"$" ""} {$Revision: 1.30 $}] sics_revision_num [lindex $tmpstr [expr [llength $tmpstr] - 1]] sics_revision_num lock @@ -88,13 +89,17 @@ counter_simulation false ::utility::mkVar motor_simulation Text internal motor_simulation false -::utility::mkVar sics_simulation Text internal -sics_simulation false +::utility::mkVar chopper_simulation Text internal +chopper_simulation false -if {[SplitReply [sics_simulation]] == "true"} { +::utility::mkVar sics_fullsimulation Text internal +sics_fullsimulation false + +if {[SplitReply [sics_fullsimulation]] == "true"} { hmm_simulation true counter_simulation true motor_simulation true + chopper_simulation true } proc server_set_sobj_attributes {} {