First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!

Ask Your Question
-1

python in psse gui

asked Feb 11 '0

vikram gravatar image

updated Feb 11 '0

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?

2 answers

Sort by » oldest newest most voted
0

answered Feb 11 '0

perolofl gravatar image

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.

link
0

answered Feb 11 '0

drsgao gravatar image

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.

link

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.
Want to format code in your answer? Here is a one minute demo on Youtube

Add Answer

[hide preview]

Question Tools

1 follower

Stats

Asked: Feb 11 '0

Seen: 1,334 times

Last updated: Feb 11 '20