Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Extract Bus Voltage Magnitude and Angle from .sav case

I have these converged Power Flow cases as .sav files. I want to extract the Bus Voltage Magnitude and Angle, Current Magnitude and Angle data. I am using the ABUSREAL function from the PSSE API to get the values of 'PU', 'KV', 'ANGLE', and 'ANGLED'. However, this is the error message from my script:

ierr, [PU, KV, ANGLE, ANGLED] = psspy.abusreal(sid = -1, flag = 2, string = ['PU', 'KV', 'ANGLE', 'ANGLED']) TypeError: cannot unpack non-iterable NoneType object

Also, for getting the current magnitude and angle data, I believe I may have to extract the admittance matrix data using output_y_matrix and I may be able to get the Current related data based on the obtained Voltage and Admittance data. Any suggestions for this would be helpful.

If anyone has encountered this or similar types of issues while extracting this data from PSSE to excel, I would appreciate feedback or suggestions to resolve this error and get the required output.

Extract Bus Voltage Magnitude and Angle from .sav case

I have these converged Power Flow cases as .sav files. I want to extract the Bus Voltage Magnitude and Angle, Current Magnitude and Angle data. I am using the ABUSREAL function from the PSSE API to get the values of 'PU', 'KV', 'ANGLE', and 'ANGLED'. However, this is the error message from my script:

ierr, [PU, KV, ANGLE, ANGLED] = psspy.abusreal(sid = -1, flag = 2, string = ['PU', 'KV', 'ANGLE', 'ANGLED']) TypeError: cannot unpack non-iterable NoneType object

Also, for getting the current magnitude and angle data, I believe I may have to extract the admittance matrix data using output_y_matrix and I may be able to get the Current related data based on the obtained Voltage and Admittance data. Any suggestions for this would be helpful.

If anyone has encountered this or similar types of issues while extracting this data from PSSE to excel, I would appreciate feedback or suggestions to resolve this error and get the required output.