Hi
Suppressing specific messages in MATLAB, especially those that come from Simulink models, can sometimes be a bit tricky. The message you are referring to might be considered an informational message rather than a warning or error, which is why the typical warning suppression commands might not be effective.
Here are a few steps you can try to suppress the message:
- Diagnostic Viewer: Check if the message appears in the Diagnostic Viewer during simulation. If it does, you can configure the Diagnostic Viewer to suppress certain messages.
- Simulink Diagnostics: Go to `Home > Preferences > Simulink > Diagnostics` and adjust the diagnostic settings for "Algebraic loop," "Artificial algebraic variables," and other parameters to see if that suppresses the message.
- PowerGui Block Configuration: Double-click on the PowerGui block and ensure that all the settings under "Simulation Status" or similar tabs are set to minimize verbosity.
- Custom S-Function: If none of the above methods work, consider writing a custom S-Function that initializes the electrical states to zero and use it instead of the PowerGui block for initial state configuration.
Use "evalc":You can try running the simulation command inside `evalc`, which captures the output that would normally go to the command window. This doesn't suppress the message but prevents it from slowing down the simulation by printing to the command window.
T = evalc('sim(model)');
For more information about evalc function refer: https://www.mathworks.com/help/matlab/ref/evalc.html
Remember that suppressing messages that are not warnings or errors can be more complex, and sometimes the capability to suppress them is not exposed to end-users. Always make sure that suppressing such messages does not hide important information about the state of your model that could affect simulation results.
For more information refer following article: