Recent Changes · Search:

Dispense


µSR

Chapters:

  1. Introduction
  2. The muon
  3. Muon production
  4. Spin polarization
  5. Detect the µ spin
  6. Implantation
  7. Paramagnetic species
  8. A special case: a muon with few nuclei
  9. Magnetic materials
  10. Relaxation functions
  11. Superconductors
  12. Mujpy
  13. Mulab
  14. Musite?
  15. More details

Tips

PmWiki

pmwiki.org

edit SideBar

MulabModifyGuis

< How to make an asymmetry multiplot | Index | The mulab changelog >


The main GUI window is mufit_gui.m Make sure you do not break it

The most delicate part is the parameter inputs. Both the graphical layout and the object numbering is done ad-hoc there, since the number of elements and their placement varies with the model.

The objects (input fields, their text labels, plot popup menus and FFT checkboxes) are numbered consecutively, component by component and this requires the knowledge of the total number of objetcs in the first half GUI, where the buttons are placed. At present (1.04 July 2009) there are 27 object in the first half, including FFT Line Broadening input. This is set in variable

  Nmenumenu=27;

The dropdown menus are numbered more or less consecutively, but their handle name is irrelevant to the above counts.

CallBack routines are

   Menu_CallBack(varargin)   the main one, dealing with most of mufit_gui, including
                             setting parameter values and flags (!~=+), done at the top,
                             whereas the buttons, etc, are dealt with below

   h=guihandles recovers all object handles of the mufit_gui function
   menutags=guidata(gcf) recovers the tags of all objects that stored in this variable
   hstrike=cell2mat(varargin(1)) recovers the handle of the last striken object to be compared to h

   Rig_CallBack(varargin)  deals with the actions of the Data Format and Istrument 
                           dropdown menus

   Save_CallBack(varargin) deals with the Save/Quit dropdown

   FFTOn_CallBack(varargin) deals with the FFT

   Help_CallBack(varargin) lists available components

< How to make an asymmetry multiplot | Index | The mulab changelog >

Edit - History - Print - PDF - Recent Changes - Search
Page last modified on August 07, 2009, at 02:17 PM