Matlab problem

Hi - I’ve read previous forums posts suggesting that problems with Matlab may be solved by getting the latest version of the API. I’ve done this, installing Front Panel v 3.0.10. I’ve then taken the contents of API/Matlab into a folder I have unhindered access to and I’ve also copied in the .dll and .cpp from the level above into the same folder. I’ve opened Matlab version R2006a, set its working directory to that same directory, and run 0o_getdevicelist (with the board plugged in and rcognised by windows). I get this:

ok_getdevicelist
??? There was an error loading the library “N:\myhome\Matlab\OpalKelly\okFrontPanel.dll”
Error using ==> loaddefinedlibrary
This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem.

Error in ==> loadlibrary at 273
diagnoseError(err);

Error in ==> ok_getdevicelist at 13
loadlibrary(‘okFrontPanel’, ‘okFrontPanelDLL.h’);

Any suggestions would be greatly appreciated.

Thanks
Sim Bamford

Do you have the header file in your current directory? A simpler approach is something like this:
addpath(‘C:\Program Files\Opal Kelly\FrontPanel\API\Matlab’);
addpath(‘C:\Program Files\Opal Kelly\FrontPanel\API’);

That way Matlab can find all the other wrapper calls to the API, and you don’t have to copy the dll files, just leave them as installed.

It works thanks very much :slight_smile: