...
- It is compulsory to create a +New Tag before creating a Computed Tag.
- Click + New Tag button.
- Enter Folder, path is automatically filled.
- Enter tag Name.
- Enter Title, if required.
- Enter Type, Numeric or Symbolic.
- Enter Unit, if required.
- Enter Description, if required.
- Click Save.
- Select Computed Tag. Note: You can only select tags in the folder or sub folders of the job.
- Select Input tags. Note: You can only select tags in the folder or sub folders of the job.
- Is Optimistic checkbox is checked deactivated by default. Lake allows the insertion of several values at a same timestamp. By default, the computed tag is not going to calculate a new value for the last input since it is not sure whether there is going to have another value at the same timestamp. Therefore the computed tag can have one value late. If Is Optimistic equals to true is activated it is possible to indicate to the computed tag that it can calculate the last input even if there is a new value at the same timestamp that can be inserted later.
- Write the script.
- Click Save.
- Click Truncate to remove data for a selection of tags from a particular date onwards.
...
- output tags
- input tags
- script function
- is Optimistic = true or false false (
Info | ||
---|---|---|
| ||
The truncate option is explained in editing computed tags. |
...
Tip | ||
---|---|---|
| ||
Use Save if a periodical change is needed. Use Truncate for example if an error was made in the computed tag formula; this is equivalent to deleting past values and replacing them with new correct ones. |
Understanding Compute latest values
Example: Calculate the sum of two tags (Tag1 and Tag2).
...