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

Ask Your Question
0

Run GUI with Python

asked Jul 8 '16

Lassettc gravatar image

Hi everyone,

I have an odd question pertaining to plotting in PSS/e. I know that the api module pssplot does not allow one to run functions when the GUI is not open. I would like to automate the process by having the Python script open the PSS/e GUI and pass python arguments to that instance to allow plotting to occur (without manually having to open PSS/e). The reason for this is that I'd like to complete tests and have Python automatically open the GUI and create graphs even if I'm unavailable to manually do this. It is easy to open PSS/e with Python, however I'm stuck on how to get PSS/e to recognize the following Python code to plot.

Thanks

1 answer

Sort by » oldest newest most voted
0

answered Jul 11 '16

SqFKYo gravatar image

I'd recommend that since you're already running PSS/E from Python, you'd forget about the PSS/E GUI and instead use e.g. matplotlib to plot your graphs.

link

Comments

Hi SqFKYo, Thanks for the answer, unfortunately I think that's the only solution I could come up with. I most likely won't pursue attempting to communicate with the GUI via python.

Lassettc gravatar imageLassettc (Jul 11 '16)

Hi, does any of you guys have the code for extracting data from an output file using dyntools and then plotting using matplotlib?

Karma1 gravatar imageKarma1 (May 19 '17)

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

Stats

Asked: Jul 8 '16

Seen: 1,277 times

Last updated: Jul 11 '16