LGOS/LSVS supervision instantiation counts existing instances incorrectly #1161
Labels
Kind: Bug
Something isn't working
Priority: Important
Tackle eventually
Status: Ready for development
Checked by all co-developers
Describe the bug
Currently we check several items as part of instantiating supervisions:
open-scd/src/editors/subscription/foundation.ts
Lines 355 to 378 in 8ebac53
One of these items is
instantiatedSupervisionsCount
:open-scd/src/editors/subscription/foundation.ts
Lines 509 to 520 in 8ebac53
With the following (slightly hand modified IID file), supervisions cannot be instantiated.
B30_valKind_valImport.zip
The reason for this is that the count function is showing a much larger number of supervisions than exist.
This is because we are counting all
DOI
s which haveDAI
s which have aVal
. In this particular IED there are manyDOI > DAI > Val
within eachLGOS
.There are enough supervision instances available, within the
Services
section:<SupSubscription maxGo="64" maxSv="16"/>
I think this query needs to be tightened up. When is a supervision instantiated? I think only when a DO
GoCBRef
has aVal
against the DASetSrcRef
.I think this change would be sufficient (with appropriate modifications for the control block type):
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A supervised GOOSE instance should appear with the supervision icon.
The text was updated successfully, but these errors were encountered: