User Tools

Site Tools


data_core:script_tags

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
data_core:script_tags [2019/12/06 15:03] – [Script Tags] sudata_core:script_tags [2024/01/25 11:49] (current) su
Line 7: Line 7:
   * C#   * C#
   * FLEE (Fast Lightweight Expression Evaluation) - [[https://github.com/mparlak/Flee/wiki/Examples|more info]]   * FLEE (Fast Lightweight Expression Evaluation) - [[https://github.com/mparlak/Flee/wiki/Examples|more info]]
-  * Javascript 
  
  
 ===== Script Tag Templates ===== ===== Script Tag Templates =====
  
-Script Tag Templates are pre-configured to perform a specific function.+A number of pre-configured script tags exist to perform the following functions: 
  
-The following templates exist: 
  
 ==== Calculations ==== ==== Calculations ====
  
 +  * **Accumulator Calculator** \\ Calculates the accumulated result of a monitored process tag for a given period (e.g. a day).
 +
 +  * **Aggregation Calculator** \\ Periodically calculate an aggregation of a process tag.
  
   * **Average Calculator** \\ Periodically calculates the average value of a process tag.   * **Average Calculator** \\ Periodically calculates the average value of a process tag.
Line 23: Line 25:
   * **Delta Calculator** \\ Calculates the delta between the value of two input tags.   * **Delta Calculator** \\ Calculates the delta between the value of two input tags.
  
-  * **GasVelocityCalculator** \\ Calculates gas velocity using flow rate and pressure.+  * **Delta with Offset Calculator** \\ Calculates the delta between the value of two input tags, then applies an offset.
  
 +  * **Energy Based Availability Calculator** \\ Energy-Based Availability (EBA) is the ratio of actual to expected energy production.
  
 +  * **Gas Velocity Calculator** \\ Calculates gas velocity using flow rate and pressure.
  
 +  * **Normalized Deviation Calculation** \\ Calculates the normalized deviation of a process value.
  
-==== Sensor Quality Checks ==== +  * **Ratio Calculator** \\ Calculates the ratio and between two input tags.
  
-  * **Bad Data Detection** \\ Data quality check that raises alert if monitored tag returns NaN or has 'bad' status+  * **Time Based Availability Calculator** \\ Time-Based Availability (TBA) is an energy expression denoting the ratio of time-period (e.g. a day) when power is available. It does not discriminate the cause of downtime (e.g. a deliberate stop for maintenance, no/low wind conditions).
  
-  * **Channel Deviation Detection** \\ Checks for deviation in output from a sensor with two data channels. An alert indicates that one or both of the channels is unreliable. The method is to regularly compare Channel A and Channel B and check if difference is within acceptable instrument error tolerance. Default configuration is to check 24hr average difference 4 times per day.+  * **Time Based Delta Calculator** \\ Monitors the rate of change of a process tag over a time period.
  
-  * **Flatline Detection** \\ Script tag that checks for flatlining data (i.eprocess tags where the tag may be updating regularly, but the sensor value is not changing).+  * **Turbine Status** \\ A turbine has three basic power-production states: 1Power; 2No Wind; 3. No Power.
  
-  * **Frozen Signal Detection** \\ Script tag that periodically ensures that newer values are being received for tag.+  * **Turbulence Intensity Calculator** \\ Turbulence Intensity (TI) is measurement of wind speed turbulence. It is the ratio of wind speed StdDev to Mean.
  
 +  * **Turbulence Intensity Forecast Calculator** \\ Turbulence Intensity Forecast (TI) is an measurement of wind speed turbulence derived from forecasted Wind and Gust Speed (rather than observed wind speed variance).
  
-==== Process Data Alerts ==== +  * **Unit Converter** \\ Convert process value from one unit to another.
  
-  * **Equipment Running Status Monitor** \\ Monitors the running status of a piece of equipment and triggers and resets events when the status changes. +==== Sensor Quality Checks ==== 
  
-  * **Fleeting Excursion Monitor** \\ Script tag template for monitoring sensors such as acoustic sand probes that can generate fleeting excursions.+  * **Bad Data Detection** \\ Data quality check that raises alert if monitored tag returns NaN or has a 'bad' status
  
-  * **Limit Monitor** \\Script tag that periodically monitors a process tag value against limit using MIN/MAX aggregated data. \\ //Use the FleetingExcursionMonitor template if you require a high degree of accuracy.//+  * **Channel Deviation Detection** \\ Checks for deviation in output from sensor with two data channelsAn alert indicates that one or both of the channels is unreliable. The method is to regularly compare Channel A and Channel B and check if difference is within acceptable instrument error tolerance. Default configuration is to check 24hr average difference 4 times per day.
  
- * **Time Based Delta Monitor** \\ Monitors the rate of change of a process tag over a time period.+  * **Flatline Detection** \\ Script tag that checks for flatlining data (i.e. process tags where the tag may be updating regularly, but the sensor value is not changing).
  
 +  * **Frozen Signal Detection** \\ Script tag that periodically ensures that newer values are being received for a tag.
  
  
  
 +==== Process Data Alerts ==== 
  
 +  * **Equipment Running Status Monitor** \\ Monitors the running status of a piece of equipment and triggers and resets events when the status changes. 
  
 +  * **Fleeting Excursion Monitor** \\ Script tag template for monitoring sensors such as acoustic sand probes that can generate fleeting excursions.
  
-== Frozen Data Detection == +  * **Hi/Lo Limit Monitor** \\ Performs Hi/Lo limit monitor check.
-"Monitor that periodically ensures that newer values are being received for tag.+
  
-Alerts if no new value is received for 24hr period. +  * **Limit Monitor** \\ Script tag that periodically monitors process tag value against a limit using MIN/MAX aggregated data. \\ //Use the FleetingExcursionMonitor template if you require high degree of accuracy.//
-+
-Bad Data Detection +
-Script tag template that performs a data quality checkAlerts if a script tag returns NaN or has a 'bad' status. Control granularity and frequency of checks by varying schedule and sample-period for average data-points.+
  
-Flatline Detection +  * **Limit Monitor 1 Precondition** \\ Limit monitor that will only trigger or reset an excursion event if a precondition tag value check is met.
-"Script tag template that checks for flatlining data (i.e. process tags where the tag may be updating regularly, but the sensor value is not changing).+
  
-Alert if value doesn't change in 24hr period. +  * **Limit Monitor 2 Precondition** \\ Limit monitor that will only trigger or reset an excursion event if two precondition tag value checks are met.
-+
-Channel Deviation +
-Script tag template that checks for deviation in output from a sensor with two data channels. An alert indicates that one or both of the channels is unreliable. The method is to regularly compare Channel A and Channel B and check if difference is within acceptable instrument error tolerance. We use a 24hr average as channels may not relay on precisely the same time Default configuration is to check 24hr average difference 4 times per day.+
  
 +  * **Limit Monitor 3 Precondition** \\ Limit monitor that will only trigger or reset an excursion event if three precondition tag value checks are met.
  
-===== Types of Script Tag =====+  * **Logic Gate Alert** \\ An alert that can be used to summarise the status of multiple alerts using an AND or OR operator. 
  
-==== Ad Hoc Script Tag ====+  * **Time Based Delta Monitor** \\ Monitors the rate of change of a process tag over a time period.
  
-Ad-hoc script tags can perform bespoke calcutations and actions. Use either c# or FLEE script to define.+  * **Value Change Monitor** \\ Monitors a tag and emits an event every time the value of the tag changes.
  
-==== Template Tag ==== 
  
 +==== Troubleshooting ====
  
 +The Data Core Admin UI shows information related to the processing of an individual Script Tag via the "Info" and "Additional Properties" icons.
  
 +{{ :data_core:scripttags-00.png?400 |}}
  
 +The Data Core API also exposes information related to all Script Tags for a data source.
  
 +  * [DataCoreAdminUrl]/datacore/api/diagnostics/scripting/[dataSourceName]
  
  
  
-===== Configuration ===== 
  
  
-A user interface exists on App Store Connect to administer script tags. However, for operations of scale (where many tags are required) or security (where access to app store connect server is restricted) it may be necessary to prepare configuration files for upload. 
  
  
data_core/script_tags.1575644608.txt.gz · Last modified: 2019/12/06 15:03 by su