Ask Your Question
0

How does psspy.machine_chng_2 work?

asked May 23 '17

kad gravatar image

updated May 23 '17

I tried using psspy.machinechng2 to change the Pgen of some machine, but I always get error at it. Here some line of the programme:

P=-1 while 1: P=P+1
ierr = psspy.machinechng2(81000, s, [i, _i, _i, _i, _i, 1], [P,]) psspy.fdns( options1=0, options2=0, options3=0, options4=0, options5=1, options6=1, options7=0, options8=0, )

ierr = psspy.solved() if ierr!=0:break H=P-1

What should I do?

1 answer

Sort by » oldest newest most voted
0

answered May 23 '17

perolofl gravatar image

Replace variabel s with the generator id, e.g. '1'. You have also written i instead of _i for the first integer. The correct line is shown below:

ierr = psspy.machine_chng_2(81000, '1', [_i, _i, _i, _i, _i, 1], [P,])
link

Comments

Hi! thank you for answering me, I change it, but I do still have the same error " AttributeError: 'module' object has no attribute 'machine_chng_2' "

kad gravatar imagekad (May 23 '17)

Which PSSE-version are you using? Is API machine_data_2 working? If not try machine_data instead!

perolofl gravatar imageperolofl (May 24 '17)

I'm using PSSE-32, and i think that was the problem. I did use machine_data_2 and it did work.Tthank you

kad gravatar imagekad (May 24 '17)

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: May 23 '17

Seen: 783 times

Last updated: May 23 '17