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

Ask Your Question
0

VAR array access

asked May 2 '17

Jack gravatar image

is there a way to access "var" variable in psse using python API?

2 answers

Sort by » oldest newest most voted
0

answered Jul 7 '17

Linzhi gravatar image

@perolofl was right.

more detailedly, the starting indexes of VAR, CON, ICON, STATE can be returned by API like mdlind, lmodind, etc., and the index for the data you want is based on the model documentary.

link
0

answered May 4 '17

perolofl gravatar image

You can access the var value with:

ierr, rval = psspy.dsrval('VAR', indx)

where indx is the VAR index.

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: May 2 '17

Seen: 1,111 times

Last updated: Jul 06 '17