Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Adaptor Creation Summary

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.

  1. Copy the demo adaptor or vendor adaptor source files into your working folder.

  2. Change the names of the source files to reflect your own adaptor name.

  3. Update the content of the source files so that the new names are used for references to other files, the adaptor, devices, and vendor.

  4. Update the source file functions to use your driver code. For more information, see Adaptor API Reference.

  5. Build the adaptor with the buildAdaptor function. Add the folder containing the built MEX-file to your MATLAB® path.

  6. Copy the demo adaptor tests and modify them for your adaptor. Add the test package folder to your MATLAB path.

  7. Run the tests on your adaptor.

  8. Deliver the finished adaptor MEX-file with your device driver and supporting files.

Tips

  • 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 buildAdaptor.

Related Examples

More About

Was this topic helpful?