Why can't I print to the Matlab console from mdlOutputs in external mode?
Show older comments
Hello,
I'm using a Level-2 C S-Function to call C code from Simulink (Matlab 2011a) that interfaces with my hardware.
I'm able to print from the mdlOutputs function (where I call my C code) using either mexPrintf or ssPrintf when I check my code in "normal" mode, but when I change it to "external" so that I can run my hardware, all printing from this function stops working. I'm still able to print from all other functions, however, i.e. mdlStart, mdlInitializeConditions, and mdlTerminate.
Do I need to change any settings to allow it to work from mdlOutputs, or is there something about RTW that disallows it completely?
Thanks for any clarification in advance!
1 Comment
Neha Thomas
on 14 May 2019
Was there any update from this?
Answers (0)
Categories
Find more on Configure C/C++ S-Function Features in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!