First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!
1 | initial version |
Method 1: Progress_Output
import psspy
ierr = psspy.progress_output(2,r"C:\Filename.txt", [0, 1])
Method 2: Redirect module (captures all output, not just the progress output)
import psspy, redirect, sys
redirect.psse2py()
old_stdout = sys.stdout
sys.stdout = open(r"C:\Filename.txt", 'w')
2 | No.2 Revision |
Method 1: Progress_Output
import psspy
ierr = psspy.progress_output(2,r"C:\Filename.txt", [0, 1])
Method 2: Redirect module (captures all output, not just the progress output)
import psspy, redirect, sys
redirect.psse2py()
old_stdout = sys.stdout
sys.stdout # Incase you want to restore output back to the screen
sys.stdout = open(r"C:\Filename.txt", 'w')
3 | No.3 Revision |
Method 1: Progress_Output
import psspy
ierr = psspy.progress_output(2,r"C:\Filename.txt", [0, 1])
0])
Method 2: Redirect module (captures all output, not just the progress output)
import psspy, redirect, sys
redirect.psse2py()
old_stdout = sys.stdout # Incase you want to restore output back to the screen
sys.stdout = open(r"C:\Filename.txt", 'w')