MATLAB IMAGE ACQUISITION TOOLBOX 3 Guide de l'utilisateur Page 196

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 408
  • Table des matières
  • DEPANNAGE
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 195
7 Using Events and Callbacks
Creating and Executing Callback Functions
In this section.. .
“Introduction” on page 7-12
“Creating C allback Functions” on page 7-12
“Specifying Callback Functions” on page 7-14
“Example: Viewing a Sample Frame” on page 7-16
“Example: Monitoring Memory Usage” on page 7 -17
Introduction
The power of using event callbacks is the proces sing that you can perform in
response to events. You decide which events you want to associate callbacks
with and the functions these callbacks execute.
This section
Describes how to create a callback function
Describes how to specify the function as the value of a callback p roperty
Provides two examples of u sing event callbacks:
- Shows how to use callbacks to view a sample frame from the frames
being acquired
- Uses callback to implement a simple memory monitoring function
Note Callback function execution might be delayed if the callback involves
a CPU-intensive task such as updating a figure.
Creating Callback Functions
This section explains how to create callback functions for the TimerFcn,
FramesAcquiredFcn, StartFcn, StopFcn, TriggerFcn,andErrorFcn
callbacks.
7-12
Vue de la page 195
1 2 ... 191 192 193 194 195 196 197 198 199 200 201 ... 407 408

Commentaires sur ces manuels

Pas de commentaire