Welcome to our user forum (read only mode).
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Multiple warnings when loading library from MATLAB

2 posters

Go down

Multiple warnings when loading library from MATLAB Empty Multiple warnings when loading library from MATLAB

Post  np_cottaris Mon Nov 08, 2010 11:35 pm

Hello,

I am using MATLAB 2010a to load the McsUsbDLL as in the examples provided and I get lots of warnings about unknown types.

What gives?


----------------------------------------------
Here is my MATLAB code:

if ~libisloaded('McsUsbDLL')
[notfound, warnings] = loadlibrary('McsUsbDLL', 'McsUsbDLL.h','alias','McsUsbDLL')
notfound
warnings
end
-----------------------------------------------


Here are the various warnings generated:

Warning: The data type 'error' used by function McsUsb_UploadFirmware does not exist.
> In loadlibrary at 461
In SetUpEleStimEnvironment at 16

notfound =

Empty cell array: 0-by-1


warnings =


Type 'USHORTPtr' was not found. Defaulting to type voidPtr.

Found on line 33 of input from line 32 of file C:\Program Files\Multi Channel Systems\MC_Stimulus II\Documentation\Matlab\McsUsbDLL.h

Type 'McsUsbFactoryProgressCallback' was not found. Defaulting to type error.

Found on line 55 of input from line 54 of file C:\Program Files\Multi Channel Systems\MC_Stimulus II\Documentation\Matlab\McsUsbDLL.h

Type 'uint64Ptr' was not found. Defaulting to type voidPtr.

Found on line 195 of input from line 194 of file C:\Program Files\Multi Channel Systems\MC_Stimulus II\Documentation\Matlab\McsUsbDLL.h

Type 'uint64Ptr' was not found. Defaulting to type voidPtr.

Found on line 197 of input from line 196 of file C:\Program Files\Multi Channel Systems\MC_Stimulus II\Documentation\Matlab\McsUsbDLL.h

Type 'int32Ptr' was not found. Defaulting to type voidPtr.

Found on line 204 of input from line 203 of file C:\Program Files\Multi Channel Systems\MC_Stimulus II\Documentation\Matlab\McsUsbDLL.h

Type 'SHORTPtr' was not found. Defaulting to type voidPtr.

Found on line 221 of input from line 220 of file C:\Program Files\Multi Channel Systems\MC_Stimulus II\Documentation\Matlab\McsUsbDLL.h[/font]


------------------------------------------------------------

Any help would be greatly appreciated.

Regards,

Nicolas P. Cottaris, Ph.D.

np_cottaris

Posts : 9
Join date : 2010-10-29

Back to top Go down

Multiple warnings when loading library from MATLAB Empty Re: Multiple warnings when loading library from MATLAB

Post  Jens Wed Nov 10, 2010 1:08 pm

You can safely ingnore this warnings, when no function is involved that you need.
On the other hand you can add the appropriate typedef in the McsUsbDLL.h file:
  • typedef unsigned long int uint64;
  • typedef int int32;
  • typedef int McsUsbFactoryProgressCallback;
  • typedef unsigned short USHORT;
  • typedef short SHORT;

Thank you for the hint. We will fix this issue in the next version of MC_Stimulus

Jens

Jens

Posts : 55
Join date : 2009-03-06
Location : Multi Channel Systems

http://www.multichannelsystems.com

Back to top Go down

Multiple warnings when loading library from MATLAB Empty Re: Multiple warnings when loading library from MATLAB

Post  np_cottaris Wed Nov 10, 2010 3:18 pm

Dear Jens,

Thank you very much for your prompt response.

I would also like to know if there is some documentation on the use of the different functions in McsUsbDLL library. Some functions are self explanatory but many are not. I have looked at the 2 Matlab examples provided but these use only a few of the available functions.

Thanks,

Nicolas


np_cottaris

Posts : 9
Join date : 2010-10-29

Back to top Go down

Multiple warnings when loading library from MATLAB Empty Re: Multiple warnings when loading library from MATLAB

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum