Why do I get a segmentation violation when using the Powergui in SimPowerSystems 3.1 (R14)?

1 view (last 30 days)
I have a model that uses SimPowerSystems blocks. I get the following message when I try to run or update the model:
------------------------------------------------------------------------
Segmentation violation detected at Fri Aug 06 13:25:33 2004
------------------------------------------------------------------------
<snip>
Stack Trace:
[0] simulink.dll:void __cdecl md5file_addn(struct md5file_tag *,unsigned char *,unsigned int)(0, 16, 2, 0x00cd7294) + 170 bytes
[1] simulink.dll:_slAddByteVectorToChecksum(0x2779cc10, 0, 16, 0x22738000) + 20 bytes
[2] simulink.dll:void __cdecl slAddRTParamDataToChecksum(struct slBlock_tag const *,struct slChecksumRec_tag *,struct ssParamRec_tag const *,bool)(0x22738000, 0x2779cc10, 0x279d5090, 0) + 222 bytes
[3] simulink.dll:struct slErrMsg_tag * __cdecl GenerateChecksumsForSystem(struct slBlockDiagram_tag *,struct slGraph_tag *,struct slChecksumRec_tag *,struct slChecksumRec_tag *,struct BdWriteInfo_Tag *)(0x251adb00, 0x214a01f0, 0x2779f190, 0x2779cc10) + 4653 bytes
[4] simulink.dll:struct slErrMsg_tag * __cdecl GenerateChecksumsForSystem(struct slBlockDiagram_tag *,struct slGraph_tag *,struct slChecksumRec_tag *,struct slChecksumRec_tag *,struct BdWriteInfo_Tag *)(0x251adb00, 0x215051a0, 0x2779f190, 0x2779cc10) + 4707 bytes
[5] simulink.dll:struct slErrMsg_tag * __cdecl GenerateChecksumsForSystem(struct slBlockDiagram_tag *,struct slGraph_tag *,struct slChecksumRec_tag *,struct slChecksumRec_tag *,struct BdWriteInfo_Tag *)(0x251adb00, 0x215b38b0, 0x2779f190, 0x2779cc10) + 4707 bytes
[6] simulink.dll:struct slErrMsg_tag * __cdecl BdComputeChecksums(struct slBlockDiagram_tag *,struct slBlock_tag * *,int)(0x215b38b0, 0x2746b300, 24, 0x00cd7c84) + 409 bytes
[7] simulink.dll:struct slErrMsg_tag * __cdecl sleCompileBlockDiagram(struct slBlockDiagram_tag *,bool,enum SimType,struct mxArray_tag *)(0x1de92b98, 0, 0, 0) + 4196 bytes

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
This bug has been fixed in SimPowerSystems 4.0.1 (R14SP2). If you are using a previous version, read the following:
There is a bug in SimPowerSystems 3.1 (R14) when dealing with systems whose state-space representation has empty matrices. There are no workarounds.

More Answers (0)

Categories

Find more on Trimming and Linearization in Help Center and File Exchange

Products


Release

R14SP1

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!