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

Ask Your Question
1

Respond to GUI load flow results

asked Jan 26 '15

nwilson gravatar image

The goal is for a user to have a notification if certain conditions exist after running a load flow in the gui. Could you open the gui with python and monitor a bus while the user uses the gui to modify system configurations and run load flows? Or can the gui start a script whenever is opened? Can a python script monitor load flow results initated through the gui? If the condition was found, the python code (or wxpython) would notify the user and create a report.

If not, a WxPython program that resembles the gui could be created so that all gui actions are accesible but that sounds like a lot of work. Anyone created a PSSE gui clone in WxPython?

1 answer

Sort by » oldest newest most voted
0

answered May 9 '19

drsgao gravatar image

A GUI is just a viewer with triggers. If you link the triggers to the correct functions or methods, what you ask should be achievable. For myself have built a few GUI apps to make the user experience better. In those apps, I just use PSSE as a solver (not running the PSSE GUI and then initiate the GUI app from inside).

It is actually not difficult since GUI based programming is not a difficult thing. Python programming with PSSE in principle is the same as other Python programming. You just need to read the API doct and figure out how to make sense with PSSE.

By the way, I do not understand what you mean by "gui clone in WxPython". The kinda standard way to work with WxPython is to use a GUI builder (e.g., WxForm Builder) to design the GUI; then generate the Python code as a module. Create the main app script; import the said module; inherit the GUI class from the said module; adapt it; loop the app. That's basically it.

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

Stats

Asked: Jan 26 '15

Seen: 1,195 times

Last updated: May 09 '19