Ask Your Question
0

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

asked 2014-06-25 07:16:29 -0600

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?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2014-06-26 00:06:11 -0600

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
edit flag offensive delete link more

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: 2014-06-25 07:16:29 -0600

Seen: 499 times

Last updated: Jun 26 '14