I'm running initial calculation and RMS simulation in my script and want to get the active power and reactive power coming from the ElmXNet element. I have following lines in my script to retrieve the data:
# Get the ElmXnet element
xnet = app.GetCalcRelevantObjects('External Grid.ElmXnet')
p = xnet.GetAttribute('c:pl')
and I'm getting this error:
AttributeError: 'DataObject' object has no attribute 'c:pl'
wondering if anyone can help me with that and let me know what attribute I should call for this purpose. I've tried pl, p, c:p:bus1 as well and get the similar error.
Thanks