Ask Your Question

Data Retrieval aBusTypes, aMachType

asked 2018-12-30 02:48:26 -0500

Thamer gravatar image

Dear All,

Could any one please provide me with an example of these kind of routines: aBusTypes, aMachType, ...? I could not get any one of these successfully executed.

Thank you

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2019-01-09 09:18:03 -0500

perolofl gravatar image

Example 1:

ierr, types = psspy.abustypes('TYPE')

will return 0 ['I'] since 'TYPE' is a valid string to API abusint.

Example 2:

ierr, types = psspy.abustypes(['TYPE','PU','VOLTAGE','EXNAME'])

will return 0 ['I', 'R', 'X', 'C'] since the arguments are valid strings to API abusint, abusreal, abuscplx and abuschar respectively.

Example 3:

ierr, types = psspy.abustypes(['TYPE','PU','VOLTAGE','EXNAME','XXX'])

will return 5 [None, None, None, None, None] since argument 'XXX' is not a valid string to API abusint, abusreal, abuscplx or abuschar. I.e., all supplied strings must be valid!!! The error code is 5 here since it is the fifth element in the list that contains the wrong string.

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


Asked: 2018-12-30 02:48:26 -0500

Seen: 169 times

Last updated: Jan 09