Ask Your Question
1

Different between 2 syntax (psspy & ierr)

asked Apr 24 '17

tdskieu gravatar image

updated Apr 24 '17

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

1 answer

Sort by » oldest newest most voted
1

answered Apr 28 '17

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)

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

1 follower

Stats

Asked: Apr 24 '17

Seen: 759 times

Last updated: Apr 28 '17