Ask Your Question
0

Fortran API - SHUNT_CHNG command

asked 2024-06-13 11:39:28 -0500

jgouveia gravatar image

updated 2024-06-13 11:40:13 -0500

Hello,

I implemented a USRBUS UDM model, and I want to be able to change the status of a fixed shunt device during a dynamic simulation.

When I use the fortran API command "SHUNTCHNG" (or "SHUNTAPI"), I receive a GUI message saying that the respective shunt device status was successfully changed. However, right after I got a simulation crash, indicating a memory issue in psseng.dll:

"Exception thrown at 0x00007FF9F466B1BF (psseng.dll) in python.exe: 0xC0000005: Access violation reading location 0x0000000000000000"

The error does not occur in the UDM code, it occurs after the respective model subroutine ends. When I tried to use the same command via python API, it works well.

Does anyone had a similar issue? Does anyone know if it should be possible to change a fixed shunt device status directly via a UDM model?

ps: I am using PSSE version 35.6

Thank you, José

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
0

answered 2025-09-03 08:29:32 -0500

Shahabas gravatar image

I had faced a similar issue once. I don't exactly remember the issue but it was something like when I am trying to change Switched Shunt status from a STATCOM UDM, it was crashing. I remember the fix I applied was introducing a one time step delay for doing the switching activity.

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

Stats

Asked: 2024-06-13 11:39:28 -0500

Seen: 451 times

Last updated: Sep 03