0

Slider diagram image not update when export

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()
michaelchen's avatar
1
michaelchen
asked 2022-06-15 17:21:49 -0500, updated 2022-06-15 17:34:34 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

3 Answers

0

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

Vlad's avatar
21
Vlad
answered 2023-02-05 13:33:16 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments
0

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

perolofl's avatar
3.8k
perolofl
answered 2022-06-16 01:38:44 -0500
edit flag offensive 0 remove flag delete link

Comments

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

michaelchen's avatar michaelchen (2022-06-16 15:29:44 -0500) edit
add a comment see more comments
0

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.

jconto's avatar
2.9k
jconto
answered 2022-06-16 10:12:00 -0500
edit flag offensive 0 remove flag delete link

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's avatar michaelchen (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's avatar perolofl (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's avatar michaelchen (2022-06-17 08:29:34 -0500) edit
add a comment see more comments

Your Answer

Login/Signup to Answer