Why can't I print to the Matlab console from mdlOutputs in external mode?

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!

Answers (0)

Asked:

on 7 Nov 2014

Commented:

on 14 May 2019

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!