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

Ask Your Question
1

How to handle pop up boxes from .irf file in python?

asked Jun 23 '14

anonymous user

Anonymous

Hello all,

I have an old .irf file which I run in .idev( response) file. It requires certain inputs hence creates pop up boxes in PSS/e. How to feed these pop up boxes during running in python shell? I have tried with redirect changes but no use. (The code in .irf file is not accessible.)

Thanks.

Comments

Dear Jconto Thanks for your quick reply. I tried it , but its not working for me. The irf file takes input through pop up windows. Those input requests are not redirected on python IDLE. The program just kind of hangs at the pop up window time. ( IRF isn't defined to take inputs like"myiplan,a, b,c

Mahesh gravatar imageMahesh (Jun 24 '14)

1 answer

Sort by ยป oldest newest most voted
0

answered Jun 24 '14

jconto gravatar image

Within the main python code:

#run your pre-code
#call the irf program
psspy.runiplanfile("myiplan,a,b,c")    #exec an iplan with three arguments
#call the idv file that contains the response to the pop-up's in the irf code
psspy.runrspnsfile(myidv)
#run your post-code
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: Jun 23 '14

Seen: 2,768 times

Last updated: Jun 23 '14