bm_addnxscanentry is now more dynamic. It sets nexus dictionary variables for the scan variable attributes.
r1697 | ffr | 2007-03-22 18:19:56 +1100 (Thu, 22 Mar 2007) | 2 lines
This commit is contained in:
committed by
Douglas Clowes
parent
6ca1c328b6
commit
bfa6c2f887
@@ -71,10 +71,10 @@ proc hmm_addnxscanentry {nxobj entryname scanVariable scanVarPos scanVarStep sta
|
||||
global dradius ndect angsep;
|
||||
set dim0 [SplitReply [hmm configure dim0]]
|
||||
set dim1 [SplitReply [hmm configure dim1]]
|
||||
putcommon $nxobj $entryname $scanVariable
|
||||
putcrystal $nxobj
|
||||
putmonitor $nxobj
|
||||
putsample $nxobj
|
||||
putcommon $nxobj $entryname $scanVariable
|
||||
putcrystal $nxobj
|
||||
putmonitor $nxobj
|
||||
putsample $nxobj
|
||||
set scanVar_value [string trim [lindex [split [$scanVariable] =] 1]]
|
||||
$nxobj updatedictvar scanvar_name $scanVariable
|
||||
$nxobj updatedictvar scanvar_units [SplitReply [$scanVariable units]]
|
||||
@@ -91,7 +91,7 @@ putsample $nxobj
|
||||
$nxobj putfloat dradius [SplitReply [detector_radius_mm]]
|
||||
$nxobj puttext dlayout area
|
||||
$nxobj puthm dcounts hmm [SplitReply [hmm_start]] [SplitReply [hmm_length]] [SplitReply [hmm_bank]]
|
||||
#$nxobj puthm deff hmm
|
||||
#$nxobj puthm deff hmm
|
||||
$nxobj makelink scandata dcounts
|
||||
$nxobj makelink scanvertaxis dvaxis
|
||||
# $nxobj makelink scandata dtheta
|
||||
@@ -101,21 +101,24 @@ putsample $nxobj
|
||||
|
||||
proc bm_addnxscanentry {nxobj entryname scanVariable scanVarPos scanVarStep start_time} {
|
||||
global dradius ndect angsep;
|
||||
putcommon $nxobj $entryname $scanVariable
|
||||
putcrystal $nxobj
|
||||
putmonitor $nxobj
|
||||
putsample $nxobj
|
||||
putcommon $nxobj $entryname $scanVariable
|
||||
putcrystal $nxobj
|
||||
putmonitor $nxobj
|
||||
putsample $nxobj
|
||||
set scanVar_value [string trim [lindex [split [$scanVariable] =] 1]]
|
||||
$nxobj putfloat $scanVariable $scanVar_value
|
||||
$nxobj updatedictvar scanvar_name $scanVariable
|
||||
$nxobj updatedictvar scanvar_units [SplitReply [$scanVariable units]]
|
||||
$nxobj updatedictvar scanvar_longname $scanVariable
|
||||
$nxobj putfloat scanvar $scanVar_value
|
||||
$nxobj putfloat scanstep $scanVarStep
|
||||
# Add thetamin and stth to tharr(i)
|
||||
# $nxobj puttext dtype He-3 position sensitive detector, tube active length=335+/-5mm, tube diameter=25.4 +/- 0.8mm
|
||||
# $nxobj puttext ddesc 128 He-3 proportional counter detector tubes (GE Energy Reuter Stokes Inc. item=RS-P4-0814-217)
|
||||
# $nxobj putfloat dradius $dradius
|
||||
$nxobj puttext estart $start_time
|
||||
#TODO add dtype ddesc
|
||||
$nxobj puttext dlayout point
|
||||
$nxobj makelink scandata mdata
|
||||
$nxobj makelink scanvar $scanVariable
|
||||
$nxobj putfloat scanstep $scanVarStep
|
||||
$nxobj puttext eend [sicstime];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user