I get the error (Method was not found) with some library functions when i try to exsecute them using the calllib camand.
7 views (last 30 days)
Show older comments
I get the error (Method was not found) with some library functions when i try to exsecute them using the calllib cammand in Matlab. I am attempting to program an microscope using Matlab. i have been able to initialize the microscope by doing the following:1.) loading the libraty via (loadlibrary 'library' 'hfile' options) 2.) i opened cummunication with the microscope susefully using (calllib('library',.dll,'dll camands',etc...)) 3.) i sufully initialized the microscope with (calllib('library',.dll,'dll camands',etc...)) 4.) and other comands using the calllib function.
However after initilizing the microscope, some of the .dll commands give me the following error when exicuted with the calllib function: Method was not found. Does anyone have any suggestions?
0 Comments
Answers (1)
Kaustubha Govind
on 2 Aug 2011
Perhaps you should use LIBFUNCTIONS or LIBFUNCTIONSVIEW to look into the loaded library to verify the function prototypes. It could be that you are not passing in the right number or the right data-type for inputs, etc.
0 Comments
See Also
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!