This topic provides a summary of adaptor creation with the SDK. For details and examples of these steps, see Create Your Adaptor from the Demo Adaptor.
Copy the demo adaptor or vendor adaptor source files into your working folder.
Change the names of the source files to reflect your own adaptor name.
Update the content of the source files so that the new names are used for references to other files, the adaptor, devices, and vendor.
Update the source file functions to use your driver code. For more information, see Adaptor API Reference.
Build the adaptor with the
Add the folder containing the built MEX-file to your MATLAB® path.
Copy the demo adaptor tests and modify them for your adaptor. Add the test package folder to your MATLAB path.
Run the tests on your adaptor.
Deliver the finished adaptor MEX-file with your device driver and supporting files.
Update, build, and test your adaptor iteratively one step at a time. Develop and test in small increments, proceeding upon the success of each step.
When modifying the source files, do not remove any
of the functions. Even if you do not use all the functions, they must
be present when using