I am using a PEAK CAN-USB converter (item number IPEH-002021) to communicate with a servo drive via matlab. I only recently started using load-library files in Matlab and I'm having a bit of difficulty communicating to the PCAN converter using matlab.
I loaded the pcanbasic.dll file with the pcanbasic.h headerfile using the loadlibrary function, the library gets loaded and I can view the functions using the libfunctions('libname') file, but its loaded with a lot of errors (Warning: The data type 'error' used by function CAN_initialize does not exist).
When I try calling a function using calllib function, I get the error: Error using ==> calllib, no method with matching signature.
Has anyone come across this problem or does anyone know what I am doing wrong?
Any help would be greatly appreciated.