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

Ask Your Question
0

How to change power output of a machine/Plant using python?

asked Jun 25 '14

sagar gravatar image

Please tell me how to change the active power output of a machine/plant without using MACHINEDATA2/MACHINE_DATA.

Is there any short command through which we can change the power output directly without mentioning all other data again?

1 answer

Sort by » oldest newest most voted
1

answered Jun 26 '14

Eli Pack gravatar image

You don't need to mention all of the other data again. You can just put _i and _f in place of the integers and floats that you're leaving alone. The following line of code will set machine "1" at bus 1001 to 10 MW.

psspy.machine_data_2(1001,r"""1""",[_i,_i,_i,_i,_i,_i],[ 10.0,_f,_f,_f,_f,_f,_f,_f,_f,_f,_f,_f,_f,_f,_f,_f,_f])

If you're running your code from outside of PSSE, you'll need to import the placeholders first with the following line of code:

from psspy import _i, _f, _s, _o
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

Stats

Asked: Jun 25 '14

Seen: 504 times

Last updated: Jun 26 '14