Project

General

Profile

Feature #796

Binding with Restrax (and potentially with other programs)

Added by Saroun, Jan over 9 years ago. Updated over 9 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Start date:
13/11/2010
Due date:
% Done:

0%


Description

We need a procedure, which sets in vTAS all instrument parameters without conflicts due to dependences between TAS properties, e.g. due to unclosed scattering triangle.
Suggested solution:
Implement procedure, which defines TAS and sample position by seting the 4 angles (A2,A3,A4,A6), d-spacings (DM,DA) and FX (fixed Ki or Kf).

History

#1 Updated by Saroun, Jan over 9 years ago

  • Assignee set to Saroun, Jan

We need a procedure, which sets in vTAS all instrument parameters without conflicts due to dependences between TAS properties, e.g. due to unclosed scattering triangle.
Suggested solution:
Implement procedure, which defines TAS and sample position by seting the 4 angles (A2,A3,A4,A6), d-spacings (DM,DA) and FX (fixed Ki or Kf).

#2 Updated by Saroun, Jan over 9 years ago

  • Status changed from New to Resolved

Added to model.MBSpectrometerModel:
1) public void rxSafeUpdate(RxPositionData pos)
sets the TAS position without conflicts due to variable dependences. It assumes that current_sample and current_instrument (incl. FlatCone) have been set before calling rxSafeUpdate.

2) public static class RxPositionData
A new static class used as argument in rxSafeUpdate, contains data defining the TAS position:
angles (A2,A3,A4,A6) in [deg], d-spacings DM,DA in [A] and FX (fixed Ki or Kf)

Added to model.instruments.DiffractionLattice
3) public void setD_Theta(double d, Double theta)
Sets d and theta at once (defines lambda). Needed by rxSafeUpdate.

3) in constants.GUIConstants
updated version to
APP_VERSION = "4.11d2";// November 2010

Also available in: Atom PDF