Path: news.mathworks.com!not-for-mail
From: Mark Jones <mark.jones@mathworks.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: how to remove an Image Acquisition Toolbox adaptor?
Date: Mon, 26 Oct 2009 09:15:16 -0400
Organization: The MathWorks, Inc.
Lines: 25
Message-ID: <4AE5A0E4.2040101@mathworks.com>
References: <hblhp4$n1m$1@fred.mathworks.com> <hbplvf$ct7$2@fred.mathworks.com>
NNTP-Posting-Host: jonesm.dhcp.mathworks.com
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: fred.mathworks.com 1256562925 22692 172.31.57.104 (26 Oct 2009 13:15:25 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 26 Oct 2009 13:15:25 +0000 (UTC)
To: Sean <sguo@nextwindow.com>
User-Agent: Thunderbird 2.0.0.23 (Windows/20090812)
In-Reply-To: <hbplvf$ct7$2@fred.mathworks.com>
Xref: news.mathworks.com comp.soft-sys.matlab:580072


Dave Tarkowski wrote:
> Sean wrote:
>> If I register an adaptor with the image acquisition toolbox, then I 
>> will not be able to register another adaptor with the same name.
>> I am writing my own adaptor and I need to test it. I don't want to 
>> give a new name for the same adaptor everytime. So, how do I unstall 
>> an adaptor in Matlab?
> 
> When you register an adaptor, what you are really registering is the 
> file location, so if you're just compiling a new version of the adaptor 
> but keeping the location the same, you don't need to worry about 
> re-registering it.
> 
> If really do want to unregister an adaptor, you can do the following:
> 
>  >> imaqregister('myadaptor.dll', 'unregister');
> 
> -Dave Tarkowski

Also, if you want to keep MATLAB open during testing and recompilation, 
you can call IMAQRESET before compilation so that the toolbox releases 
the adaptor DLL.  The adaptor DLL will then be reloaded the next time 
you call IMAQHWINFO or VIDEOINPUT (for that adaptor).

Mark