Multiple warnings when loading library from MATLAB
2 posters
Page 1 of 1
Multiple warnings when loading library from MATLAB
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.
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
Re: Multiple warnings when loading library from MATLAB
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:
Thank you for the hint. We will fix this issue in the next version of MC_Stimulus
Jens
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
Re: Multiple warnings when loading library from MATLAB
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
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
Similar topics
» error loading the library "McsUsbDLL" with Matlab R2009b (Mac)
» Using the McsUsbDLL library with 64-bit Matlab
» Problems with Matlab control of STG4008 based on the latest McsUsbNet.dll compiled in .Net
» Multiple STG1008 System
» C++ open multiple files one by one?
» Using the McsUsbDLL library with 64-bit Matlab
» Problems with Matlab control of STG4008 based on the latest McsUsbNet.dll compiled in .Net
» Multiple STG1008 System
» C++ open multiple files one by one?
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum