フィルターのクリア

Pcode execution error while running it

7 ビュー (過去 30 日間)
종석 김
종석 김 2022 年 1 月 5 日
回答済み: Walter Roberson 2022 年 1 月 5 日
When I execute pcode (which is .p), I got the error below.
I used pcode (filename) statement to make .p file.
Anyone knows what the problem is?
Error in sweep_3level_PWM_harmonic (line 44)
run('Grid_side_3_level_anpc_Rectifier_PWM_harmonic_run') - Show complete stack trace
Caused by:
Error using Grid_side_3_level_anpc_Rectifier_PWM_harmonic_run (line 89)
Simulink cannot determine sizes and/or types of the outputs for block 'Grid_side_3_level_anpc_Rectifier_PWM_harmonic/Modulator/MATLAB Function1' due
to errors in the block body, or limitations of the underlying analysis. The errors might be inaccurate. Fix the indicated errors, or explicitly
specify sizes and/or types for all block outputs. - Show complete stack trace
Error using Grid_side_3_level_anpc_Rectifier_PWM_harmonic_run (line 89)
Error occurred in 'Grid_side_3_level_anpc_Rectifier_PWM_harmonic/Modulator/MATLAB Function1'. - Show complete stack trace

採用された回答

Walter Roberson
Walter Roberson 2022 年 1 月 5 日
Normally when your Simulink MATLAB Function Block invokes a function that is .m code, Simulink examines the source code to try to deduce what size and datatype are needed for each of the signals.
When you invoke pcode then Simulink cannot examine the MATLAB code to determine the sizes and data types.
You will need to use the port manager to mark the MATLAB Function Block ports for data type and data size.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by