MATLAB Answers

imaqregister won't register 3rd party dll

7 views (last 30 days)
juan
juan on 20 May 2011
Hello,
I'm going through the IMAQ adaptor kit documentation trying to write my own adaptor. I have compiled the stub from the code given on page 3-4 and 3-5, and have built the project successfully. the dll shows up in the output directory, with a file size of 25kB. When I go to register the dll with imaqregister, the function returns without error however the adaptor name does not show up using imaqhwinfo. I'm using the documentation latest revision April 2011 with Matlab r2009b. I've also tried typing imaqreset after imaqregister and it still doesn't work. I've also tried closing and reopening the Matlab and it doesn't solve it either. Could you please offer some assistance so I may continue with the documentation.
regards, Juan

  0 Comments

Sign in to comment.

Answers (2)

juan
juan on 20 May 2011
I type >> imaqregister('H:\Visual Studio 2008\Projects\KinectImaq\Debug\KinectImaq.dll');
and it returns without error. then:
>> imaqreset
>> imaqhwinfo
ans =
InstalledAdaptors: {'coreco' 'ni' 'winvideo'}
MATLABVersion: '7.9 (R2009b)'
ToolboxName: 'Image Acquisition Toolbox'
ToolboxVersion: '3.4 (R2009b)'
>>
it does not show up

  0 Comments

Sign in to comment.


David Tarkowski
David Tarkowski on 23 May 2011

There are a couple of reasons why imaqhwinfo won't load a registered adaptor DLL. The first is that the DLL is not actually loadable. The most likely cause of this that all of the libraries that the DLL depends on are not present on the system, or are not in the expected location. You can use Dependency Walker to investigate that issue.

The second most likely cause is that the exported functions that imaqhwinfo expects to find are not present. What happens if you try to compile and register the demo adaptor? If the demo adaptor is present, make sure that you are properly exporting all of the functions that the adaptor kit indicates need to be exported. The Dependency Walker tool above can help with that issue as well.

  0 Comments

Sign in to comment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!