MATLAB XPC TARGET 4 - API GUIDE Guide de l'utilisateur Page 21

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 372
  • Table des matières
  • DEPANNAGE
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 20
Working with Target Objects
2-3
To check a connection between a host and a target, use the target function
targetping. For example,
tg.targetping
Note To ensure that you always know which target PC is associated with
your target object, you should always use this method to create target objects.
To create a single target object, or to create the first of many targets in your
system, use the target object constructor function
xpctarget.xpc as follows.
In the MATLAB Command Window, type
tg = xpctarget.xpc
The resulting target object is tg.
Note If you choose to use this syntax to create a target object, you should use
xPC Target Explorer to configure your target PC. This ensures that
command-line interactions know the correct target PC to work with.
Deleting Target Objects
To delete a target object, use the target object destructor function delete. In
the MATLAB window, type
tg.delete
If there are any scopes, file system, or FTP objects still associated with the
target, this function removes all those scope objects as well.
Displaying Target Object Properties
You might want to list the target object properties to monitor a target
application. The properties include the execution time and the average task
execution time.
After you build a target application and target object from a Simulink model,
you can list the target object properties. This procedure uses the default target
object name
tg as an example.
Vue de la page 20
1 2 ... 16 17 18 19 20 21 22 23 24 25 26 ... 371 372

Commentaires sur ces manuels

Pas de commentaire