MATLAB XPC TARGET RELEASE NOTES Guide de l'utilisateur Page 292

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 531
  • Table des matières
  • DEPANNAGE
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 291
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
Vue de la page 291
1 2 ... 287 288 289 290 291 292 293 294 295 296 297 ... 530 531

Commentaires sur ces manuels

Pas de commentaire