OriginLab Corporation - Scientific Graphing and Data Analysis Software - 2D graphs, 3D graphs, Contour Plots, Statistical Charts, Data Exploration, Statistics, Curve Fitting, Signal Processing, and Peak Analysis

Creating and Using Analysis Templates

Summary

Routine tasks can be simplified by creating an Analysis Template. Such templates can contain multiple analysis results and also custom report sheets. A new instance of the template can then be opened any time and source data can be changed to update all analysis results and custom reports.

Minimum Origin Version Required: Origin 8.0 SR6

What you will learn

Steps

Importing Data

  1. Start with a new workbook.
  2. Click the Import Wizard button on the Standard Toolbar, or invoke the Import: Import Wizard... menu item. the Import Wizard dialog will open.
  3. Click the ... button next to the File edit box and select the file <Origin EXE folder>\Samples\Import and Export\S15-125-03.dat.
  4. Verify that the Import Filters for Current Data Type drop-down shows Data Folder: VarFromFileNameAndHeader.
  5. Change the Import Mode drop-down to Replace Existing Data.
  6. This is an import filter shipped with the sample file, that specifies how to import the file and what header and file name strings to parse to create import variables. Walk through the wizard pages to view the settings (Optional) and then click Finish button to import the file.
  7. Right-click on workbook title bar and select Show Organizer to turn on organizer panel. Expand branches and verify that variables have been created and saved, as in the picture below:

    Image:WorkbookWithImportWizardVariables.png

Performing Analysis

  1. Highlight column D and use the Analysis: Fitting: Nonlinear Curve Fit... menu item to open the NLFit dialog.
  2. Fit the data with Gauss function. This will add a hierarchical report sheet to the book, with result tables and embedded graph with data and fit curve.
  3. Go to the FitNL1 report sheet and double-click to open the graph containing data and fit curve. Perform some customization of the graph such as adding grid lines, changing font size etc. Click the X button on the graph window to put the modified graph back into the report.

Saving the Analysis Template

  1. Go to the source data sheet of the workbook, which should be the first sheet. Select the Worksheet: Clear Worksheet... menu item and press OK in the dialog that opens. This will clear all the data from the sheet. The analysis report sheet will now be empty. Clearing the data is optional, and it makes the size of the analysis template file to be smaller.
  2. Use the File: Save Window As... menu item and save the book as an OGW file under your User Files Folder with a suitable name such as Analysis Template. This OGW file can now serve as an Analysis Template for future analysis of similar data.

Re-using the Analysis Template

  1. Start a new project and then select the menu item File: Recent Books and from the fly-out options select the Analysis Template saved earlier.
  2. Make the data sheet active, and select File: Import Wizard... and select the file <Origin EXE path>\Samples\Import and Export\S21-235-07.dat.
  3. Make sure the filter drop-down shows VarsFromFileNameAndHeader and change the Import Mode drop-down to Replace Existing Data and click Finish.
  4. Press the Recalculate button, which is the last button on the Standard toolbar. Origin will recalculate the analysis results and update the custom report sheet links, and at this point you can view and print the custom report sheet.