-1

python in psse gui

I know how to connect to PSSE through a python script. But I want to learn how to run python commands from PSSE GUI through their Command Line Interface.

For example, if I select "Python" in command line input, and give the command as ierr, cmpval=psspy.busdat(busnumber, 'BASE'), I was expecting to see a base value of that result. Instead, I get nothing in the Progress bar. Am I doing it wrong?

vikram's avatar
11
vikram
asked 2020-02-11 12:01:33 -0500, updated 2020-02-11 12:02:02 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

2 Answers

0

The command

ierr, cmpval=psspy.busdat(busnumber, 'BASE')

just stores the result in variables ierr and cmpval. Nothing is printed. As drsgao said, you have to print the result to see it.

perolofl's avatar
3.8k
perolofl
answered 2020-02-11 15:11:11 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments
0

You need to use the "print()" function, or something else that outputs the result onto the console.

For example:

print(psspy.busdat(busnumber, 'BASE'))

Then, you should see the tuple.

drsgao's avatar
76
drsgao
answered 2020-02-11 12:23:46 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments

Your Answer

Login/Signup to Answer