How to edit a procedure


Introduction

Evaluation operations are represented by instructions in the Procedure Editor dialog box. The instructions can be modified to suit other specific evaluation needs and be saved for later use. This section describes how to use the Procedure Editor to edit a procedure.


How to edit a procedure

The table below describes how to edit an existing procedure:

Step

Action

1

Select Procedures:Edit:Open.

Result: The Open Procedure dialog box opens.

2

Select the procedure from the list and click OK.

Result: The Procedure Editor opens in Edit Mode.

3

Select an instruction in the procedure window.

Result: The instruction parameters are displayed in the Instruction and Parameter fields. A short definition of the selected instruction is displayed at the bottom left corner.

4

Type new values in the Parameter text boxes and click the Replace button.

Result: The old parameters are replaced by the new parameters.

5

Add a new instruction

  • Select the instruction in the procedure immediately before where you want the new instruction.

  • Select a type and an instruction in the Instruction field.

  • Type parameter values in the Parameter field.

  • Click the Insert button.

Result: The new instruction is inserted after the selected instruction.

6

Remove an instruction

Select an instruction in the procedure and click the Delete button to remove the instruction from the procedure.

7

Choose File:Save and click the Close button to close the dialog box.


Descriptions of the procedure instructions

Appendix Procedure instructions contains a list of procedure instructions with descriptions.


How to add instructions to a procedure when recording

If you start recording again you can add more instructions to a procedure that is already open in the Procedure Editor:

  • The new instructions will be added to the end of the present procedure.

or

  • The new instructions will be inserted after the selected instruction if an instruction has been selected.


Invalid instructions

The procedure will stop and display an error message if an instruction calls for an invalid operation when the procedure is run. Any subsequent instructions in the procedure will not be executed.


Address the right curves

Curves are identified only by their storage position. An instruction can become invalid if it addresses the wrong curve:

Example

  • The instruction ADD (01,02,03) will try to add curve 01 to curve 02 and store the result in position 03.

  • A curve in position 03 that is not a raw data curve will be overwritten.

  • A raw data curve in position 03 cannot be overwritten and the procedure will be stopped at that point.


Default values for classic baseline instructions

When a classic or morphological algorithm is used to calculate a baseline, UNICORN will suggest default values for the four control parameters based on the appearance of the curve. To instruct UNICORN to use default values appropriate for the curve every time the procedure is run, choose the default setting in the appropriate fields for the parameters.

Example

  • CALCULATE_BASELINE (01, 06, XXX, XXX, XXX, XXX)

Can be changed to:

  • CALCULATE_BASELINE (01, 06, DEFAULT, DEFAULT, DEFAULT, DEFAULT)


Global procedures

It is not advisable to edit existing global procedures. Open the global procedure instead and save a copy under a new name. Use this copy for editing purposes.


2005-06-15