Ask Your Question
0

Slider diagram image not update when export

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

michaelchen gravatar image

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

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!

psspy.case(r"""case1""")
psspy.opendiagfile(r"""slider.sld""")
psspy.exportimagefile(3,r"""figure1.png""", 100)
psspy.closediagfile()
psspy.case(r"""case2""") # case2 has extra line outage
psspy.opendiagfile(r"""slider.sld""")
psspy.exportimagefile(3,r"""figure2.png""", 100)
psspy.closediagfile()
edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted
0

answered 2023-02-05 13:33:16 -0600

Vlad gravatar image

I have the same problem, I will not make another thread but if someone knows how to solve this please help

edit flag offensive delete link more
0

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

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

Comments

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 -0600 )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 -0600 )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 -0600 )edit
0

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

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

Comments

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

michaelchen gravatar imagemichaelchen ( 2022-06-16 15:29:44 -0600 )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

Stats

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

Seen: 339 times

Last updated: Feb 05 '23