User`s guide

15 Frequently Asked Questions
With the TLC options, you can use the following blocks in your model to help
keep track of the number of CPU overloads.
Use the xPC Target Get Overload Counter and xPC Target Set Overload
Counter blocks to set and keep track of CPU overload numbers.
Use the Pentium Time Stamp Counter block to profile your model.
Other Things to Try
Run xpcbench at the MATLAB command line. For example
xpcbench('this')
This program accurately evaluates your system. The results indicate the
smallest base sample time that an xPC Target application can achieve on
your system. For more inform ation on
xpcbench,typehelp xp cbench at
the M ATLA B prompt or see
http://www.mathworks.com/support/product/XP/
productnews/benchmarks.html
SetupthexPCTargetenvironmentwith a different target PC. Compare
the r esu l t with the origina l target PC.
Perform optimizations such as:
- Optimize processing.
- Reduce number of I/O channels.
- Reduce data acquisition/logging.
- Disable graphics.
- Increase sample tim e.
- Partition the model and run it on multiple target PCs. Thi s optimization
might require multitarget synchronization using CAN, UDP, parallel
port, or reflective memory.
Use polling mode (if you do not need background tasks).
Useclearerrormessagestohelpyoudebug.
15-26