Analysis-Templates
Analysis Template Analysis Templates are pre-configured workbooks which can contain multiple sheets including data sheets, report sheets from analysis operations, and optional custom report sheets for presenting results. The analysis operations can be set to recalculate on data change, thus allowing repeat use of the analysis template for batch processing or manual processing of multiple data files.
The following script example opens a built-in Analysis Template, Dose Response Analysis.ogw, and imports a data file into the data sheet. The results are automatically updated based on the new data.
string fPath$ = system.path.program$ + "Samples\Curve Fitting\"; string fname$ = fPath$ + "Dose Response Analysis.ogw"; // Append/open the analsys template to current project doc -a %(fname$); string bn$ = %H; win -o bn$ { // Import no inhibitor data fname$ = fPath$ + "Dose Response - No Inhibitor.dat"; impASC options.Names.FNameToSht:=0 options.Names.FNameToBk:=0 options.Names.FNameToBkComm:=0 orng:=[bn$]"Dose Response - No Inhibitor"; // Import inhibitor data fname$ = fPath$ + "Dose Response - Inhibitor.dat"; impASC options.Names.FNameToSht:=0 options.Names.FNameToBk:=0 options.Names.FNameToBkComm:=0 orng:=[bn$]"Dose Response - Inhibitor"; // Active the result worksheet page.active$ = result; }
To learn how to create Analysis Templates, please refer to the Origin tutorial: Creating and Using Analysis Templates.