Via code I would need to find the resource on a system based on a DVE that represents the equipment.
For example I have a Main Element using the iControl connector. This element generates a DVE per output (iControl.EXT-A, iControl.EXT-B ...)
For each of these outputs a (function)resource is created on the system.
Via an automation script, I now need to find this function resource starting from the (equipment) DVE dmaId/elementId
Can you please share me a code example?
Hi Mieke,
You can get the function resource from the equipment DVE.
You do need the Primary Key and Table ID from the DVE table of the main.
Then, you can search on function resources with filter on Function ID, Main DataMinerID, Main ElementID and table entry:
Tuple<int, string> = <Table ID, Primary Key of equipment DVE> from the Main.
Normally, it will result in 1 function resource.
Assumption: you can use general parameter 65100 "[Generic DVE Table]" on the main element, because some interesting data is stored there as well.