% PPGLOBAL.M
%
%    The Program PPGLOBAL is a script that allows access to global
%    variables from the pepperpot GUI interface PPGUI.
%
%    Normally global variables assigned within a function are not available
%    to the Matlab workspace.  PPGLOBAL circumvents this shortcoming by
%    explicitly making all the required variables global.
%
%    If it is not already running, PPGLOBAL starts up PPGUI.
%

    ishandle(ppgui) ;

    global ppdir
    global ppcalfile ppdatfile ppbgfile ppproffile
    global ppcalim ppbgim ppim ppprofim
%    global calfigh bgfigh ppfigh proffigh
    global midpos sp2sp imtilt ppbitdiv zlen energy
    global ppposdat ppemitdat pppixemit5d pppixemit2d ppemithist
%    global ppguifigh

    clear ans ;

    return
