Skip navigation links

Package xal.extension.widgets.olmplot

Author: C.K.

See: Description

Package xal.extension.widgets.olmplot Description

Author: C.K. Allen

Since: Feb 25, 2014

Right now most of the classes are for quick plotting of Online Model simulation data. The data is plotted in an independent window.

Below is an example usage of the classes:

    
        try {
            
            MDL_BEAMLINE.resync();
            MDL_BEAMLINE.run();

            Trajectory           trjSoln = MDL_BEAMLINE.getProbe().getTrajectory();
            TrajectoryGraph      grpSoln = TrajectoryGraph.createEnvelopeGraph(trjSoln);
            GraphFrame           frmSoln = new GraphFrame(strTitle + "Q=" + this.dblBmChg + " res err="+dblErrRes + ", conv err=" + dblErrCnv, grpSoln);

            for (PLANE plane : PLANE.values()) {
                MeasurementCurve    crvMsmt = new MeasurementCurve(plane, SEQ_ACCL_TEST, arrData);
                
                grpSoln.addGraphData(plane, crvMsmt);
            }
            grpSoln.setLegendVisible(true);
            grpSoln.setPreferredSize(DIM_GRAPH_SOLN);
            frmSoln.display();
            
        } catch (SynchronizationException e) {
            e.printStackTrace();
            this.errorMsg("Unable to synchronize model");
            
        } catch (ModelException e) {
            e.printStackTrace();
            this.errorMsg("Unable to run model");
            
        }
    
  

Skip navigation links