First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!

Ask Your Question
0

Supress only PSSE output

asked Jan 13 '0

EBahr gravatar image

I feel like this should be an easy one, but everything I am throwing at python is failing me. I am trying to run a program within PSSE, but I would like all output to be supressed except for my python print() commands. Is this possible without creating my own print wrapper function?

3 answers

Sort by » oldest newest most voted
0

answered Aug 26 '0

jconto gravatar image

Search the forum for "Silencing PSSE STDOUT"

link
0

answered Aug 26 '0

georgc gravatar image

updated Aug 26 '0

Just adding more to what was said previously, I have been looking into this, and just wrapped certain PSSE psspy commands with the syntax to silence the PSSE output and then turn it back on, leaving everything else (python print statement etc) normal to output to the terminal our the output bar.

#turn off PSSE output
psspy.progress_output(6,'',[])
#run a couple of loads flows
psspy.fdns([0,0,0,1,1,0,0,0])
psspy.fdns([0,0,0,1,1,0,0,0])
#turn normal output back on
psspy.progress_output(1,'',[])

So far this is the only instance I have used it, but outputs when changing load values via script I plan on also wrapping.

link
0

answered Jan 30 '0

bikiran1991 gravatar image

Look into the following psspy commands in the API book:

psspy.report_output()
psspy.progress_output() 
psspy.alert_output() 
psspy.prompt_output()

Besides ignoring the output, you can also redirect it to a log file for further inspection later on.

link

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.
Want to format code in your answer? Here is a one minute demo on Youtube

Add Answer

[hide preview]

Question Tools

2 followers

Stats

Asked: Jan 13 '0

Seen: 892 times

Last updated: Aug 26 '20