The LAMP Application

Generated by IDLdoc

single page | use frames     summary     class     fields     routine details     file attributes

lamp_mac/D17/

d17_he3cal_gui.pro


PRO d17_he3cal_gui LAMP GUI to calculate the polarization efficiency of a 3He cell on D17 Based on code by Rebeen Salehbag and Hassan Sheidani ARW 16.03.07 The program contains the following procedures: d17_he3cal_gui_event: Handles all events when changing things in the GUI aw_filexist: Checks whether a file exists aw_rwd: Locates the base widget aw_heiopars: Reads and writes the contents of the gui to a file aw_mainupd Collects relevant information on the main beam aw_waterdef: Collects relevant information and runs d17_waterdef aw_setmask: Manipulates the mask window and creates the mask text aw_calibrate: Collects all relevant information and passes it to d17_he3calibrate aw_dateset: Collects the date information and update the appropriate windows aw_fitbuttons: Sets fit and limits on clicking the 'fix' buttons in the fit window aw_chfitpars: Updates the uvalue field of the top widget on changing a fit parameter aw_fit: Carries out the fit aw_plotwinhide: Hides the plot window aw_plotwinshow: Creates the plot window aw_plotupd: Updates the data in the plot window d17_he3cal_gui: Sets up the GUI Calls to: d17_waterdef, d17_he3calibrate,rdrun (external) Last modified: ARW 3.1.11

Routines

d17_he3cal_gui_event, event

aw_filexist, path, runno, exist

aw_rwd, widin, widout

aw_heiopars, widin, flag

aw_waterdef, widin

aw_mainupd, widin

aw_setmask, widin, flag

aw_calibrate, widin

aw_dateset, widin, flag

aw_fitbuttons, widin, flag

aw_chfitpars, widin

aw_fit, widin

aw_plotwinhide, event

aw_plotwinshow, tlb, plotwin

aw_plotupd, plotwin, caldata

d17_he3cal_gui

Routine details

top d17_he3cal_gui_event

d17_he3cal_gui_event, event

**************************************************** ******* This is the D17_HE3CAL event manager ******* **************************************************** *** This procedure sorts the possible actions and calls the relevant subroutine

Parameters

event

top aw_filexist

aw_filexist, path, runno, exist

******************************************************* *** Checks whether a file exists *** *** 'exist' = 0 if the file does not exist, =1 if it does *******************************************************

Parameters

path
runno
exist

top aw_rwd

aw_rwd, widin, widout

******************************************************* ******* This returns the ID for the base window ******* ******************************************************* *** Rewind to top widget ID

Parameters

widin
widout

top aw_heiopars

aw_heiopars, widin, flag

*********************************************************************** ******* This reads and writes the contents of the gui to a file ******* ***********************************************************************

Parameters

widin
flag

top aw_waterdef

aw_waterdef, widin

************************************************************** ******* This updates the water information on a change ******* **************************************************************

Parameters

widin

top aw_mainupd

aw_mainupd, widin

****************************************************************** ******* This updates the main beam information on a change ******* ******************************************************************

Parameters

widin

top aw_setmask

aw_setmask, widin, flag

****************************************************** ******* This sets the MASK windows on a change ******* ****************************************************** *** The information will be stored in the Base widget relevant to the masks

Parameters

widin
flag

top aw_calibrate

aw_calibrate, widin

**************************************************************************************************************************** ******* On clicking 'Load files' in the 'Calibration window', collects information and passes it to d17_he3calibrate ******* ****************************************************************************************************************************

Parameters

widin

top aw_dateset

aw_dateset, widin, flag

********************************************************************************* ******* Collects the date information and updates the appropriate windows ******* *********************************************************************************

Parameters

widin
flag

top aw_fitbuttons

aw_fitbuttons, widin, flag

************************************************** ******* Fits the 3He data using d17_he3fit ******* **************************************************

Parameters

widin
flag

top aw_chfitpars

aw_chfitpars, widin

****************************************************** ******* Update the uvalue field for top widget ******* ******************************************************

Parameters

widin

top aw_fit

aw_fit, widin

************************************************** ******* Fits the 3He data using d17_he3fit ******* **************************************************

Parameters

widin

top aw_plotwinhide

aw_plotwinhide, event

**************************** *** Hide the plot window *** ****************************

Parameters

event

top aw_plotwinshow

aw_plotwinshow, tlb, plotwin

****************************** *** Create the plot window *** ******************************

Parameters

tlb
plotwin

top aw_plotupd

aw_plotupd, plotwin, caldata

****************************** *** Update the plot window *** ******************************

Parameters

plotwin
caldata

top d17_he3cal_gui

d17_he3cal_gui

********************************************* ** User callable ******* This is the D17_HE3CAL widget ******* *********************************************

File attributes

Modification date: Tue Oct 1 14:43:02 2013
Lines: 1,098