Ask Your Question

Plotting a CON Parameter

asked 2018-10-19 11:00:04 -0600

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.

edit retag flag offensive close merge delete


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

perolofl gravatar imageperolofl ( 2018-10-20 00:47:57 -0600 )edit

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

jfconroy gravatar imagejfconroy ( 2018-10-21 03:31:04 -0600 )edit

2 answers

Sort by ยป oldest newest most voted

answered 2018-10-21 15:17:13 -0600

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.

edit flag offensive delete link more

answered 2018-10-26 01:40:49 -0600

jfconroy gravatar image

Thanks for your help, I got it working.

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-10-19 11:00:04 -0600

Seen: 408 times

Last updated: Oct 26 '18