First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!

Ask Your Question
0

(API)Power Flow Operation - DIFF

asked Jan 31 '3

rhapsody gravatar image

updated Jan 31 '3

Hello community,

I am trying to write a python script comparing two saved cases using the DIFF API.

psspy.asys(sid=0,num=1,areas=99)

psspy.diff(sid=0, all=0, apiopt=1, status=[],cfile = compfile)

Subsystem identifier 0 is defined for Area 99 for the case comparison.

I received an error message as shown below:

Messages for api DIFF

Invalid SID value or subsystem SID is not defined: 0 (001382)

Can anyone help with this error? Thanks!

1 answer

Sort by » oldest newest most voted
0

answered Jan 31 '3

acd1 gravatar image

I believe you need to first initialize the area subsystem 0 with psspy.asysinit(0)

link

Comments

Thanks for the reply. It is a mistake that I should use BSYS instead of ASYS as I am comparing the buses in the DIFF API.

rhapsody gravatar imagerhapsody (Jan 31 '3)

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: Jan 31 '3

Seen: 297 times

Last updated: Jan 31 '23