Contents

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.

Example

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.
}
Was this topic helpful?