MATLAB: Do I get a CPU overload error when executing the PCI 6052E card even at a low sampling rate of 25 Hz in xPC Target 2.9 (R2006a)

Simulink Real-Time

I have a simple model with a PCI 6052E analog input block and an output port. I want to test the maximum sampling rate achievable by this setup. I get CPU overload errors even if I run the model at a sampling rate of 25 Hz. I am using Watcom compiler to build my application. PCI 6052E card itself supports sampling speeds upto 333kHz.

Best Answer

The issue is due to Watcom compiler not optimizing code in the desired way and hence leading to the CPU overload errors.
To work around this issue use a supported Visual C compiler.