Error message relating to powergui

조회 수: 26 (최근 30일)
David Reilly
David Reilly 2011년 3월 10일
답변: Vahid 2022년 10월 25일
I've run a detailed simulation using the continuous powergui. When I double click the powergui block to perform a FFT analysis the following error message appears:
'Error evaluating 'OpenFcn' callback of PSB option menu block block (mask) 'powergui'. Attempt to reference field of non-structure array.'
I'm using fcn blocks but none are called 'OpenFcn'. What is a PSB option menu? The simulation functions correction but powergui won't allow me to perform FFT.
Any help would be much appreciated.

채택된 답변

Kaustubha Govind
Kaustubha Govind 2011년 3월 10일
'OpenFcn' is one of the several callbacks that a block can have - in this case, it is executed when the powergui block is opened. I think "PSB option menu block" is simply the value of the MaskType property of the powergui block.
Essentially, it looks like the error is being thrown from the software itself. This could be due to a bug in SimPowerSystems, or something unexpected (like a corruption) happening in your model.
I would recommend that you report this to Tech Support, so they can diagnose the issue.

추가 답변 (1개)

Vahid
Vahid 2022년 10월 25일
Delete Powergui block of new version and Replace with the block from your Installed Simulink library.It helped me.

카테고리

Help CenterFile Exchange에서 Block Libraries에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by