Front Panel / MATLAB interface missing functions

Hello,
I’m trying to get data from my opal kelly onto matlab for some processing. I managed to get the library loaded, but only after a little modification. I’m using MATLAB R2018a and FrontPanel 5.2.6

I had to change the okFrontPanelDLL.h file from:


#include "okFrontPanel.h"
extern "C"
{

to


#include "okFrontPanel.h"
#ifdef __cplusplus
extern "C"
{
#endif

This got the libraray to load, and makes libisloaded('okFrontPanel') return 1.

My problem is that now, when I try to run anything else, I get errors that seem to stem from the library being a C++ header file. The two problems I’ve mostly run into are:

When I call:
>> libfunctions('okFrontPanel')

it returns:

Functions in library okFrontPanel:

okFrontPanelDLL_CheckAPIVersion okFrontPanelDLL_GetAPIVersionString
okFrontPanelDLL_FreeLib okFrontPanelDLL_GetVersion
okFrontPanelDLL_GetAPIVersionMajor okFrontPanelDLL_LoadLib
okFrontPanelDLL_GetAPIVersionMicro
okFrontPanelDLL_GetAPIVersionMinor

Which I doubt is all of them. Similarly, when I try to run any function not in this list, for instance by running:

calllib(‘okFrontPanel’, ‘okFrontPanel_Construct’);

I get the error:
Error using calllib
Method was not found.

I suspect this is because the functions are defined in C++, rather than C, which is what MATLAB prefers, but I am not totally sure.

Any help would be greatly appreciated. It is not letting me upload my header and library files because I am a new user, so I will hope that this comes across or I will be given permission to upload files.

Thank you!