15.3.4.4.7 The Parameter Initialization Code Page

This page offers options to allow you to input codes to be run to compute initial values for fitting function parameters. This page is optional, so you can directly click the Next button to go to the next page to perform settings.

Dialog Box Controls

Always run Initialization Code before Fitting Uncheck this check box if you do not want the initialization code to run by default. The code can be run later, when desired, in the Nonlinear fitter dialog.
Allow Initialization Fixed Parameters

Check this checkbox to enable the parameters initialization code specified in Initialization Code edit box even if the parameters are fixed in the "Variables and Parameters" page.

Radio button checked.pngUse Variable or Metadata
Radio button.pngUse Custom Code
Select Use Predefined Variables radio button to set parameters initial values by predefined variables (such as column label rows or predefined statistics values) in the Predefined Variables table appeared below.

If select Use Custom Code radio button, write your initialization code in the Initialization Code edit box.

Predefined Variables and Metadata table Available when Use Variable or Metadata is selected. Initialize parameters by initial formula or metadata from columns in this table. Click the triangle button in Initial Formula column to select the desired initial formula or metadata from the fly-out menu. It allows to perform the basic math on the formula or metadata as desired.

Note: Initial formula and predefined metadata is Origin C code, so it is case sensitive.

Initialization Code Available when Use Custom Code is selected. If you provide initialization code in this edit box, and the Always run Initialization Code Before Fitting check box is checked, values generated by your code will replace the static initial values you entered in the "Variables and Parameters" page. For more details about how to write initialization code, please refer to Parameter Initialization.
Radio button.pngUse LabTalk
Radio button checked.pngUse Origin C
Available only when Use Custom Code is selected. Select Use Origin C radio button to write code using Origin C. There are many global functions available to examine data to generate suitable initial values depending on the data being fit.

If select Use LabTalk radio button, the code will be assumed to be LabTalk script.