Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I've just started playing with the python module in Digsilent Powerfactory

You'll have to figure out the following link. My karma is too low apparently.

github.com/cmoman/thrreadingdigsilent/blob/master/threadingex1.py

The script above is written in PyQt and is used to drive PowerFactory from an external script. I was tinkering with threading so that my GUI would remain responsive while PowerFactory was solving a load flow etc. It is more complicated that it needs to be.

It's helpful to keep the DigSilent object alive (instantiate it the main loop) since the logging in and setting up the model takes quite a bit of time. If you read my code you'll see I instantiated in the main loop and then pass it to the MainWindow and all the way to the thread.

Cheers Chris