Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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