From 8190bcb43a2a91b6dde920e5e656555e65f0d287 Mon Sep 17 00:00:00 2001 From: Ferdi Franceschini Date: Sat, 3 Mar 2007 11:14:55 +1100 Subject: [PATCH] Added pcr and pcx motors. r1583 | ffr | 2007-03-03 11:14:55 +1100 (Sat, 03 Mar 2007) | 2 lines --- site_ansto/instrument/hrpd/config/nexus/nexus.dic | 2 ++ site_ansto/instrument/hrpd/config/nexus/nxscripts.tcl | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/site_ansto/instrument/hrpd/config/nexus/nexus.dic b/site_ansto/instrument/hrpd/config/nexus/nexus.dic index cfe046f0..5c06fd2e 100644 --- a/site_ansto/instrument/hrpd/config/nexus/nexus.dic +++ b/site_ansto/instrument/hrpd/config/nexus/nexus.dic @@ -75,6 +75,8 @@ mx=/$(entryName),NXentry/$(inst),NXinstrument/$(monochromator),NXcrystal/SDS mx my=/$(entryName),NXentry/$(inst),NXinstrument/$(monochromator),NXcrystal/SDS my -type NX_FLOAT32 -attr {units,degree} -attr {long_name,my} mtth=/$(entryName),NXentry/$(inst),NXinstrument/$(monochromator),NXcrystal/SDS mtth -type NX_FLOAT32 -attr {units,degree} -attr {long_name,mtth} mth=/$(entryName),NXentry/$(inst),NXinstrument/$(monochromator),NXcrystal/SDS mth -type NX_FLOAT32 -attr {units,degree} -attr {long_name,mth} +pcr=/$(entryName),NXentry/$(inst),NXinstrument/$(monochromator),NXcrystal/SDS pcr -type NX_FLOAT32 -attr {units,degree} -attr {long_name,primary_collimator_rotation} +pcx=/$(entryName),NXentry/$(inst),NXinstrument/$(monochromator),NXcrystal/SDS pcx -type NX_FLOAT32 -attr {units,mm} -attr {long_name,primary_collimator_translation} #--------------- NXsample saname=/$(entryName),NXentry/sample,NXsample/SDS name -type NX_CHAR som=/$(entryName),NXentry/sample,NXsample/SDS som -type NX_FLOAT32 -attr {units,degree} -attr {long_name,som} diff --git a/site_ansto/instrument/hrpd/config/nexus/nxscripts.tcl b/site_ansto/instrument/hrpd/config/nexus/nxscripts.tcl index f609e359..45c58f8a 100644 --- a/site_ansto/instrument/hrpd/config/nexus/nxscripts.tcl +++ b/site_ansto/instrument/hrpd/config/nexus/nxscripts.tcl @@ -174,7 +174,7 @@ proc putsamplemotors {nxobj} { } proc putmonomotors {nxobj} { - foreach motor { mom mchi mphi mx my mtth mth } { + foreach motor { mom mchi mphi mx my mtth mth pcr pcx} { $nxobj putfloat $motor [getVal [$motor] ]; } }