From cae44262abbb00e15ce8c299493286fabe656f9f Mon Sep 17 00:00:00 2001 From: Ferdi Franceschini Date: Sun, 1 Apr 2007 15:15:44 +1000 Subject: [PATCH] Match up x and y pixel_offsets with the corresponding dimension. r1774 | ffr | 2007-04-01 15:15:44 +1000 (Sun, 01 Apr 2007) | 2 lines --- site_ansto/instrument/config/nexus/nxscripts_common_1.tcl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/site_ansto/instrument/config/nexus/nxscripts_common_1.tcl b/site_ansto/instrument/config/nexus/nxscripts_common_1.tcl index faa24fe1..ebc0ce62 100644 --- a/site_ansto/instrument/config/nexus/nxscripts_common_1.tcl +++ b/site_ansto/instrument/config/nexus/nxscripts_common_1.tcl @@ -9,7 +9,7 @@ set tmpstr [string map {"$" ""} {$Name: not supported by cvs2svn $}] set nx_content_release_tag [lindex $tmpstr [expr [llength $tmpstr] - 1]] -set tmpstr [string map {"$" ""} {$Revision: 1.19 $}] +set tmpstr [string map {"$" ""} {$Revision: 1.20 $}] set nx_content_revision_num [lindex $tmpstr [expr [llength $tmpstr] - 1]] MakeNXScript @@ -108,6 +108,8 @@ proc hmm_save {nxobj entryname point} { $nxobj makelink scandata hmcounts $nxobj makelink scanhoraxis dhaxis $nxobj makelink scanvertaxis dvaxis + $nxobj putattribute dvaxis axis 2; + $nxobj putattribute dhaxis axis 3; } proc hmm_addnxscanentry {nxobj entryname point scanVariable scanVarPos scanVarStep start_time} { @@ -119,7 +121,7 @@ proc hmm_addnxscanentry {nxobj entryname point scanVariable scanVarPos scanVarSt $nxobj makelink scanvar $dictalias($scanVariable); $nxobj putattribute $dictalias($scanVariable) axis 1; $nxobj putattribute hmcounts signal 1; - $nxobj putattribute hmcounts axes $scanVariable:x_pixel_offset:y_pixel_offset; + $nxobj putattribute hmcounts axes $scanVariable:y_pixel_offset:x_pixel_offset; $nxobj puttext eend [sicstime]; }