Pcode execution error while running it
7 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
종석 김
el 5 de En. de 2022
Respondida: Walter Roberson
el 5 de En. de 2022
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
0 comentarios
Respuesta aceptada
Walter Roberson
el 5 de En. de 2022
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 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Startup and Shutdown en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!