First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!
1 | initial version |
Here's the answer for anyone else coming along:
psspy.psseinit(2000)
psspy.case(CASE)
# begin reporting before calling scmu
psspy.report(2, r'C:\Users\user\Desktop\PSSE\Fault_Output\Bus_100.txt',[2,0])
psspy.scmu(1,[_i,_i,_i,_i,_i,_i,_i],[_f,_f,_f,_f,_f],_s)
psspy.scmu(2,[7,100,_i,_i,_i,_i,_i],[_f,_f,_f,_f,_f],"")
psspy.scmu(3,[_i,_i,_i,_i,_i,_i,_i],[_f,_f,_f,_f,_f],_s)
psspy.close_report()
The trick is to start the reporting device before the calls to scmu
. PSSE doesn't keep a copy of it's scmu
output. So if you report afterwards, all the output is already gone - hence the empty report file.