This is machine translation

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

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Unloading Your Adaptor DLL

Every adaptor must include an uninitializeAdaptor() function. The engine calls this function when a user resets the toolbox, by calling the imaqreset function, or exits the MATLAB® software.

Your adaptor's implementation of this function depends upon the requirements of your hardware. Every adaptor must include the uninitializeAdaptor() function, even if it is an empty implementation.


As defined by the adaptor kit, the uninitializeAdaptor() function accepts no arguments and does not return a value. The following example implements an empty initializeAdaptor() function.

void uninitializeAdaptor()
     // Perform any cleanup your hardware requires.