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.

Performing Adaptor and Device SDK Initialization

Every adaptor must include an initializeAdaptor() function. In this function, you should perform any initialization required by your adaptor or your device's SDK. Check the documentation that came with your device to find out what, if any, initialization the SDK requires.

For example, some device SDKs provide a function that loads required DLLs into memory. Not every device's SDK requires initialization; however, every adaptor must include the initializeAdaptor() function, even if it is an empty implementation.


You do not perform device initialization in this function. For information about performing device initialization, see Opening and Closing Connection with a Device.


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

void initializeAdaptor()
     // Perform initialization required by adaptor or device SDK.