Why can't i suppress the simulink warning Simulink:protectedModel:protectedModelMexWrongPlatformSimCodeGenWithWebview?
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Philipp Krause
el 25 de Jun. de 2024
Comentada: Philipp Krause
el 28 de Jun. de 2024
I wonder why i am not able to suppress the following simulink warning:
--> Simulink:protectedModel:protectedModelMexWrongPlatformSimCodeGenWithWebview
Simulink.suppressDiagnostic(gcb,'Simulink:protectedModel:protectedModelMexWrongPlatformSimCodeGenWithWebview')
With this i got the following response in commandline:
"The message identifier Simulink:protectedModel:protectedModelMexWrongPlatformSimCodeGenWithWebview cannot be suppressed."
Is there another way to hide or suppress this warning or are there limitations on suppressable warnings?
0 comentarios
Respuesta aceptada
R
el 25 de Jun. de 2024
In Simulink, certain warnings are designed to be non-suppressible due to their importance or potential impact on model integrity and simulation results. The warning Simulink:protectedModel:protectedModelMexWrongPlatformSimCodeGenWithWebview appears to be one of those warnings that cannot be suppressed using the standard Simulink.suppressDiagnostic function.
The warning appears related to the use of protected models and MEX files that were generated on a different platform and causing/potentially causing compatibility issues.
It is better to resolve this error, i.e., if you have access to the original model, regenerate the protected model and MEX files on the current platform.
You can try the following but this will be applied across current MATLAB session:
warning('off', 'Simulink:protectedModel:protectedModelMexWrongPlatformSimCodeGenWithWebview')
Más respuestas (0)
Ver también
Categorías
Más información sobre Model References 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!