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

Ask Your Question
0

Plotting a CON Parameter

asked Oct 19 '18

jfconroy gravatar image

Hello All,

Here's the situation.

With a USRMDL of a STATCOM that I am using (but did not write and do not have the source code for) the voltage setpoint of the STATCOM is a CON parameter. I make changes to this CON parameter and see the response of the STATCOM. I want to plot the STATCOM voltage and the reference voltage on the same graph, to show how the voltage follows the changes in setpoint. However, it seems that I cannot plot the CON parameter. Does anyone know a workaround?

I would like to ask the model writer to include the CON parameter as a VAR, so that I can plot it that way, but this might not happen any time soon.

Perhaps some of you have faced a similar situation. I would appreciate your replies. Thanks.

Comments

Do you have a FORTRAN compiler so you can compile and link Conec and Conet?

perolofl gravatar imageperolofl (Oct 20 '18)

Yes, I do have a FORTRAN compiler. What do you suggest? Thanks.

jfconroy gravatar imagejfconroy (Oct 21 '18)

2 answers

Sort by » oldest newest most voted
1

answered Oct 21 '18

perolofl gravatar image

Assign the CON-value to a VAR in the following way:

  1. Find out the number of the CON you want to plot with DOCU. Let us assume the number is 1234.

  2. Create CONEC and CONET subroutines with DYRE if you don't have them already.

  3. Enter the following line in the CONEC file before the RETURN statement (make sure the VAR number is higher than the highest number used in the snapshot):

    VAR(99999) = CON(1234)

  4. Compile CONEC and CONET and link dsusr.dll.

  5. Load dsusr.dll into PSSE.

  6. Add a new VAR channel for the VAR number used in step 3. E.g. psspy.var_channel([-1,99999],"STATCOM VREF")

  7. Save the snapshot.

link
0

answered Oct 26 '18

jfconroy gravatar image

Thanks for your help, I got it working.

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: Oct 19 '18

Seen: 867 times

Last updated: Oct 26 '18