Ask Your Question

Slider diagram image not update when export

asked 2022-06-15 17:21:49 -0500

michaelchen gravatar image

updated 2022-06-15 17:34:34 -0500

I used the following code to export the image of the slider diagram with my GUI open. But the image never update whatever I did to modify the case and slider diagram(trip lines, etc..). It seems It doesn't make any difference whether I open the case or not, the output slider diagram image always keeps the same. I tried psse 35 and 34 both do not work. Could someone give me any idea why it happens? Thanks a lot!"""case1""")
psspy.exportimagefile(3,r"""figure1.png""", 100)
psspy.closediagfile()"""case2""") # case2 has extra line outage
psspy.exportimagefile(3,r"""figure2.png""", 100)
edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2022-06-16 10:12:00 -0500

jconto gravatar image

Save your slider case changes (at case2) to a new file, slider2.sld and then use it for the second call. If you keep using "slider.sld" for both cases, the *.png would be the same.

edit flag offensive delete link more


Thank you for your solution. I tried but it still does not change. It seems it the case information does not matter for the slider diagram.

michaelchen gravatar imagemichaelchen ( 2022-06-16 15:29:10 -0500 )edit

You can use the same slider diagram for different cases. The slider diagram doesn't contain any status information! There seems to be a bug in some PSSE-versions. It works correctly for me in rev 35.3.3 and 35.4.0.

perolofl gravatar imageperolofl ( 2022-06-17 03:36:40 -0500 )edit

where you get version upper 35.3.3? I went PSSE website the newest it can be downloaded is 35.3.2

michaelchen gravatar imagemichaelchen ( 2022-06-17 08:29:34 -0500 )edit

answered 2022-06-16 01:38:44 -0500

perolofl gravatar image

The code works fine for me in rev 35.3.3. Is saved case "case2" succesfully read into PSSE?

edit flag offensive delete link more


Yes, it does. I will try newest psse, thank you!

michaelchen gravatar imagemichaelchen ( 2022-06-16 15:29:44 -0500 )edit

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


Asked: 2022-06-15 17:21:49 -0500

Seen: 42 times

Last updated: Jun 16