Hi Stephen,
I had Mathworks over the phone and here is the walkthrough that allowed me to get the stub adaptor from p44-45 working correctly. First download dependencywalker available freely from the web. Launch it and open your adaptor DLL. You should see one window detailing the functions included within the DLL. you should have five of them: uninitializeAdaptor initializeAdaptor getDeviceAttributes getAvailHW createInstance
I was missing the latter one, meaning there was somehow something not compiling properly regarding.
I compared the function from the adaptorkit.pdf with the one from the demo project mwdemoimaq. The declaration of the createInstance parameters is different. So I modified my project accordingly and hey presto it worked:
imaqkit::IAdaptor* createInstance(imaqkit::IEngine* engine,const imaqkit::IDeviceInfo* deviceInfo,const char* sourceType){...
I hope this is helpful and good luck with this.
Best regards,
Roland
Best Answer