About this task
This topic describes how to create your own function to
use in a calculation formula. You can also use any of the built-in functions.
Procedure
-
In Historian Administrator, select Tags, select the tag for which you want to
create a calculation formula, and then select
Calculation.
-
In the Calculation section, remove
Null
(retain Result =
).
Tip: Avoid selecting other tags until you save your changes or you
will lose your code changes.
-
Select Functions.
The User Defined Functions window
appears.
-
Select New.
The Edit Function window appears.
-
Define the function.
You can build formulas using the wizard, or create it manually by entering
functions in the
Edit Function box. For information,
refer to
User-Defined Functions.
-
Select Syntax to check for errors.
-
Select Update.
Your function appears in the list, and is available for use in other
calculations as well.
-
To use the function, select Insert Function.
The function is inserted in your calculation formula.