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.
Question
maziar1432
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
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now