User`s guide

Looking at the Demo Adaptor
1-7
Looking at the Demo Adaptor
A good way to get a quick introduction to adaptors and adaptor development is by looking
at the demo adaptor that is included with the Image Acquisition Toolbox Adaptor Kit.
The demo adaptor is a functioning adaptor that does not require any hardware. You can
build the demo adaptor and run it to get familiar with how an adaptor works.
“Finding the Demo Adaptor Source Files” on page 1-7
“Viewing the Demo Adaptor Source Files” on page 1-8
“Setting Breakpoints” on page 1-9
“Building the Demo Adaptor” on page 1-10
“Registering an Adaptor with the Toolbox” on page 1-10
“Running the Demo Adaptor” on page 1-11
Finding the Demo Adaptor Source Files
The demo adaptor C++ source files reside in the following folder:
$MATLAB\toolbox\imaq\imaqadaptors\kit\demo\
The following table lists all the files in the demo folder in alphabetical order, with brief
descriptions.
Source File Description
DemoAdaptor.cpp Demo adaptor class implementation
DemoAdaptor.h Demo adaptor class definition
DemoDeviceFormat.cpp Implementation of class that holds device format
information
DemoDeviceFormat.h Definition of class that holds device format
information
DemoPropListener.cpp Implementation of class that notifies demo adaptor
when the value of a device property changes
DemoPropListener.h Definition of class that notifies demo adaptor when
the value of a device property changes
DemoSourceListener.cpp Implementation of class that listens for changes in the
selected video source