Ask Your Question

cmoman's profile - activity

2014-11-09 19:31:21 -0500 received badge  Teacher (source)
2014-11-09 19:31:21 -0500 received badge  Necromancer (source)
2014-11-08 05:15:25 -0500 answered a question DIgSILENT Powerfactory and Python scripts

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