How to add warning message when using simulink and code generation?
Hi!
I’m trying to add a custom warning message into a simulink model, which also should be able to work with code generation. I’ve got no luck in finding a function or how to add such message without the model crashing. I’ve tried the function warning and sldiagviewer.reportWarning in a matlab function block, but they are not compatible with code generation and I receive the error: "The ‘sldiagviewer’ class does not support code generation" or "Function ‘warning’ not supported for code generation.". Could this be solved in some way?
//THi!
I’m trying to add a custom warning message into a simulink model, which also should be able to work with code generation. I’ve got no luck in finding a function or how to add such message without the model crashing. I’ve tried the function warning and sldiagviewer.reportWarning in a matlab function block, but they are not compatible with code generation and I receive the error: "The ‘sldiagviewer’ class does not support code generation" or "Function ‘warning’ not supported for code generation.". Could this be solved in some way?
//T Hi!
I’m trying to add a custom warning message into a simulink model, which also should be able to work with code generation. I’ve got no luck in finding a function or how to add such message without the model crashing. I’ve tried the function warning and sldiagviewer.reportWarning in a matlab function block, but they are not compatible with code generation and I receive the error: "The ‘sldiagviewer’ class does not support code generation" or "Function ‘warning’ not supported for code generation.". Could this be solved in some way?
//T simulink, code generation, add warning, customize warning, custom warning, warning MATLAB Answers — New Questions