Can you tell me the file versions you’re working with? Primarily okfrontpanel/display.m, the date of the okFrontPanel.dll and the file version of the okFrontPanelDLL.h
The file version is just the Rev number in the file (near the top).
Matlab can be somewhat picky with getting everything just right. The versions I’m working with here work just fine, but I want to make sure we’re on the same page.
Here’s an updated version of the header file. As I said, Matlab is a bit finicky and the library interface doesn’t provide much feedback to help debug things. Hope this helps.
If it doesn’t work for you, I’ll zip up the entire version we have as latest.
I had the same type of problems as the original poster. I substituted the header file under C:\Program Files\Opal Kelly\FrontPanel\API\Matlab by the one provided. Now I get the following error messages:
loadlibrary(‘okFrontPanel’, ‘okFrontPanelDLL.h’);
Warning: Warnings messages were produced while parsing. Check the functions you
intend to use for correctness. Warning text can be viewed using:
[notfound,warnings]=loadlibrary(…)
In loadlibrary at 277
Warning: The function ‘okFrontPanelDLL_LoadLib’ was not found in the library
In loadlibrary at 321
Warning: The function ‘okFrontPanelDLL_FreeLib’ was not found in the library
In loadlibrary at 321
Warning: The function ‘okCPLL22393_GetReference’ was not found in the library
In loadlibrary at 321
Warning: The function ‘okUsbXEM3001v1_Construct’ was not found in the library
In loadlibrary at 321
Warning: The function ‘okUsbXEM3001v2_Construct’ was not found in the library
In loadlibrary at 321
Warning: The function ‘okUsbXEM3010_Construct’ was not found in the library
In loadlibrary at 321
Warning: The function ‘okUsbXEM3001v1_Destruct’ was not found in the library
In loadlibrary at 321
Warning: The function ‘okUsbXEM3001v2_Destruct’ was not found in the library
In loadlibrary at 321
Warning: The function ‘okUsbXEM3010_Destruct’ was not found in the library
In loadlibrary at 321
Warning: The function ‘okUsbXEM3010_GetEepromPLLConfiguration’ was not found in the library
In loadlibrary at 321
Warning: The function ‘okUsbXEM3010_SetEepromPLLConfiguration’ was not found in the library
In loadlibrary at 321
Warning: The function ‘okUsbXEM3010_GetPLLConfiguration’ was not found in the library
In loadlibrary at 321
Warning: The function ‘okUsbXEM3010_SetPLLConfiguration’ was not found in the library
In loadlibrary at 321
Warning: The function ‘okUsbFrontPanel_Open’ was not found in the library
In loadlibrary at 321
Warning: The function ‘okUsbFrontPanel_GetPLLConfiguration’ was not found in the library
In loadlibrary at 321
Warning: The function ‘okUsbFrontPanel_SetPLLConfiguration’ was not found in the library
In loadlibrary at 321
Warning: The function ‘okUsbFrontPanel_GetEepromPLLConfiguration’ was not found in the library
In loadlibrary at 321
Warning: The function ‘okUsbFrontPanel_SetEepromPLLConfiguration’ was not found in the library
In loadlibrary at 321