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

  • 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 26
Working with Target Ob jects
to the host through an RS-232 connection. In the MATLAB Command
Window, type
tg = xpctarget.xpc('rs232', 'COM1', '115200')
The resulting target object is tg.
3 To check a connection between a host a nd a target, use the target function
targetping. For example,
tg.targetping
Note T o ensure that you always know which target PC is ass ociated with
your targe t object, you should always use this method to create target
objects.
4 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 Comm and Window, type
tg = xpctarget.xpc
The resulting target object is tg.
Note If you choose t o use this syntax to create a target object, you should use
the xPC Target software 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.
2-3
Vue de la page 26
1 2 ... 22 23 24 25 26 27 28 29 30 31 32 ... 530 531

Commentaires sur ces manuels

Pas de commentaire