User`s guide

Retrieving Event Informa tion ...................... 7-7
Introduction
...................................... 7-7
Event Structures
.................................. 7-7
Example: Accessing Data in the Event Log
............. 7-9
Creating and Executing Callback Functions
......... 7-12
Introduction
...................................... 7-12
Creating Callback Functions
........................ 7-12
Specifying Callback Functions
....................... 7-14
Example: Viewing a Sample Frame
................... 7-16
Example: Monitoring Memory Usage
................. 7-17
Using the From Video Device Block in Simulink
8
Overview ......................................... 8-2
Opening the Block Library
......................... 8-3
Using the imaqlib Command
........................ 8-3
Using the Simulink Library Browser
.................. 8-3
Example: Saving Video Data to a File
................ 8-5
Introduction
...................................... 8-5
Step 1: Open the Image Acquisition Toolbox L ibrary
..... 8-5
Step 2: O p en a Model or Create a New M odel
........... 8-6
Step 3: Drag the From Video Device Block into the
Model
......................................... 8-7
Step 4: Drag Other Blocks to Complete the Model
....... 8-8
Step 5: Connect the Blocks
.......................... 8-10
Step 6: Specify From Video Device Block Parameter
Values
........................................ 8-10
Step 7: Run the Simulation
......................... 8-12
x Contents