Ask Your Question
1

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

asked 2014-06-23 04:21:31 -0500

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.

edit retag flag offensive close merge delete

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 ( 2014-06-24 04:15:52 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-06-23 21:54:27 -0500

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
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

Stats

Asked: 2014-06-23 04:21:31 -0500

Seen: 2,730 times

Last updated: Jun 23 '14