Fortran API - SHUNT_CHNG command

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

jgouveia gravatar image

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

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