I have created a C-MEX S-function which performs some memory management in the mdlOutputs function. I can use this S-function without error in normal simulation mode, and I can also successfully generate code for the GRT target. When I build the model for the Real-Time Windows Target, it does not report any errors, and it connects to the Real-Time Windows kernel without error. However, when I start the simulation, Windows crashes to a blue screen reporting "DRIVER_IRQL_NOT_LESS_THAN_OR_EQUAL".
MATLAB: Does using the S-function with Real-Time Windows Target cause Windows to crash
%sallocatefunctionmemorymxfreemxmallocrealtimewindows
Related Question
- Does Real-Time Windows Target support I/O boards with USB bus type
- Do I randomly receive a communication error when executing the model in external mode using Real-Time Windows Target 2.5.1 (R14SP1)
- Real-time windows target Toolbox
- How does the memory available on xPC Target affect the speed of the application in xPC Target 3.4(R2008a)
- How to add a C header file to the C-Mex S-function
- Error in the incremental build with a S-function on Real Time Windows Target
Best Answer