Discussion:
xpc target cpu overload
(too old to reply)
RAMANA
2009-10-16 04:36:01 UTC
Permalink
hi
i am using xpc target for my project ........i want to generate a pulse of 50e-6 sec time period and my sampling is about " 1e-6 sec " ...but on the target pc it is showing this error " cpu overloadded " can you fix my problem .......

regards
ramana
Arnaud Miege
2009-10-16 08:41:27 UTC
Permalink
Post by RAMANA
hi
i am using xpc target for my project ........i want to generate a pulse
of 50e-6 sec time period and my sampling is about " 1e-6 sec " ...but on
the target pc it is showing this error " cpu overloadded " can you fix my
problem .......
regards
ramana
1us is going to be challenging for xPC, even with a good processor,
especially if you have I/Os. 50 kHz is generally the maximum sampling
frequency you can achieve with xPC Target, depending on the type of
processor on the target PC, the number of I/Os and the complexity of the
model. I am not surprised that you have a CPU overload. The best thing you
can do is increase your sample time until there's no more CPU overload, or
use a target PC with a more powerful processor. It also depends on which
compiler you are using. There's no easy fix I'm afraid. Have a look at the
following:
http://www.mathworks.com/matlabcentral/fileexchange/23507-xpc-target-cpu-overloads

You could also try running xpcbench('this') or xpcbench('model') where
'model' is your particular Simulink model to get a better idea of the type
of performance you can expect with your current setup. Type doc xpcbench at
the MATLAB command line for more information.

You could also try the polling mode, but you lose any interaction with the
target PC until the application has finished running:
http://www.mathworks.com/access/helpdesk/help/toolbox/xpc/ug/f5-15620.html

HTH,

Arnaud

Loading...