User`s guide
vi Contents
Creating a Makefile Based on the Demo Adaptor Makefile . 2-20
Providing Hardware Information
3
Using Adaptor Exported Functions . . . . . . . . . . . . . . . . . . . . . 3-2
Creating a Stub Adaptor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-4
Performing Adaptor and Device SDK Initialization . . . . . . . 3-7
Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-7
Specifying Device and Format Information . . . . . . . . . . . . . . 3-8
Using Objects to Store Device and Format Information . . . . . 3-8
Suggested Algorithm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-9
Storing Device Information . . . . . . . . . . . . . . . . . . . . . . . . . 3-11
Storing Format Information . . . . . . . . . . . . . . . . . . . . . . . . 3-12
Example: Providing Device and Format Information . . . . . . 3-14
Defining Classes to Hold Device-Specific Information . . . . 3-17
Defining a Device or Format Information Class . . . . . . . . . . 3-17
Storing Adaptor Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-17
Unloading Your Adaptor DLL . . . . . . . . . . . . . . . . . . . . . . . . 3-19
Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-19
Returning Warnings and Errors to the MATLAB Command
Line . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-20
Defining Your Adaptor Class
4
Defining Your Adaptor Class . . . . . . . . . . . . . . . . . . . . . . . . . . 4-2
Using IAdaptor Abstract Class Virtual Functions . . . . . . . . . 4-3
Creating Stub Implementation of Your Adaptor Class . . . . . 4-5