0

Data Retrieval aBusTypes, aMachType

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

Thamer's avatar
1
Thamer
asked 2018-12-30 02:48:26 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

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.

perolofl's avatar
3.8k
perolofl
answered 2019-01-09 09:18:03 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments

Your Answer

Login/Signup to Answer