Ask Your Question
1

Different between 2 syntax (psspy & ierr)

asked 2017-04-24 04:07:52 -0500

tdskieu gravatar image

updated 2017-04-24 04:09:09 -0500

I 've just started to study about PSS/E. I read the file API of PSS/E and my friend's code . 2 syntax are different and i don't understand the meaning of those syntax.

Ple help me.

Sorry because i'm not good at English.

API syntax : ierr = branch_data(i, j, ckt, intgar, realar)

   my friend's code: psspy.branch_data(2,3,intgar1=cb171).......

Thank you

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2017-04-28 08:36:32 -0500

zezo510 gravatar image

Ok. Here are the differences:

"ierr"

This is the error code resulting from applying any function in module psspy and it returns a value 0 if it was executed correctly or other integers if not. However, in case of your friend's code, he did not want to see this value. He just wanted to execute the branch data changing.

"psspy."

This has to be typed for any API in the module psspy. It is not mentioned in the API syntax description but if you run the API branch_data as it is shown in the documentation, it won't work.

"intgar="

instead of typing a full list of the integers you want to assign as parameters for the branch in question, you can just specify the parameters you want to change and the rest of the parameters will assume the default values (_i,_f,...etc)

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

1 follower

Stats

Asked: 2017-04-24 04:07:52 -0500

Seen: 710 times

Last updated: Apr 28 '17