How can I get the kW settings of all the loads in a network? I am running time-based simulation loop with matlab. I thought following code would work. However, with this code, I get the same value for kW setting for a load at certain bus. It does not change with the time. What is the wrong with this code? Is there any other way to do this?
How can I get the kW settings of all the loads in a network? I am running time-based simulation loop with matlab. I thought following code would work. However, with this code, I get the same value for kW setting for a load at certain bus. It does not change with the time. What is the wrong with this code? Is there any other way to do this?
Thanks!
Iromi
Hi,
I've modified your code to make it work:
Best regards
Davis
Thanks for the help. Now it is working.
Regards,
Iromi
for load in myloads:
KW=DSSCircuit.SetActiveElement('load.Kw'+load)
print("loadname is:", load)
print("load kw is :", KW)
IS this correct way to access each load kW in loop, since getting an error where each load KW shown is -1?