Scada-LTS icon indicating copy to clipboard operation
Scada-LTS copied to clipboard

Added phase to force Meta Data Source recalculation for Change Context

Open Limraj opened this issue 2 years ago • 0 comments

Description Added phase to force Meta Data Source recalculation for Change Context. After running Meta Data Source with Update Event: Change Context, a recalculation should be forced, even if no change was registered at the context point at that time.

To Reproduce Steps to reproduce the behavior:

  1. Login as admin;
  2. Created Virtual Data Source as virtual_ds(enabled, update 1s), and Virtual Data Point as virtual_dp (enabled, settable, numeric, no change, start value:0);
  3. Created Meta Data Source as meta_ds(enabled), and Meta Data Point as meta_dp (enabled, numeric) with: a) Script context add: 'virtual_ds - virtual_dp' as p1; b) Script: return p1.value; c) Event Update: Change Context;
  4. Crearte watchlist as wl_1 with 'virtual_ds - virtual_dp', and 'meta_ds - meta_dp';
  5. Stop 'meta_ds - meta_dp';
  6. Change 'virtual_ds - virtual_dp'' to 3;
  7. Start 'meta_ds - meta_dp', is not actual value is 0; -> the value should be 3 -> error

Spec:

  • Scada-LTS Version 2.6.14

Limraj avatar Oct 28 '23 11:10 Limraj