
The Origin workbook is capable of storing raw data, metadata, mathematical formulae, scripts and analysis results (including graphs). Combine this ability to store complex information with Origin's Recalculate analysis feature and you have the potential to create an Analysis Template.
The Analysis Template concept differs from Origin's workbook template concept in at least one very important way: when you save a workbook template, all data are destroyed. This would include, for instance, any cell references/cell linking information that might be used in calculations. Thus, saving your Analysis Template as an OTW file is not what you want to do. While the Analysis Template concept is a bit amorphous (similar functionality could be achieved in an OPJ file, as explained below), it is probably best exemplified by the workbook window file -- the OGW -- a standalone file that can be inserted, as needed, into your OPJ files and which can be freely shared with colleagues.
The OGW will not only retain information on column number, designation and order, format and style options, etc., but also information on which analyses you wish to perform and what sort of output you wish to generate. When supplied with the proper data, an analysis template will crunch your numbers and automatically create output in the form of worksheet columns, and analysis report sheets that summarize your results with a combination of tables and graphs.
Since Origin 8.1, several new features about analysis template have been added.
Once an Analysis Template has been created, it can be used to perform Batch Processing of multiple data files or datsets.
This simple example will illustrate the concept:
|
Note that, at this point, you have not saved your Analysis Template (you are merely working in an untitled Origin project file). There are a couple of options for saving, depending upon your needs:
|
Finally, to see a demonstration of the Analysis Template, click the Import ASCII button
and re-import \Samples\Curve Fitting\Linear Fit.dat. The file is imported into the active worksheet, the curve fit is performed and the results are written to the FitLinear and FittedValues worksheets.
|
Note to Advanced Users: If your Analysis Template procedure is performed by a user-defined X-Function and you intend to save the Template as an OGW file and share it with a colleague, you will need to check the Save in Project check box when creating your X-Function. For more information about this option, please see the Programming Help file. |
The Creating and Using Analysis Templates tutorial gives you a quick start to use Analysis Template.