I am using a model that contains a State-Space block, with the following state-space parameters:
A = diag(.005:.005:.5)+.001;B = ones(100,8);C = ones(8,100);D = .001*ones(8,8);
I am generating real-time code using xPC Target, downloading and running the application on the target machine.
Sometimes when I am starting my model, it causes a CPU overload error.
Once the model has started successfully, the computational load is easily handled by the CPU. In effect, I am only using about half of the cycle-time.
It seems like the task execution time (TET) is very high in the beginning of execution of my real-time application.
Best Answer